3#ifndef TETL_TYPE_TRAITS_IS_SWAPPABLE_WITH_HPP
4#define TETL_TYPE_TRAITS_IS_SWAPPABLE_WITH_HPP
27constexpr auto swap(T& a, T& b)
30template <
typename T, etl::
size_t N>
31 requires(etl::is_swappable<T>::value)
32constexpr auto swap(T (&a)[N], T (&b)[N])
noexcept(etl::is_nothrow_swappable<T>::value) ->
void;
35template <
typename T,
typename U,
typename =
void>
39template <
typename T,
typename U>
44template <
typename T,
typename U>
47template <
typename T,
typename U>
void void_t
Definition void_t.hpp:10
Definition adjacent_find.hpp:8
auto declval() noexcept -> add_rvalue_reference_t< T >
constexpr bool is_nothrow_move_constructible_v
Definition is_nothrow_move_constructible.hpp:20
constexpr bool is_move_constructible_v
Definition is_move_constructible.hpp:20
bool_constant< true > true_type
Definition bool_constant.hpp:13
auto swap(inplace_function< R(Args...), Capacity, Alignment > &lhs, inplace_function< R(Args...), Capacity, Alignment > &rhs) noexcept -> void
Overloads the etl::swap algorithm for etl::inplace_function. Exchanges the state of lhs with that of ...
Definition inplace_function.hpp:249
constexpr bool is_swappable_with_v
Definition is_swappable_with.hpp:48
integral_constant< bool, B > bool_constant
Definition bool_constant.hpp:11
bool_constant< false > false_type
Definition bool_constant.hpp:14
constexpr bool is_nothrow_move_assignable_v
Definition is_nothrow_move_assignable.hpp:28
constexpr bool is_move_assignable_v
Definition is_move_assignable.hpp:29
Definition is_swappable_with.hpp:36
static constexpr bool value
Definition integral_constant.hpp:10
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
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