Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
is_explicit.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
5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_UNITS_IS_EXPLICIT_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_UNITS_IS_EXPLICIT_HPP_
7
10
11namespace arene {
12namespace base {
13namespace units_detail {
14
15/// @brief Type trait for detecting an explicit quantity kind.
16/// @tparam Type the type to check
17///
18/// Evaluates to @c true if the type is a quantity kind which does not provide
19/// an unspecified @c is_implicit type alias, @c false otherwise
20template <typename Type>
21extern constexpr bool is_explicit_v = is_quantity_kind_v<Type> && !is_implicit_v<Type>;
22
23} // namespace units_detail
24} // namespace base
25} // namespace arene
26
27#endif // INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_UNITS_IS_EXPLICIT_HPP_
Definition accumulate.hpp:37
constexpr bool is_quantity_kind_v
Type trait for detecting a quantity kind. Evaluates to true if the type is a quantity kind,...
Definition accumulate.hpp:36