tinympl  0.2
mini MPL library for C++11
tinympl::variadic::generate_n< n, Gen, Out > Class Template Reference

Generate n elements using a given generator metafunction. More...

#include <tinympl/variadic/generate_n.hpp>

Detailed Description

template<std::size_t n, template< class...> class Gen, template< class...> class Out>
class tinympl::variadic::generate_n< n, Gen, Out >

Generate n elements using a given generator metafunction.

Parameters
nThe number of elements to generate
GenThe generator. Gen< std::integral_constant<int,i> >::type must be a valid expression.
Outthe output sequence type
Returns
generate_n<...>::type is a type templated from Out constructed with n elements generated with Gen< int_<0> >, Gen< int_<1> >, ... Gen< int_<n-1> >
See also
tinympl::generate_n

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