[#absl-c_is_partitioned]
= xref:absl.adoc[absl]::c&lowbar;is&lowbar;partitioned
:relfileprefix: ../
:mrdocs:

Container&hyphen;based version of the &lt;algorithm&gt; `std&colon;&colon;is&lowbar;partitioned()` function to test whether all elements in the container for which `pred` returns `true` precede those for which `pred` is `false`&period;

== Synopsis

Declared in `&lt;absl&sol;algorithm&sol;container&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename C,
    typename Pred&gt;
constexpr
bool
c&lowbar;is&lowbar;partitioned(
    C const& c,
    Pred&& pred);
----

== Return Value

`true` if `c` is partitioned with respect to `pred`, otherwise `false`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *c*
| The container to test&period;
| *pred*
| The predicate used to partition the elements&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
