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:1301
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:2178
nonstd::variants::visit
R visit(const Visitor &v, V1 const &arg1)
Definition variant.hpp:2532
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
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:2089
restinio
Definition asio_include.hpp:21
restinio::on_this_thread
run_on_this_thread_settings_t< Traits > on_this_thread()
A special marker for the case when http_server must be run on the context of the current thread.
Definition http_server_run.hpp:123
variant.hpp