mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2024-11-12 21:09:01 +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
20 lines
538 B
C++
20 lines
538 B
C++
#ifndef SPROUT_INDEX_TUPLE_MAKE_INTEGER_SEQUENCE_HPP
|
|
#define SPROUT_INDEX_TUPLE_MAKE_INTEGER_SEQUENCE_HPP
|
|
|
|
#include <sprout/config.hpp>
|
|
#include <sprout/index_tuple/integer_range.hpp>
|
|
#include <sprout/index_tuple/enable_make_indexes.hpp>
|
|
|
|
namespace sprout {
|
|
//
|
|
// make_integer_sequence
|
|
//
|
|
template<typename T, T N>
|
|
struct make_integer_sequence
|
|
: public sprout::enable_make_indexes<
|
|
sprout::integer_range<T, 0, N>
|
|
>
|
|
{};
|
|
} // namespace sprout
|
|
|
|
#endif // #ifndef SPROUT_INDEX_TUPLE_MAKE_INTEGER_SEQUENCE_HPP
|