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

Produces a sequence of unique elements from the input sequence, preserving the ordering. More...

#include <tinympl/unique.hpp>

Detailed Description

template<class Sequence, template< class...> class Out = as_sequence<Sequence>::template rebind>
class tinympl::unique< Sequence, Out >

Produces a sequence of unique elements from the input sequence, preserving the ordering.

Parameters
SequenceThe input sequence.
Outthe output sequence type - defaults to the same kind of the input sequence.
Returns
unique<...>::type is a type templated from Out which contains the resulting sequence.
Note
Only the first (leftmost) duplicate is mantained in the output sequence.
See also
variadic::unique

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