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

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

#include <tinympl/variadic/is_unique.hpp>

Detailed Description

template<class... Args>
class tinympl::variadic::is_unique< Args >

Determines whether the input sequence contains only unique elements.

Parameters
Args...the 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
tinympl::is_unique

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