tinympl
0.2
mini MPL library for C++11
|
Generate N elements using a given generator metafunction. More...
#include <tinympl/generate_n.hpp>
Inherits tinympl::variadic::generate_n< N, Gen, Out >.
Generate N elements using a given generator metafunction.
N | The number of elements to generate |
Gen | The generator. Gen< std::integral_constant<int,i> >::type must be a valid expression. |
Out | the output sequence type |
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> >