variant.hpp
Go to the documentation of this file.
/*
restinio
*/
#pragma once
#if defined(RESTINIO_EXTERNAL_VARIANT_LITE)
#include <nonstd/variant.hpp>
#else
#include "third_party/variant-lite/variant.hpp"
#endif
namespace restinio
{
template< typename... Types >
using variant_t = nonstd::variant< Types... >;
using nonstd::holds_alternative;
using nonstd::get;
using nonstd::get_if;
using nonstd::visit;
} /* namespace restinio */
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