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.
Loading...
Searching...
No Matches
acceleration.h
Go to the documentation of this file.
1
12#pragma once
13
15#include "time.h"
16#include "velocity.h"
17
18namespace SI {
19
21template <typename _type, typename _ratio>
22using acceleration_t = detail::unit_t<'a', std::ratio<1>, _type, _ratio>;
23
24// specialize unit_symbol for usage with stream operators
25template <>
26struct unit_symbol<'a', std::ratio<1>>
27 : SI::detail::unit_symbol_impl<'m', '/', 's', '^', '2'> {};
28
29template <typename _ratio>
30struct unit_symbol<'a', _ratio>
31 : SI::detail::unit_symbol_impl<SI::detail::ratio_prefix<_ratio>::value, 'm',
32 '/', 's', '^', '2'> {};
33
39
40} // namespace SI
Definition absorbed_dose.h:18
#define BUILD_UNIT_FROM_DIVISION(RESULTING_UNIT_T, DIVIDEND_UNIT_T, DIVISOR_UNIT_T)
Definition operator_helpers.h:22
Compile time string provider for conversion of unit types to strings.
Definition unit_symbol.h:21
base template class for holding values of type _type to be multiplied with a ratio _ratio
Definition unit.h:51
Base struct. Unusable needs template overloading.
Definition unit_symbol.h:64