Pretty Good Sum Type
1.0.0
|
The purpose of this type is to walk a recursive_union<>
and return the value field of the I
th 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. | |
The purpose of this type is to walk a recursive_union<>
and return the value field of the I
th union in the chain.