19 template <
char _symbol,
typename _exponent,
typename _type,
typename _ratio>
23 stream << unit.
value() <<
" "
30 template <
char _symbol,
typename _exponent,
typename _type,
typename _ratio>
35 std::string unit_symbol;
36 stream >> v >> unit_symbol;
40 stream.setstate(std::ios::failbit);
47 template <
char _symbol,
typename _exponent,
typename _type,
typename _ratio>
Definition: absorbed_dose.h:18
std::string to_string(const SI::detail::unit_t< _symbol, _exponent, _type, _ratio > &value)
Definition: stream.h:49
std::istream & operator>>(std::istream &stream, SI::detail::unit_t< _symbol, _exponent, _type, _ratio > &obj)
Definition: stream.h:32
std::ostream & operator<<(std::ostream &stream, const SI::detail::unit_t< _symbol, _exponent, _type, _ratio > &unit)
Definition: stream.h:21
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