tinympl  0.2
mini MPL library for C++11
tinympl::replace< SequenceIn, Old, New, Out > Class Template Reference

Replace all the elements in the input sequence equal to Old with New*. More...

#include <tinympl/replace.hpp>

Detailed Description

template<class SequenceIn, class Old, class New, template< class...> class Out = as_sequence<SequenceIn>::template rebind>
class tinympl::replace< SequenceIn, Old, New, Out >

Replace all the elements in the input sequence equal to Old with New*.

Parameters
SequenceInThe input sequence
OldThe type to be replaced
NewThe new type
OutThe type of the output sequence, defaults to the same kind of the input sequence
Returns
replace<...>::type is a type templated from Out
Note
The comparison is done with tinympl::equal_to - it can be specialized
See also
variadic::replace

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