SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
smtk::tuple_index< T, Tuple > Struct Template Reference

Takes a type and a tuple of types and returns the index of the first instance of that type in the tuple. More...

#include <TupleTraits.h>

Detailed Description

template<class T, class Tuple>
struct smtk::tuple_index< T, Tuple >

Takes a type and a tuple of types and returns the index of the first instance of that type in the tuple.

Examples:

tuple_index<bool, std::tuple<int, bool, float>>::value == 1

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