Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
is_kind_with_exponent.hpp
Go to the documentation of this file.
1// Copyright 2026, Toyota Motor Corporation
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_UNITS_IS_KIND_WITH_EXPONENT_HPP_
5#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_UNITS_IS_KIND_WITH_EXPONENT_HPP_
6
7#include "arene/base/units/kind_with_exponent_fwd.hpp"
8
9namespace arene {
10namespace base {
11
12namespace units_detail {
13/// @brief Type trait to check if a given type is a quantity kind with an exponent. Is @c true if it is, @c false
14/// otherwise
15/// @tparam Kind The type to check
16template <typename Kind>
17extern constexpr bool is_kind_with_exponent_v = false;
18
19/// @brief Type trait to check if a given type is a quantity kind with an exponent. Is @c true if it is, @c false
20/// otherwise
21/// @tparam Kind The base quantity kind
22/// @tparam PositiveExponent The positive exponent
23/// @tparam NegativeExponent The negative exponent
24template <typename Kind, exponent_t PositiveExponent, exponent_t NegativeExponent>
25extern constexpr bool is_kind_with_exponent_v<quantity_kind_with_exponent<Kind, PositiveExponent, NegativeExponent>> =
26 true;
27
28} // namespace units_detail
29
30} // namespace base
31} // namespace arene
32
33#endif // INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_UNITS_IS_KIND_WITH_EXPONENT_HPP_
Definition array_exceptions_disabled.cpp:11
Copyright 2026, Toyota Motor Corporation.
Definition array_exceptions_disabled.cpp:10