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
8
#include "
arene/base/units/is_implicit.hpp
"
9
#include "
arene/base/units/is_quantity_kind.hpp
"
10
11
namespace
arene
{
12
namespace
base
{
13
namespace
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
20
template
<
typename
Type>
21
extern
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_
is_implicit.hpp
is_quantity_kind.hpp
arene::base
Definition
accumulate.hpp:37
arene::base::is_quantity_kind_v
constexpr bool is_quantity_kind_v
Type trait for detecting a quantity kind. Evaluates to true if the type is a quantity kind,...
arene
Definition
accumulate.hpp:36
arene
base
units
is_explicit.hpp
Generated by
1.13.2