libcaf
0.16.3
|
Enable holds_alternative
, get
, get_if
, and visit
for variant
.
More...
#include <variant.hpp>
Additional Inherited Members | |
![]() | |
using | types = typename variant< Ts... > ::types |
using | type0 = typename detail::tl_head< types >::type |
![]() | |
static bool | is (const variant< Ts... > &x, sum_type_token< U, Pos > token) |
static U & | get (variant< Ts... > &x, sum_type_token< U, Pos > token) |
static const U & | get (const variant< Ts... > &x, sum_type_token< U, Pos > token) |
static U * | get_if (variant< Ts... > *x, sum_type_token< U, Pos > token) |
static const U * | get_if (const variant< Ts... > *x, sum_type_token< U, Pos > token) |
static Result | apply (variant< Ts... > &x, Visitor &&visitor, Ts &&... xs) |
static Result | apply (const variant< Ts... > &x, Visitor &&visitor, Ts &&... xs) |
![]() | |
static constexpr bool | specialized |
Enable holds_alternative
, get
, get_if
, and visit
for variant
.