[#absl-c_is_permutation-06]
= xref:absl.adoc[absl]::c&lowbar;is&lowbar;permutation
:relfileprefix: ../
:mrdocs:

`c&lowbar;is&lowbar;permutation` overloads

== Synopses

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

Container&hyphen;based version of the &lt;algorithm&gt; `std&colon;&colon;is&lowbar;permutation()` function to test whether a container is a permutation of another&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename C1,
    typename C2&gt;
constexpr
bool
xref:absl/c_is_permutation-08.adoc[c&lowbar;is&lowbar;permutation](
    C1 const& c1,
    C2 const& c2);
----

[.small]#xref:absl/c_is_permutation-08.adoc[_» more&period;&period;&period;_]#

Overload of `c&lowbar;is&lowbar;permutation()` for using a predicate evaluation other than `&equals;&equals;` as the function&apos;s test condition&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename C1,
    typename C2,
    typename BinaryPredicate&gt;
constexpr
bool
xref:absl/c_is_permutation-0b.adoc[c&lowbar;is&lowbar;permutation](
    C1 const& c1,
    C2 const& c2,
    BinaryPredicate&& pred);
----

[.small]#xref:absl/c_is_permutation-0b.adoc[_» more&period;&period;&period;_]#

== Return Value

* `true` if `c1` is a permutation of `c2`, otherwise `false`&period;
* `true` if `c1` is a permutation of `c2` under `pred`, otherwise `false`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *c1*
| The first container&period;
| *c2*
| The second container&period;
| *pred*
| The binary predicate used to compare elements&period;
|===


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