RESTinio
Loading...
Searching...
No Matches
restinio
cast_to.hpp
Go to the documentation of this file.
1
/*
2
restinio
3
*/
4
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
25
template
<
typename
Value_Type >
26
Value_Type
27
cast_to
(
string_view_t
str_representation
)
28
{
29
return
utils::from_string< Value_Type >(
str_representation
);
30
}
31
32
}
/* namespace restinio */
33
from_string.hpp
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
restinio::string_view_t
nonstd::string_view string_view_t
Definition
string_view.hpp:19
restinio::cast_to
Value_Type cast_to(string_view_t str_representation)
Cast string representation to a given type.
Definition
cast_to.hpp:27
string_view.hpp
Generated by
1.9.8