tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
is_swappable.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TYPE_TRAITS_IS_SWAPPABLE_HPP
4#define TETL_TYPE_TRAITS_IS_SWAPPABLE_HPP
5
8
9namespace etl {
10
15template <typename T>
16struct is_swappable : is_swappable_with<add_lvalue_reference_t<T>, add_lvalue_reference_t<T>>::type { };
17
18// clang-format on
19
20template <typename T>
21inline constexpr bool is_swappable_v = is_swappable<T>::value;
22
23} // namespace etl
24
25#endif // TETL_TYPE_TRAITS_IS_SWAPPABLE_HPP
Definition adjacent_find.hpp:8
constexpr bool is_swappable_v
Definition is_swappable.hpp:21
Definition is_swappable_with.hpp:45
If T is not a referenceable type (i.e., possibly cv-qualified void or a function type with a cv-quali...
Definition is_swappable.hpp:16