[#absl-c_equal-09] = xref:absl.adoc[absl]::c_equal :relfileprefix: ../ :mrdocs: `c_equal` overloads == Synopses Declared in `<absl/algorithm/container.h>` Container‐based version of the <algorithm> `std::equal()` function to test whether two containers are equal. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename C1, typename C2> constexpr bool xref:absl/c_equal-0f.adoc[c_equal]( C1 const& c1, C2 const& c2); ---- [.small]#xref:absl/c_equal-0f.adoc[_» more..._]# Overload of `c_equal()` 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_equal-0d.adoc[c_equal]( C1 const& c1, C2 const& c2, BinaryPredicate&& pred); ---- [.small]#xref:absl/c_equal-0d.adoc[_» more..._]# == Return Value * `true` if the two containers hold equal elements, otherwise `false`. * `true` if the two containers compare equal 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]#