mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-12-25 21:35:41 +00:00
28 lines
666 B
C++
28 lines
666 B
C++
#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;
|
|
typedef sprout::index_t value_type;
|
|
public:
|
|
SPROUT_STATIC_CONSTEXPR std::size_t size = sizeof...(Indexes);
|
|
};
|
|
template<sprout::index_t... Indexes>
|
|
SPROUT_CONSTEXPR_OR_CONST std::size_t sprout::index_tuple<Indexes...>::size;
|
|
} // namespace sprout
|
|
|
|
#endif // #ifndef SPROUT_INDEX_TUPLE_INDEX_TUPLE_HPP
|