tlx
StaticIndex< Index > Struct Template Reference

Helper for call_foreach_with_index() to save the index as a compile-time index. More...

#include <static_index.hpp>

Public Member Functions

 operator size_t () const
 implicit conversion to a run-time index. More...
 

Static Public Attributes

static constexpr size_t index
 compile-time index More...
 

Detailed Description

template<size_t Index>
struct tlx::StaticIndex< Index >

Helper for call_foreach_with_index() to save the index as a compile-time index.

Definition at line 24 of file static_index.hpp.

Member Function Documentation

operator size_t ( ) const
inline

implicit conversion to a run-time index.

Definition at line 29 of file static_index.hpp.

Member Data Documentation

constexpr size_t index
static

compile-time index

Definition at line 26 of file static_index.hpp.


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