Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Function template is_permutation

boost::algorithm::is_permutation — Tests to see if the sequence [first,last) is a permutation of the sequence starting at first2.

Synopsis

// In header: <boost/algorithm/cxx14/is_permutation.hpp>


template<typename ForwardIterator1, typename ForwardIterator2> 
  bool is_permutation(ForwardIterator1 first1, ForwardIterator1 last1, 
                      ForwardIterator2 first2, ForwardIterator2 last2);

Description

[Note] Note

This function is part of the C++2014 standard library. We will use the standard one if it is available, otherwise we have our own implementation.

Parameters:

first1

The start of the input sequence

first2

The start of the second sequence

last1

One past the end of the second sequence

last2

One past the end of the input sequence


PrevUpHomeNext