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.
acceleration.h
Go to the documentation of this file.
1 
12 #pragma once
13 
15 #include "time.h"
16 #include "velocity.h"
17 
18 namespace SI {
19 
21 template <typename _type, typename _ratio>
23 
24 // specialize unit_symbol for usage with stream operators
25 template <>
26 struct unit_symbol<'a', std::ratio<1>>
27  : SI::detail::unit_symbol_impl<'m', '/', 's', '^', '2'> {};
28 
29 template <typename _ratio>
30 struct unit_symbol<'a', _ratio>
31  : SI::detail::unit_symbol_impl<SI::detail::ratio_prefix<_ratio>::value, 'm',
32  '/', 's', '^', '2'> {};
33 
34 namespace detail {
38 } // namespace detail
39 
40 } // namespace SI
BUILD_UNIT_FROM_DIVISION(electric_conductance_t, electric_current_t, electric_potential_t) template< typename _type
Definition: absorbed_dose.h:18
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