RESTinio
cast_to.hpp
Go to the documentation of this file.
1 /*
2  restinio
3 */
4 
5 /*!
6  Cast.
7 */
8 
9 #pragma once
10 
11 #include <string>
12 
13 #include <restinio/string_view.hpp>
14 
15 #include <restinio/utils/from_string.hpp>
16 
17 namespace restinio
18 {
19 
20 //
21 // cast_to()
22 //
23 
24 //! Cast string representation to a given type.
25 template < typename Value_Type >
26 Value_Type
27 cast_to( string_view_t str_representation )
28 {
30 }
31 
32 } /* namespace restinio */
Value_Type cast_to(string_view_t str_representation)
Cast string representation to a given type.
Definition: cast_to.hpp:27
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