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

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

#include <tinympl/variadic/sort.hpp>

Detailed Description

template<template< class... > class Cmp, template< class...> class Out, class... Args>
class tinympl::variadic::sort< Cmp, Out, Args >

Sort the input sequence according to a given comparison function.

Parameters
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
Args...the input sequence
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
tinympl::sort

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