HiPipe  0.7.0
C++17 data pipeline with Python bindings.
hipipe::utility::variadic_find< T1, T2, Ts > Struct Template Reference

Get the first index of a type in a variadic template list. More...

#include <hipipe/core/utility/tuple.hpp>

Inherits integral_constant< std::size_t, variadic_find< T1, Ts... >{}+1 >.

Detailed Description

template<typename T1, typename T2, typename... Ts>
struct hipipe::utility::variadic_find< T1, T2, Ts >

Get the first index of a type in a variadic template list.

The first template argument is the argument to be searched. The rest of the arguments is the variadic template.

Example:

variadic_find<int, int, double, double>::value == 0
variadic_find<double, int, double, double>::value == 1
variadic_find<float, int, double, float>::value == 2

Definition at line 38 of file tuple.hpp.


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