SI
2.5.4
A header only c++ library that provides type safety and user defined literals for handling physical values defined in the International System of Units.
SI
momentum.h
Go to the documentation of this file.
1
12
#pragma once
13
14
#include "
detail/operator_helpers.h
"
15
16
#include "
detail/number_parser.h
"
17
#include "
detail/unit.h
"
18
#include "
mass.h
"
19
#include "
velocity.h
"
20
21
namespace
SI
{
22
24
template
<
typename
_type,
typename
_ratio>
25
using
momentum_t
=
detail::unit_t<'o', std::ratio<1>
, _type, _ratio>;
26
27
namespace
detail {
28
BUILD_UNIT_FROM_MULTIPLICATION
(
momentum_t
,
velocity_t
,
mass_t
)
29
}
30
31
}
// namespace SI
mass.h
SI
Definition:
absorbed_dose.h:18
number_parser.h
operator_helpers.h
BUILD_UNIT_FROM_MULTIPLICATION
#define BUILD_UNIT_FROM_MULTIPLICATION(RESULTING_UNIT, UNIT_LHS, UNIT_RHS)
Definition:
operator_helpers.h:54
SI::detail::unit_t
base template class for holding values of type _type to be multiplied with a ratio _ratio
Definition:
unit.h:51
unit.h
velocity.h
Generated by
1.9.1