13 #ifndef TINYMPL_VARIADIC_FILL_N_HPP
14 #define TINYMPL_VARIADIC_FILL_N_HPP
32 template<std::size_t n,
class T,
template<
class ...>
class Out>
struct fill_n;
35 template<std::size_t n,
class T,
template<
class ...>
class Out>
struct fill_n {
37 template<
class ... Args>
struct impl {
38 typedef typename fill_n < n - 1, T, Out >::template
39 impl<Args..., T>::type type;
42 template<std::size_t,
class,
template<
class ...>
class>
46 typedef typename impl<>::type type;
49 template<
class T,
template<
class...>
class Out>
struct fill_n<0, T, Out> {
51 template<
class ... Args>
struct impl {
52 typedef Out<Args...> type;
55 template<std::size_t,
class,
template<
class ...>
class>
59 typedef typename impl<>::type type;
65 #endif // TINYMPL_VARIADIC_FILL_N_HPP
Fills an output sequence with N equal elements.
Definition: fill_n.hpp:32
Fills an output sequence with n equal elements.
Definition: fill_n.hpp:32