tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_nothrow_swappable.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_TYPE_TRAITS_IS_NOTHROW_SWAPPABLE_HPP
4
#define TETL_TYPE_TRAITS_IS_NOTHROW_SWAPPABLE_HPP
5
6
#include <
etl/_type_traits/add_lvalue_reference.hpp
>
7
#include <
etl/_type_traits/is_nothrow_swappable_with.hpp
>
8
9
namespace
etl
{
10
15
template
<
typename
T>
16
struct
is_nothrow_swappable
:
is_nothrow_swappable_with
<add_lvalue_reference_t<T>, add_lvalue_reference_t<T>>::type { };
17
18
template
<
typename
T>
19
inline
constexpr
bool
is_nothrow_swappable_v
=
is_nothrow_swappable<T>::value
;
20
21
}
// namespace etl
22
23
#endif
// TETL_TYPE_TRAITS_IS_NOTHROW_SWAPPABLE_HPP
add_lvalue_reference.hpp
is_nothrow_swappable_with.hpp
etl
Definition
adjacent_find.hpp:8
etl::is_nothrow_swappable_v
constexpr bool is_nothrow_swappable_v
Definition
is_nothrow_swappable.hpp:19
etl::is_nothrow_swappable_with
Definition
is_nothrow_swappable_with.hpp:21
etl::is_nothrow_swappable
If T is not a referenceable type (i.e., possibly cv-qualified void or a function type with a cv-quali...
Definition
is_nothrow_swappable.hpp:16
include
etl
_type_traits
is_nothrow_swappable.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0