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)).
Synopsis
Declared in <absl/algorithm/container.h>
template<
typename C1,
typename C2>
constexpr
/* implementation-defined */
c_mismatch(
C1& c1,
C2& c2);
Return Value
A pair of iterators to the first mismatching elements of c1 and c2.
Parameters
Name |
Description |
c1 |
The first container. |
c2 |
The second container. |
Created with MrDocs