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

Dereference the value field in a recursive_union<>. This specialization handles values that are recursive_wrapper instances. More...

#include <recursive_union.hpp>

Static Public Member Functions

static auto ref (recursive_union< T, Ts... > &u) -> decltype(u.v.get())
 Produce a non-const reference to the object referred to by the value field of the provided union.
 
static auto ref (recursive_union< T, Ts... > const &u) -> decltype(u.v.get())
 Produce a const reference to the object referred to by the value field of the provided union.
 
static constexpr auto ptr (recursive_union< T, Ts... > &u) -> decltype(u.v.get_pointer())
 Produce a non-const pointer to the object referred to by the value field of the provided union.
 
static constexpr auto ptr (recursive_union< T, Ts... > const &u) -> decltype(u.v.get_pointer())
 Produce a const pointer to the object referred to by the value field of the provided union.
 

Detailed Description

template<class T, class... Ts>
struct pgs::recursive_union_dereference< true, T, Ts... >

Dereference the value field in a recursive_union<>. This specialization handles values that are recursive_wrapper instances.


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