userver
C++ Async Framework
Loading...
Searching...
No Matches
hours.hpp
1
#
pragma
once
2
3
#
include
<
chrono
>
4
5
#
include
<
userver
/
chaotic
/
convert
.
hpp
>
6
#
include
<
userver
/
utils
/
numeric_cast
.
hpp
>
7
8
USERVER_NAMESPACE_BEGIN
9
10
namespace
chaotic::convert {
11
12
template
<
typename
T>
13
T Convert(std::chrono::hours value, chaotic::convert::
To
<T>) {
14
return
utils::numeric_cast<T>(value.count());
15
}
16
17
}
// namespace chaotic::convert
18
19
USERVER_NAMESPACE_END
userver
chaotic
io
std
chrono
hours.hpp
Generated on Thu Sep 5 2024 11:15:19 for userver by
Doxygen
1.10.0