Pretty Good Sum Type  1.0.0
Static Public Attributes | List of all members
pgs::index_of< T, Ts > Struct Template Reference

A metafunction to compute the index I of a type T in a sequence Ts More...

#include <sum_type.hpp>

Static Public Attributes

static constexpr auto const value
 The index of T in Ts... More...
 

Detailed Description

template<class T, class... Ts>
struct pgs::index_of< T, Ts >

A metafunction to compute the index I of a type T in a sequence Ts

Template Parameters
TThe type for which we desire its index in Ts
TsA parameter pack containing T

Member Data Documentation

template<class T , class... Ts>
constexpr auto const pgs::index_of< T, Ts >::value
static
Initial value:
=
detail::index_of_impl<0u, T, Ts...>::value

The index of T in Ts...


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