Thrill  0.1
StaticIndex< Index > Struct Template Reference

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.

#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 = Index
 compile-time index More...
 

Member Function Documentation

◆ operator size_t()

operator size_t ( ) const
inline

implicit conversion to a run-time index.

Definition at line 29 of file static_index.hpp.

References StaticIndex< Index >::index.

Member Data Documentation

◆ index

constexpr size_t index = Index
static

compile-time index

Definition at line 26 of file static_index.hpp.

Referenced by StaticIndex< Index >::operator size_t().


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