![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
Base class for declaring a quantity unit. More...

Public Types | |
| using | unit_kind_type = Kind |
| Type alias to indicate the quantity kind for which this is a unit. | |
Friends | |
| template<typename OtherDerived, typename OtherParentKind, typename OtherOrigin, typename OtherUnit, constraints< std::enable_if_t< is_possible_unit_for_v< Tag, OtherDerived > > > = nullptr> | |
| auto | rebind_quantity_kind_unit_type (quantity_kind_detail::quantity_kind_base< OtherDerived, OtherParentKind, OtherOrigin, OtherUnit > const &, Tag const &) -> quantity_unit_detail::quantity_kind_with_rebound_unit< OtherDerived, Tag > |
| helper used to rebind the unit type of a quantity kind | |
Base class for declaring a quantity unit.
| Tag | the derived class which represents the quantity unit |
| Kind | The quantity kind for which this is a unit |
Tag must derive from quantity_unit<Tag> | using arene::base::quantity_unit< Tag, Kind >::unit_kind_type = Kind |
Type alias to indicate the quantity kind for which this is a unit.
|
friend |
helper used to rebind the unit type of a quantity kind
| OtherDerived | derived quantity kind type to rebind |
| OtherParentKind | parent kind of the quantity type to rebind |
| OtherUnit | unit of the quantity type to rebind |
Tag is_possible_unit_for<Tag, OtherDerived> to be true