Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
is_reference_wrapper.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_ARENE_BASE_TYPE_TRAITS_IS_REFERENCE_WRAPPER_HPP_
6
#
define
INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TYPE_TRAITS_IS_REFERENCE_WRAPPER_HPP_
7
8
// IWYU pragma: private, include "arene/base/type_traits.hpp"
9
// IWYU pragma: friend "(arene/base(?!/tests)|stdlib/include/stdlib_detail)/.*"
10
11
// Use forward declaration when building stdlib to avoid circular dependecy
12
#
include
"arene/base/stdlib_choice/reference_wrapper_fwd.hpp"
13
14
namespace
arene
{
15
namespace
base
{
16
17
template
<
typename
T
>
18
constexpr
bool
is_reference_wrapper_v
=
false
;
19
20
template
<
typename
T
>
21
constexpr
bool
is_reference_wrapper_v
<
std
::
reference_wrapper
<
T
>> =
true
;
22
23
}
// namespace base
24
}
// namespace arene
25
26
#
endif
// INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TYPE_TRAITS_IS_REFERENCE_WRAPPER_HPP_
arene::base
Definition
array_exceptions_disabled.cpp:11
arene::base::is_reference_wrapper_v
constexpr bool is_reference_wrapper_v
Definition
is_reference_wrapper.hpp:18
arene
Copyright 2026, Toyota Motor Corporation.
Definition
array_exceptions_disabled.cpp:10
arene
base
type_traits
is_reference_wrapper.hpp
Generated by
1.13.2