tinympl
0.2
mini MPL library for C++11
|
Copy the elements of a given input sequence which satisfy a given predicate - the ordering is preserved. More...
#include <tinympl/copy_if.hpp>
Copy the elements of a given input sequence which satisfy a given predicate - the ordering is preserved.
SequenceIn | The input sequence |
F | The test predicate - F<T>::type::value shall be convertible to bool |
Out | The output sequence type - defaults to the same sequence kind of the input sequence |
copy_if<...>::type
is a type templated from Out
which is constructed with the elements of SequenceIn which satisfy the predicate F
.