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

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

#include <tinympl/generate_n.hpp>

Inherits tinympl::variadic::generate_n< N, Gen, Out >.

Detailed Description

template<std::size_t N, template< class...> class Gen, template< class...> class Out>
class tinympl::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
variadic::generate_n

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