4#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_UNITS_IS_BASE_QUANTITY_KIND_HPP_
5#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_UNITS_IS_BASE_QUANTITY_KIND_HPP_
8#include "arene/base/stdlib_choice/enable_if.hpp"
9#include "arene/base/stdlib_choice/is_same.hpp"
15namespace is_base_quantity_kind_detail {
20template <
typename BaseKind,
typename Type,
typename = constra
ints<>>
21extern constexpr bool is_base_quantity_kind_of_v =
false;
27template <
typename BaseKind,
typename Type>
28extern constexpr bool is_base_quantity_kind_of_v<
34 std::enable_if_t<std::is_same<typename Type::parent_quantity_kind_type, BaseKind>::value>>> =
true;
40template <
typename BaseKind,
typename Type>
41extern constexpr bool is_base_quantity_kind_of_v<
47 std::enable_if_t<!std::is_same<typename Type::parent_quantity_kind_type, BaseKind>::value>,
60template <
typename BaseKind,
typename Type>
62 is_base_quantity_kind_detail::is_base_quantity_kind_of_v<BaseKind, Type>;
70template <
typename BaseKind,
typename Type>
static constexpr value_type value
Definition integral_constant.hpp:34
Definition accumulate.hpp:37
constexpr bool is_base_quantity_kind_of_v
Type trait for checking if one type is a base quantity kind for another. Evaluates to true if the fir...
constexpr bool is_base_quantity_kind_of_or_same_as_v
Type trait for checking if one type is a base quantity kind for another, or the same type....
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