OGLplus
(0.59.0)
a C++ wrapper for rendering APIs
eagine
units
unit
si
common.hpp
Go to the documentation of this file.
1
#ifndef EAGINE_UNITS_UNIT_SI_COMMON_HPP
9
#define EAGINE_UNITS_UNIT_SI_COMMON_HPP
10
11
#include "../../base_dim.hpp"
12
#include "../../base_scaled_unit.hpp"
13
#include "../../base_unit.hpp"
14
#include "../../scaled_unit.hpp"
15
#include "../../unit.hpp"
16
17
namespace
eagine::units {
18
19
// international system of units
20
struct
si {
21
template
<
typename
BaseDim>
22
struct
base_unit;
23
};
24
25
template
<>
26
struct
system_id<si> :
int_constant
<0> {};
27
28
template
<>
29
struct
si::base_unit<nothing_t> : nothing_t {};
30
31
template
<
typename
Dim>
32
struct
si::base_unit<base::dimension<Dim>> : si::base_unit<Dim> {};
33
34
}
// namespace eagine::units
35
36
#endif // EAGINE_UNITS_UNIT_SI_COMMON_HPP
eagine::int_constant
std::integral_constant< int, I > int_constant
Alias for signed int constant type.
Definition:
int_constant.hpp:25
Copyright © 2015-2021
Matúš Chochlík
.
<
chochlik -at -gmail.com
>
Documentation generated on Tue Apr 13 2021 by
Doxygen
(version 1.8.17).