mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add index_tuple/*
This commit is contained in:
parent
c6bd230ee4
commit
84956034ad
10 changed files with 259 additions and 205 deletions
23
sprout/index_tuple/index_tuple.hpp
Normal file
23
sprout/index_tuple/index_tuple.hpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#ifndef SPROUT_INDEX_TUPLE_INDEX_TUPLE_HPP
|
||||
#define SPROUT_INDEX_TUPLE_INDEX_TUPLE_HPP
|
||||
|
||||
#include <cstddef>
|
||||
#include <sprout/config.hpp>
|
||||
|
||||
namespace sprout {
|
||||
//
|
||||
// index_t
|
||||
//
|
||||
typedef std::ptrdiff_t index_t;
|
||||
|
||||
//
|
||||
// index_tuple
|
||||
//
|
||||
template<sprout::index_t... Indexes>
|
||||
struct index_tuple {
|
||||
public:
|
||||
typedef index_tuple type;
|
||||
};
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_INDEX_TUPLE_INDEX_TUPLE_HPP
|
Loading…
Add table
Add a link
Reference in a new issue