5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_UNITS_UNIT_KIND_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_UNITS_UNIT_KIND_HPP_
9#include "arene/base/stdlib_choice/enable_if.hpp"
15namespace unit_kind_detail {
19template <
typename Unit,
typename = constra
ints<>>
20class unit_kind_helper {
23 using type =
typename Unit::unit_kind_type;
28template <
typename Unit>
32 using type =
typename unit_kind_helper<typename Unit::unit_kind_type>::type;
39template <
typename Unit>
40using unit_kind_t =
typename unit_kind_detail::unit_kind_helper<Unit>::type;
Definition accumulate.hpp:37
typename unit_kind_detail::unit_kind_helper< Unit >::type unit_kind_t
Alias template for the underlying quantity kind for a unit.
Definition unit_kind.hpp:40
typename constraints_impl::constraints< EnableIfs... >::type constraints
Helper used to express template constraints in a consistent way using std::enable_if_t.
Definition constraints.hpp:51
Definition accumulate.hpp:36
typename enable_if< Condition, Type >::type enable_if_t
Type alias to support constraining templates. Is an alias for the specified type if the Condition is ...
Definition enable_if.hpp:41