tinympl  0.2
mini MPL library for C++11
tinympl::replace_if< SequenceIn, F, T, Out > Class Template Reference

Replace all the elements in the input sequence which satisfy a given predicate with a given type T. More...

#include <tinympl/replace_if.hpp>

Detailed Description

template<class SequenceIn, template< class...T > class F, class T, template< class...> class Out = as_sequence<SequenceIn>::template rebind>
class tinympl::replace_if< SequenceIn, F, T, Out >

Replace all the elements in the input sequence which satisfy a given predicate with a given type T.

Parameters
SequenceInThe input sequence
FThe predicate, F<T>::type::value must be convertible to bool
TThe type used to replace the types
OutThe type of the output sequence, defaults to the same kind of the input sequence
Returns
replace_if<...>::type is a type templated from Out
See also
variadic::replace_if

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