tinympl
0.2
mini MPL library for C++11
|
Generate n elements using a given generator metafunction. More...
#include <tinympl/variadic/generate_n.hpp>
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> >