HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
src
hikogui
utility
value_traits.hpp
Go to the documentation of this file.
1
2
7
#pragma once
8
9
namespace
hi
{
inline
namespace
v1
{
10
17
template
<std::
int
egral T>
18
[[nodiscard]]
constexpr
bool
is_integral_value
(T
const
&rhs)
noexcept
19
{
20
return
true
;
21
}
22
29
template
<std::
float
ing_po
int
T>
30
[[nodiscard]]
constexpr
bool
is_integral_value
(T
const
&rhs)
noexcept
31
{
32
return
static_cast<
double
>
(
static_cast<
long
long
>
(rhs)) ==
static_cast<
double
>
(rhs);
33
}
34
35
}}
36
v1
DOXYGEN BUG.
Definition
algorithm.hpp:13
hi
geometry/margins.hpp
Definition
cache.hpp:11
hi::v1::is_integral_value
constexpr bool is_integral_value(T const &rhs) noexcept
Check if a value is integral.
Definition
value_traits.hpp:18
Generated on Mon Apr 22 2024 12:52:52 for HikoGUI by
1.10.0