Pretty Good Sum Type  1.0.0
Static Public Member Functions | List of all members
pgs::recursive_union_indexer< I, T, Ts > Struct Template Reference

The purpose of this type is to walk a recursive_union<> and return the value field of the Ith union in the chain. More...

#include <recursive_union.hpp>

Static Public Member Functions

static constexpr auto ref (recursive_union< T, Ts... > &u) -> decltype(recursive_union_indexer< I-1, Ts... >::ref(u.r))
 Decrement I, strip off T and recurse.
 
static constexpr auto ref (recursive_union< T, Ts... > const &u) -> decltype(recursive_union_indexer< I-1, Ts... >::ref(u.r))
 Decrement I, strip off T and recurse.
 
static constexpr auto ptr (recursive_union< T, Ts... > &u) -> decltype(recursive_union_indexer< I-1, Ts... >::ptr(u.r))
 Decrement I, strip off T and recurse.
 
static constexpr auto ptr (recursive_union< T, Ts... > const &u) -> decltype(recursive_union_indexer< I-1, Ts... >::ptr(u.r))
 Decrement I, strip off T and recurse.
 

Detailed Description

template<std::size_t I, class T, class... Ts>
struct pgs::recursive_union_indexer< I, T, Ts >

The purpose of this type is to walk a recursive_union<> and return the value field of the Ith union in the chain.


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