Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
is_fundamental.hpp
Go to the documentation of this file.
1// Copyright 2024, Toyota Motor Corporation
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
5#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_IS_FUNDAMENTAL_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_IS_FUNDAMENTAL_HPP_
7
8// parasoft-begin-suppress CERT_CPP-DCL58-a-2 "Part of a standard library implementation"
9// parasoft-begin-suppress AUTOSAR-A17_6_1-a-2 "Part of a standard library implementation"
10
11// IWYU pragma: private, include <type_traits>
12// IWYU pragma: friend "stdlib_detail/.*"
13
20
21namespace std {
22/// @brief Check if the supplied template argument is a fundamental type or not.
23/// The value is @c true if so, @c false otherwise
24/// @tparam T The type to check
25template <typename T>
27
28/// @brief Check if the supplied template argument is a fundamental type or not.
29/// The @c value member is @c true if so, @c false otherwise
30/// @tparam T The type to check
31template <typename T>
32class is_fundamental : public bool_constant<is_fundamental_v<T>> {};
33} // namespace std
34
35#endif // INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_IS_FUNDAMENTAL_HPP_
Check if the supplied template argument is a fundamental type or not. The value member is true if so,...
Definition is_fundamental.hpp:32
STL namespace.
typedef nullptr_t
The type of nullptr.
Definition cstddef.hpp:33
integral_constant< bool, Value > bool_constant
An alias for integral_constant<bool,Value>
Definition integral_constant.hpp:71
constexpr bool is_arithmetic_v
A type trait to check if a type is an arithmetic type. The value is true if Type is an arithmetic typ...
constexpr bool is_same_v
Trait to detect if the two supplied types are the same or not. The value is true if the types are the...
constexpr bool is_fundamental_v
Check if the supplied template argument is a fundamental type or not. The value is true if so,...
constexpr bool is_void_v
A type trait to check if a type is void. The value is true if Type is void, false otherwise.