RESTinio
Loading...
Searching...
No Matches
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
17#endif
18
19namespace restinio
20{
21 template< typename... Types >
23
25 using nonstd::get;
26 using nonstd::get_if;
27 using nonstd::visit;
28
29} /* namespace restinio */
30
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
R visit(const Visitor &v, V1 const &arg1)
Definition variant.hpp:2532
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
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
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.