In c++, how can I implement a function with an int template argument indicating the tuple length and produce a std::tuple with that length?
E.g.
func<
Here are two boost.hana solutions (C++14):
//first hana::replicate(int{}, hana::size_c<2>); //second hana::cycle(std::make_tuple(int{}), hana::size_c<2>);
Both produce integer-tuples of size 2, but instead of std::tuples they yield hana::tuples.
std::tuple
hana::tuple