TypeSI
Units of 'Système international' Blended for C++
Loading...
Searching...
No Matches
src
si_special.hpp
Go to the documentation of this file.
1
#pragma once
4
#include "
si_base.hpp
"
5
#include "
si_prefix.hpp
"
6
namespace
Si {
7
namespace
Special {
13
template
<
typename
T>
struct
Gram
{
14
template
<
typename
Ratio>
15
using
type =
16
Si::Prefix<std::ratio_multiply<std::milli, Ratio>
,
Base::Kilogram<T>
>;
17
};
// namespace Special
18
}
// namespace Special
19
}
// namespace Si
Si::Internal::Unit
Generic unit type.
Definition:
si_internal.hpp:22
si_base.hpp
Base SI units.
si_prefix.hpp
Prefixes for SI units.
Si::Prefix
decltype(Internal::applyPrefix< Ratio, Unit >()) Prefix
Public interface to apply prefix to unit.
Definition:
si_prefix.hpp:177
Si::Special::Gram
Template for applying prefix to gram rather than kilogram. Applying to latter involve some ambiguity ...
Definition:
si_special.hpp:13
Generated by
1.9.5