Container‐based version of the <algorithm> std::is_permutation() function to test whether a container is a permutation of another.

Synopsis

Declared in <absl/algorithm/container.h>

template<
    typename C1,
    typename C2>
constexpr
bool
c_is_permutation(
    C1 const& c1,
    C2 const& c2);

Return Value

true if c1 is a permutation of c2, otherwise false.

Parameters

Name

Description

c1

The first container.

c2

The second container.

Created with MrDocs