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:
parent
a3aedcf136
commit
bb36ef6e8b
24 changed files with 196 additions and 83 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <cstddef>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/index_tuple/integer_seq.hpp>
|
||||
#include <sprout/index_tuple/integer_sequence.hpp>
|
||||
|
||||
namespace sprout {
|
||||
//
|
||||
|
@ -13,7 +13,7 @@ namespace sprout {
|
|||
typedef std::ptrdiff_t index_t;
|
||||
template<sprout::index_t... Indexes>
|
||||
struct index_tuple
|
||||
: public sprout::integer_seq<sprout::index_t, Indexes...>
|
||||
: public sprout::integer_sequence<sprout::index_t, Indexes...>
|
||||
{
|
||||
public:
|
||||
typedef index_tuple type;
|
||||
|
@ -30,7 +30,7 @@ namespace sprout {
|
|||
typedef std::size_t uindex_t;
|
||||
template<sprout::uindex_t... Indexes>
|
||||
struct uindex_tuple
|
||||
: public sprout::integer_seq<sprout::uindex_t, Indexes...>
|
||||
: public sprout::integer_sequence<sprout::uindex_t, Indexes...>
|
||||
{
|
||||
public:
|
||||
typedef uindex_tuple type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue