Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
is_reference.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_REFERENCE_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_IS_REFERENCE_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
17
18namespace std {
19/// @brief Check if the supplied template argument is a reference or not. The
20/// value is @c true if so, @c false otherwise
21/// @tparam T The type to check
22template <typename T>
24
25/// @brief Check if the supplied template argument is a reference or not. The @c
26/// value member is @c true if so, @c false otherwise
27/// @tparam T The type to check
28template <typename T>
29class is_reference : public bool_constant<is_reference_v<T>> {};
30} // namespace std
31
32#endif // INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_IS_REFERENCE_HPP_
Check if the supplied template argument is a reference or not. The value member is true if so,...
Definition is_reference.hpp:29
STL namespace.
constexpr bool is_lvalue_reference_v
Check if the supplied template argument is an lvalue reference or not. The value is true if so,...
integral_constant< bool, Value > bool_constant
An alias for integral_constant<bool,Value>
Definition integral_constant.hpp:71
constexpr bool is_reference_v
Check if the supplied template argument is a reference or not. The value is true if so,...
constexpr bool is_rvalue_reference_v
Check if the supplied template argument is an rvalue reference or not. The value is true if so,...