1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

support for N3658 (Compile-time integer sequences): index_tuple

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
This commit is contained in:
bolero-MURAKAMI 2013-05-10 19:52:39 +09:00
parent a3aedcf136
commit bb36ef6e8b
24 changed files with 196 additions and 83 deletions

View file

@ -4,7 +4,7 @@
#include <cstddef>
#include <sprout/config.hpp>
#include <sprout/index_tuple/index_tuple.hpp>
#include <sprout/index_tuple/make_integer_seq.hpp>
#include <sprout/index_tuple/make_integer_sequence.hpp>
#include <sprout/index_tuple/enable_make_indexes.hpp>
namespace sprout {
@ -14,7 +14,7 @@ namespace sprout {
template<sprout::index_t N>
struct make_index_tuple
: public sprout::enable_make_indexes<
typename sprout::make_integer_seq<sprout::index_t, N>::type
typename sprout::make_integer_sequence<sprout::index_t, N>::type
::template transfer<sprout::index_tuple<> >::type
>
{};
@ -24,7 +24,7 @@ namespace sprout {
template<sprout::uindex_t N>
struct make_uindex_tuple
: public sprout::enable_make_indexes<
typename sprout::make_integer_seq<sprout::uindex_t, N>::type
typename sprout::make_integer_sequence<sprout::uindex_t, N>::type
::template transfer<sprout::uindex_tuple<> >::type
>
{};