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

Copy the elements of a given input sequence which satisfy a given predicate - the ordering is preserved. More...

#include <tinympl/copy_if.hpp>

Detailed Description

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

Copy the elements of a given input sequence which satisfy a given predicate - the ordering is preserved.

Parameters
SequenceInThe input sequence
FThe test predicate - F<T>::type::value shall be convertible to bool
OutThe output sequence type - defaults to the same sequence kind of the input sequence
Returns
copy_if<...>::type is a type templated from Out which is constructed with the elements of SequenceIn which satisfy the predicate F.
See also
variadic::copy_if

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