RESTinio
os.hpp
Go to the documentation of this file.
1 /*
2  restinio
3 */
4 
5 /*!
6  OS specific functions.
7 */
8 
9 #pragma once
10 
11 namespace restinio
12 {
13 
14 #if defined( _MSC_VER )
15  #include "impl/os_win.ipp"
16 #elif (defined( __clang__ ) || defined( __GNUC__ )) && !defined(__WIN32__)
17  #include "impl/os_posix.ipp"
18 #else
19  #include "impl/os_unknown.ipp"
20 #endif
21 
22 } /* namespace restinio */
std::enable_if< std::is_same< Parameter_Container, query_string_params_t >::value||std::is_same< Parameter_Container, router::route_params_t >::value, optional_t< Value_Type > >::type opt_value(const Parameter_Container &params, string_view_t key)
Gets the value of a parameter specified by key wrapped in optional_t<Value_Type> if parameter exists ...
Definition: value_or.hpp:64