[#absl-c_mismatch-0f] = xref:absl.adoc[absl]::c_mismatch :relfileprefix: ../ :mrdocs: `c_mismatch` overloads == Synopses Declared in `<absl/algorithm/container.h>` Container‐based version of the <algorithm> `std::mismatch()` function to return the first element where two ordered containers differ. Applies `==` to the first N elements of `c1` and `c2`, where N = min(size(c1), size(c2)). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename C1, typename C2> constexpr /* implementation-defined */ xref:absl/c_mismatch-0a.adoc[c_mismatch]( C1& c1, C2& c2); ---- [.small]#xref:absl/c_mismatch-0a.adoc[_» more..._]# Overload of `c_mismatch()` for using a predicate evaluation other than `==` as the function's test condition. Applies `pred` to the first N elements of `c1` and `c2`, where N = min(size(c1), size(c2)). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename C1, typename C2, typename BinaryPredicate> constexpr /* implementation-defined */ xref:absl/c_mismatch-0e.adoc[c_mismatch]( C1& c1, C2& c2, BinaryPredicate pred); ---- [.small]#xref:absl/c_mismatch-0e.adoc[_» more..._]# == Return Value A pair of iterators to the first mismatching elements of `c1` and `c2`. == 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]#