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

Sort the input sequence according to a given comparison function. More...

#include <tinympl/sort.hpp>

Detailed Description

template<class Sequence, template< class...> class Out = as_sequence<Sequence>::template rebind, template< class... > class Cmp = less>
class tinympl::sort< Sequence, Out, Cmp >

Sort the input sequence according to a given comparison function.

Parameters
Sequencethe input sequence
Outthe output sequence type, defaults to the same kind of the input sequence type
CmplThe comparison operator. Cmp<A,B>::type::value must be convertible to bool. The comparator must produce total ordering between elements. Defaults to tinympl::less
Note
The compile time complexity is O(N^2)
Returns
sort<...>::type is a type templated from Out which contains the sorted sequence
See also
variadic::sort

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