asgn
 
Loading...
Searching...
No Matches
tagged::index_class< TL > Class Template Reference

A list of tagged indexes (a position in an N-dimensional space) More...

#include <tagged.hpp>

Inheritance diagram for tagged::index_class< TL >:

Public Member Functions

constexpr index_class (index_carrier_type< TL > ... vl) noexcept
 
 index_class (index_class< TL > ... vl) noexcept
 
template<std::size_t I>
requires (I < sizeof...(TL))
auto && get () const noexcept
 Retrieve individual tagged index by zero-based position.
 
template<impl::one_of< TL ... > T>
auto && get () const noexcept
 Retrieve individual tagged index by selector tag.
 

Detailed Description

template<tag ... TL>
class tagged::index_class< TL >

A list of tagged indexes (a position in an N-dimensional space)

Although the order of tags is technically preserved, most functions working with index lists ignore the order

Template Parameters
...TLTag list

Member Function Documentation

◆ get() [1/2]

template<tag ... TL>
template<std::size_t I>
requires (I < sizeof...(TL))
auto && tagged::index_class< TL >::get ( ) const
inlinenoexcept

Retrieve individual tagged index by zero-based position.

Template Parameters
IIndex of dimension
Returns
The tagged index

◆ get() [2/2]

template<tag ... TL>
template<impl::one_of< TL ... > T>
auto && tagged::index_class< TL >::get ( ) const
inlinenoexcept

Retrieve individual tagged index by selector tag.

Template Parameters
IIndex of dimension
Returns
The tagged index

The documentation for this class was generated from the following file: