2013-03-31 04:39:26 +00:00
|
|
|
#ifndef SPROUT_INDEX_TUPLE_MAKE_INDEX_TUPLE_HPP
|
|
|
|
#define SPROUT_INDEX_TUPLE_MAKE_INDEX_TUPLE_HPP
|
|
|
|
|
|
|
|
#include <cstddef>
|
|
|
|
#include <sprout/config.hpp>
|
|
|
|
#include <sprout/index_tuple/index_tuple.hpp>
|
|
|
|
#include <sprout/index_tuple/make_integer_seq.hpp>
|
2013-04-06 04:06:51 +00:00
|
|
|
#include <sprout/index_tuple/enable_make_indexes.hpp>
|
2013-03-31 04:39:26 +00:00
|
|
|
|
|
|
|
namespace sprout {
|
|
|
|
//
|
|
|
|
// make_index_tuple
|
|
|
|
//
|
|
|
|
template<sprout::index_t N>
|
|
|
|
struct make_index_tuple
|
2013-04-06 04:06:51 +00:00
|
|
|
: public sprout::enable_make_indexes<
|
2013-03-31 04:39:26 +00:00
|
|
|
typename sprout::make_integer_seq<sprout::index_t, N>::type
|
|
|
|
::template transfer<sprout::index_tuple<> >::type
|
|
|
|
>
|
|
|
|
{};
|
|
|
|
//
|
|
|
|
// make_uindex_tuple
|
|
|
|
//
|
|
|
|
template<sprout::uindex_t N>
|
|
|
|
struct make_uindex_tuple
|
2013-04-06 04:06:51 +00:00
|
|
|
: public sprout::enable_make_indexes<
|
2013-03-31 04:39:26 +00:00
|
|
|
typename sprout::make_integer_seq<sprout::uindex_t, N>::type
|
|
|
|
::template transfer<sprout::uindex_tuple<> >::type
|
|
|
|
>
|
|
|
|
{};
|
|
|
|
} // namespace sprout
|
|
|
|
|
|
|
|
#endif // #ifndef SPROUT_INDEX_TUPLE_MAKE_INDEX_TUPLE_HPP
|