tinympl  0.2
mini MPL library for C++11
tinympl::is_unique< Sequence > Class Template Reference

Determines whether the input sequence contains only unique elements. More...

#include <tinympl/is_unique.hpp>

Detailed Description

template<class Sequence>
class tinympl::is_unique< Sequence >

Determines whether the input sequence contains only unique elements.

Parameters
Sequencethe input sequence
Returns
is_unique<...>::type is a std::integral_constant<bool,v> where v is true iff the input sequence contains no duplicates
Note
Unlike std::sort, the input sequence is not required to be sorted, but the compile time complexity is O(N^2)
The comparison is done with tinympl::equal_to - it can be specialized
See also
variadic::is_unique

The documentation for this class was generated from the following file: