13 #ifndef TINYMPL_VARIADIC_REPLACE_IF_HPP
14 #define TINYMPL_VARIADIC_REPLACE_IF_HPP
16 #include <type_traits>
34 template<
template<
class ... T>
class F,
36 template<class ...> class Out,
39 template<
template<
class ... T>
class F,
41 template<class ...> class Out,
46 template<
class ... CopiedElements>
48 typedef typename replace_if<F, T, Out, Tail...>::template
49 impl <CopiedElements...,
50 typename std::conditional <
58 template<
class ...>
class,
60 template<
class...>
class,
64 typedef typename impl<>::type type;
67 template<
template<
class ... T>
class F, class T, template<class ...> class Out>
70 template<
class ... CopiedElements>
72 typedef Out<CopiedElements...> type;
75 template<
template<
class ...>
class,
77 template<
class...>
class,
78 class ...>
friend struct replace_if;
81 typedef typename impl<>::type type;
87 #endif // TINYMPL_VARIADIC_REPLACE_IF_HPP
Replace all the elements in the input sequence which satisfy a given predicate with a given type T...
Definition: replace_if.hpp:40
Replace all the elements in the input sequence which satisfy a given predicate with a given type T...
Definition: replace_if.hpp:37