cxxomfort  rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
Namespaces | Functions
14-algorithm-equal.hpp File Reference

Implementation of C++14's overloads for equal(), mismatch() . More...

Namespaces

 cxxomfort
 Namespace of the cxxomfort library.
 
 cxxomfort::cxxostd
 Backports made available by cxxomfort.
 

Functions

template<typename RangeIt1 , typename RangeIt2 , typename Compare >
bool equal (RangeIt1 ini1, RangeIt1 fin1, RangeIt2 ini2, RangeIt2 fin2, Compare eq)
 Compare two sequences [ini1,fin1) and [ini2,fin2) for equality given comparator eq . Four-iterators overload. More...
 
template<typename RangeIt1 , typename RangeIt2 >
bool equal (RangeIt1 ini1, RangeIt1 fin1, RangeIt2 ini2, RangeIt2 fin2)
 
template<class InputIt1 , class InputIt2 , class BinaryPredicate >
std::pair< InputIt1, InputIt2 > mismatch (InputIt1 ini1, InputIt1 fin1, InputIt2 ini2, InputIt2 fin2, BinaryPredicate p)
 Finds the first difference (dif1,dif2) between two sequences [ini1,fin1) and [ini2,fin2), given comparator eq . Four-iterator overload. More...
 
template<class InputIt1 , class InputIt2 >
std::pair< InputIt1, InputIt2 > mismatch (InputIt1 ini1, InputIt1 fin1, InputIt2 ini2, InputIt2 fin2)
 

Detailed Description

Implementation of C++14's overloads for equal(), mismatch() .