1

Closed

Enhancement: C++14 changes

description

std::equal will have two new prototypes in C++14, which are not part of the current implementation:
template< class InputIt1, class InputIt2 >
bool equal( InputIt1 first1, InputIt1 last1, 
            InputIt2 first2, InputIt2 last2 );

template< class InputIt1, class InputIt2, class BinaryPredicate >
bool equal( InputIt1 first1, InputIt1 last1, 
            InputIt2 first2, InputIt2 last2,
            BinaryPredicate p );
And their parallel counterparts:
template< class ExecutionPolicy, class InputIt1, class InputIt2 >
bool equal( ExecutionPolicy &&exec,
            InputIt1 first1, InputIt1 last1, 
            InputIt2 first2, InputIt2 last2 );

template< class ExecutionPolicy, class InputIt1, class InputIt2, class BinaryPredicate >
bool equal( ExecutionPolicy &&exec,
            InputIt1 first1, InputIt1 last1, 
            InputIt2 first2, InputIt2 last2,
            BinaryPredicate p );

comments

lchodors wrote Apr 17, 2014 at 5:37 PM

Thank you very much for your feedback. We will address this issue to be compliant with C++ 14.