tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_permutation.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

template<typename ForwardIt1, typename ForwardIt2>
constexpr auto is_permutation (ForwardIt1 first, ForwardIt1 last, ForwardIt2 first2) -> bool
 Returns true if there exists a permutation of the elements in the range [first1, last1) that makes that range equal to the range [first2, last2), where last2 denotes first2 + (last1 - first1) if it was not given.
 
template<typename ForwardIt1, typename ForwardIt2>
constexpr auto is_permutation (ForwardIt1 first1, ForwardIt1 last1, ForwardIt2 first2, ForwardIt2 last2) -> bool