Loading...
Searching...
No Matches
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:1304
nonstd::variants::get_if
std11::add_pointer< T >::type get_if(variant< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15 > *pv, nonstd_lite_in_place_type_t(T)=nonstd_lite_in_place_type(T))
Definition: variant.hpp:2181
nonstd::variants::visit
R visit(const Visitor &v, V1 const &arg1)
Definition: variant.hpp:2535
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:2086
nonstd::variants::get
R & get(variant< T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15 > &v, nonstd_lite_in_place_type_t(R)=nonstd_lite_in_place_type(R))
Definition: variant.hpp:2092
restinio
Definition: asio_include.hpp:21
variant.hpp