function object
std::ranges::mismatch
- Header
<algorithm>- Draft
- [alg.mismatch]
- Scope
std::ranges- cppreference
- std::ranges::mismatch
Synopsis
inline constexpr /* implementation-defined */ mismatch = {};Call signatures
mismatch is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.
- (1)
template< std::ranges::input_range R1, std::ranges::input_range R2, class Pred = std::ranges::equal_to, class Proj1 = std::identity, class Proj2 = std::identity> requires std::indirectly_comparable<iterator_t<R1>, iterator_t<R2>, Pred, Proj1, Proj2> [[nodiscard]] constexpr std::ranges::mismatch_result<borrowed_iterator_t<R1>, borrowed_iterator_t<R2>> mismatch( R1&& r1, R2&& r2, Pred pred = {}, Proj1 proj1 = {}, Proj2 proj2 = {}); - (2)
template< std::input_iterator I1, std::sentinel_for<I1> S1, std::input_iterator I2, std::sentinel_for<I2> S2, class Pred = std::ranges::equal_to, class Proj1 = std::identity, class Proj2 = std::identity> requires std::indirectly_comparable<I1, I2, Pred, Proj1, Proj2> [[nodiscard]] constexpr std::ranges::mismatch_result<I1, I2> mismatch( I1 first1, S1 last1, I2 first2, S2 last2, Pred pred = {}, Proj1 proj1 = {}, Proj2 proj2 = {}); - (3)
template< class ExecutionPolicy, std::random_access_iterator I1, std::sized_sentinel_for<I1> S1, std::random_access_iterator I2, std::sized_sentinel_for<I2> S2, class Pred = std::ranges::equal_to, class Proj1 = std::identity, class Proj2 = std::identity> requires execution-policy<ExecutionPolicy> && std::indirectly_comparable<I1, I2, Pred, Proj1, Proj2> decltype(auto) mismatch( ExecutionPolicy&&, I1 first1, S1 last1, I2 first2, S2 last2, Pred pred = {}, Proj1 proj1 = {}, Proj2 proj2 = {}) noexcept; - (4)
template< class ExecutionPolicy, sized-random-access-range R1, sized-random-access-range R2, class Pred = std::ranges::equal_to, class Proj1 = std::identity, class Proj2 = std::identity> requires execution-policy<ExecutionPolicy> && std::indirectly_comparable<std::ranges::iterator_t<R1>, std::ranges::iterator_t<R2>, Pred, Proj1, Proj2> decltype(auto) mismatch( ExecutionPolicy&&, R1&& r1, R2&& r2, Pred pred = {}, Proj1 proj1 = {}, Proj2 proj2 = {}) noexcept;