tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_nothrow_copy_assignable.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4
#
ifndef
TETL_TYPE_TRAITS_IS_NOTHROW_COPY_ASSIGNABLE_HPP
5
#
define
TETL_TYPE_TRAITS_IS_NOTHROW_COPY_ASSIGNABLE_HPP
6
7
#
include
<
etl
/
_type_traits
/
add_lvalue_reference
.
hpp
>
8
#
include
<
etl
/
_type_traits
/
bool_constant
.
hpp
>
9
10
namespace
etl
{
11
12
/// \brief If T is not a referenceable type (i.e., possibly cv-qualified void or
13
/// a function type with a cv-qualifier-seq or a ref-qualifier), provides a
14
/// member constant value equal to false. Otherwise, provides a member constant
15
/// value equal to etl::is_nothrow_assignable<T&, T const&>::value.
16
///
17
/// \details T shall be a complete type, (possibly cv-qualified) void, or an
18
/// array of unknown bound. Otherwise, the behavior is undefined. If an
19
/// instantiation of a template above depends, directly or indirectly, on an
20
/// incomplete type, and that instantiation could yield a different result if
21
/// that type were hypothetically completed, the behavior is undefined. The
22
/// behavior of a program that adds specializations for any of the templates
23
/// described on this page is undefined.
24
template
<
typename
T>
25
struct
is_nothrow_copy_assignable
26
:
is_nothrow_assignable
<
add_lvalue_reference_t
<
T
>,
add_lvalue_reference_t
<
T
const
>> { };
27
28
template
<
typename
T
>
29
inline
constexpr
bool
is_nothrow_copy_assignable_v
=
is_nothrow_copy_assignable
<
T
>::
value
;
30
31
}
// namespace etl
32
33
#
endif
// TETL_TYPE_TRAITS_IS_NOTHROW_COPY_ASSIGNABLE_HPP
etl
Definition
adjacent_find.hpp:9
etl::is_nothrow_copy_assignable_v
constexpr bool is_nothrow_copy_assignable_v
Definition
is_nothrow_copy_assignable.hpp:29
etl::is_nothrow_copy_assignable
If T is not a referenceable type (i.e., possibly cv-qualified void or a function type with a cv-quali...
Definition
is_nothrow_copy_assignable.hpp:26
include
etl
_type_traits
is_nothrow_copy_assignable.hpp
Generated on Sun Sep 7 2025 19:15:17 for tetl by
1.9.8