[#absl-c_is_permutation-06] = xref:absl.adoc[absl]::c_is_permutation :relfileprefix: ../ :mrdocs: `c_is_permutation` overloads == Synopses Declared in `<absl/algorithm/container.h>` Container‐based version of the <algorithm> `std::is_permutation()` function to test whether a container is a permutation of another. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename C1, typename C2> constexpr bool xref:absl/c_is_permutation-08.adoc[c_is_permutation]( C1 const& c1, C2 const& c2); ---- [.small]#xref:absl/c_is_permutation-08.adoc[_» more..._]# Overload of `c_is_permutation()` for using a predicate evaluation other than `==` as the function's test condition. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename C1, typename C2, typename BinaryPredicate> constexpr bool xref:absl/c_is_permutation-0b.adoc[c_is_permutation]( C1 const& c1, C2 const& c2, BinaryPredicate&& pred); ---- [.small]#xref:absl/c_is_permutation-0b.adoc[_» more..._]# == Return Value * `true` if `c1` is a permutation of `c2`, otherwise `false`. * `true` if `c1` is a permutation of `c2` under `pred`, otherwise `false`. == Parameters [cols="1,4"] |=== | Name| Description | *c1* | The first container. | *c2* | The second container. | *pred* | The binary predicate used to compare elements. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#