20template <
char _symbol,
typename _exponent,
typename _type,
typename _ratio>
24 stream << unit.
value() <<
" "
31template <
char _symbol,
typename _exponent,
typename _type,
typename _ratio>
36 std::string unit_symbol;
37 stream >> v >> unit_symbol;
41 stream.setstate(std::ios::failbit);
48template <
char _symbol,
typename _exponent,
typename _type,
typename _ratio>
51 return std::to_string(value.
value())
Definition absorbed_dose.h:18
std::string to_string(const SI::detail::unit_t< _symbol, _exponent, _type, _ratio > &value)
Definition stream.h:50
std::istream & operator>>(std::istream &stream, SI::detail::unit_t< _symbol, _exponent, _type, _ratio > &obj)
Definition stream.h:33
std::ostream & operator<<(std::ostream &stream, const SI::detail::unit_t< _symbol, _exponent, _type, _ratio > &unit)
Definition stream.h:22
base template class for holding values of type _type to be multiplied with a ratio _ratio
Definition unit.h:51
void setValue(_type v)
Definition unit.h:130
constexpr _type value() const
returns the stored value as raw type
Definition unit.h:100
Base struct. Unusable needs template overloading.
Definition unit_symbol.h:64