mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add index_tuple/integer_seq
This commit is contained in:
parent
6a78f64feb
commit
331aaa3559
14 changed files with 358 additions and 180 deletions
20
sprout/index_tuple/make_integer_seq.hpp
Normal file
20
sprout/index_tuple/make_integer_seq.hpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#ifndef SPROUT_INDEX_TUPLE_MAKE_INTEGER_SEQ_HPP
|
||||
#define SPROUT_INDEX_TUPLE_MAKE_INTEGER_SEQ_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/index_tuple/integer_range.hpp>
|
||||
#include <sprout/index_tuple/detail/make_indexes_helper.hpp>
|
||||
|
||||
namespace sprout {
|
||||
//
|
||||
// make_integer_seq
|
||||
//
|
||||
template<typename T, T N>
|
||||
struct make_integer_seq
|
||||
: public sprout::detail::make_indexes_helper<
|
||||
sprout::integer_range<T, 0, N>
|
||||
>
|
||||
{};
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_INDEX_TUPLE_MAKE_INTEGER_SEQ_HPP
|
Loading…
Add table
Add a link
Reference in a new issue