function object
std::ranges::is_permutation
- Header
<algorithm>- Draft
- [alg.is.permutation]
- Scope
std::ranges- cppreference
- std::ranges::is_permutation
Synopsis
inline constexpr /* implementation-defined */ is_permutation = {};Call signatures
is_permutation is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.
- (1)
template< std::ranges::forward_range R1, std::ranges::forward_range R2, class Proj1 = std::identity, class Proj2 = std::identity, std::indirect_equivalence_relation<std::projected<iterator_t<R1>, Proj1>, std::projected<iterator_t<R2>, Proj2>> Pred = std::ranges::equal_to> [[nodiscard]] constexpr bool is_permutation( R1&& r1, R2&& r2, Pred pred = {}, Proj1 proj1 = {}, Proj2 proj2 = {}); - (2)
template< std::forward_iterator I1, std::sentinel_for<I1> S1, std::forward_iterator I2, std::sentinel_for<I2> S2, class Proj1 = std::identity, class Proj2 = std::identity, std::indirect_equivalence_relation<std::projected<I1, Proj1>, std::projected<I2, Proj2>> Pred = std::ranges::equal_to> [[nodiscard]] constexpr bool is_permutation( I1 first1, S1 last1, I2 first2, S2 last2, Pred pred = {}, Proj1 proj1 = {}, Proj2 proj2 = {});