kumi v3.1.0
Exquisite Epidote
 
Loading...
Searching...
No Matches
kumi::indexes_t< V > Class Template Reference

Compile time tuple of index used to pass several indexes_t as NTTP. More...

#include <kumi/detail/indexes.hpp>

Detailed Description

template<indexer... V>
class kumi::indexes_t< V >

Compile time tuple of index used to pass several indexes_t as NTTP.

kumi::indexes_t provides a way to define compile time tuple of indexes_t.

Static Public Member Functions

Properties
static constexpr auto size () noexcept
 Returns the number of elements in a kumi::indexes_t.
 
static constexpr auto empty () noexcept
 Returns true if a kumi::indexes_t contains 0 elements.
 

Accessors

template<std::size_t I>
requires (I < sizeof...(V))
constexpr decltype(auto) get_index () const noexcept
 Workaround to avoid depending on kumi::tuple and kumi::index_t.
 
template<std::size_t I>
requires ( I < sizeof...(V) )
constexpr decltype(auto) get (indexes_t &i) noexcept
 Extracts the Ith element from a kumi::indexes_t.
 
template<std::size_t I>
requires ( I < sizeof...(V))
constexpr decltype(auto) get (indexes_t const &i) noexcept
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.