RESTinio

variant.hpp
Go to the documentation of this file.
1/*
2 restinio
3*/
4
11#pragma once
12
13#if defined(RESTINIO_EXTERNAL_VARIANT_LITE)
14 #include <nonstd/variant.hpp>
15#else
16 #include "third_party/variant-lite/variant.hpp"
17#endif
18
19 namespace restinio
20{
21 template< typename... Types >
22 using variant_t = nonstd::variant< Types... >;
23
24 using nonstd::holds_alternative;
25 using nonstd::get;
26 using nonstd::get_if;
27 using nonstd::visit;
28
29} /* namespace restinio */
30
nonstd::variants::variant
Definition: variant.hpp:1301
nonstd::variants::visit
R visit(const Visitor &v, V1 const &arg1, V2 const &arg2, V3 const &arg3, V4 const &arg4, V5 const &arg5)
Definition: variant.hpp:2556
nonstd::variants::holds_alternative
bool holds_alternative(variant< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15 > const &v) variant_noexcept
Definition: variant.hpp:2083
nonstd::variants::get_if
std11::add_pointer< consttypenamevariant_alternative< K, variant< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15 > >::type >::type get_if(variant< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15 > const *pv, nonstd_lite_in_place_index_t(K)=nonstd_lite_in_place_index(K))
Definition: variant.hpp:2199
nonstd::variants::get
variant_alternative< K, variant< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15 > >::type const & get(variant< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15 > const &v, nonstd_lite_in_place_index_t(K)=nonstd_lite_in_place_index(K))
Definition: variant.hpp:2117
restinio
Definition: asio_include.hpp:21
variant.hpp