mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-14 10:39:05 +00:00
bb36ef6e8b
rename: integer_seq -> integer_sequence, make_integer_sequence -> make_integer_sequence add unsigned-index sequence: index_sequence(alias), make_index_sequence, index_sequence_for add: integer_pack, index_pack
33 lines
948 B
C++
33 lines
948 B
C++
#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_sequence.hpp>
|
|
#include <sprout/index_tuple/enable_make_indexes.hpp>
|
|
|
|
namespace sprout {
|
|
//
|
|
// make_index_tuple
|
|
//
|
|
template<sprout::index_t N>
|
|
struct make_index_tuple
|
|
: public sprout::enable_make_indexes<
|
|
typename sprout::make_integer_sequence<sprout::index_t, N>::type
|
|
::template transfer<sprout::index_tuple<> >::type
|
|
>
|
|
{};
|
|
//
|
|
// make_uindex_tuple
|
|
//
|
|
template<sprout::uindex_t N>
|
|
struct make_uindex_tuple
|
|
: public sprout::enable_make_indexes<
|
|
typename sprout::make_integer_sequence<sprout::uindex_t, N>::type
|
|
::template transfer<sprout::uindex_tuple<> >::type
|
|
>
|
|
{};
|
|
} // namespace sprout
|
|
|
|
#endif // #ifndef SPROUT_INDEX_TUPLE_MAKE_INDEX_TUPLE_HPP
|