OGLplus
(0.59.0)
a C++ wrapper for rendering APIs
eagine
units
default.hpp
Go to the documentation of this file.
1
9
#ifndef EAGINE_UNITS_DEFAULT_HPP
10
#define EAGINE_UNITS_DEFAULT_HPP
11
12
#include "../type_identity.hpp"
13
#include "
fwd.hpp
"
14
15
namespace
eagine::units {
16
17
template
<
typename
X,
typename
Y>
18
struct
same_dimension : std::false_type {};
19
20
template
<
typename
U>
21
struct
add_result<U, U> : type_identity<U> {};
22
23
template
<
typename
U>
24
struct
sub_result<U, U> : type_identity<U> {};
25
26
template
<
typename
T1,
typename
T2>
27
struct
is_convertible : std::false_type {};
28
29
template
<
typename
U>
30
struct
is_convertible<U, U> : std::true_type {};
31
32
struct
trivial_value_conv {
33
template
<
typename
T>
34
constexpr
auto
operator()(T v)
const
-> T {
35
return
v;
36
}
37
};
38
39
template
<
typename
U>
40
struct
value_conv<U, U> : trivial_value_conv {};
41
42
}
// namespace eagine::units
43
44
#endif // EAGINE_UNITS_DEFAULT_HPP
fwd.hpp
Copyright © 2015-2021
Matúš Chochlík
.
<
chochlik -at -gmail.com
>
Documentation generated on Tue Apr 13 2021 by
Doxygen
(version 1.8.17).