5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TYPE_TRAITS_IS_SWAPPABLE_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TYPE_TRAITS_IS_SWAPPABLE_HPP_
12#include "arene/base/stdlib_choice/declval.hpp"
13#include "arene/base/stdlib_choice/is_move_assignable.hpp"
14#include "arene/base/stdlib_choice/is_move_constructible.hpp"
15#include "arene/base/stdlib_choice/is_same.hpp"
16#include "arene/base/stdlib_choice/remove_reference.hpp"
21namespace swappable_detail {
29auto swap() ->
void =
delete;
33template <
typename T,
typename U>
46template <
typename T,
typename U>
68template <
typename T,
typename U,
bool = is_adl_swappable_with_v<T, U>>
71template <
typename T,
typename U>
81template <
typename T,
bool = is_adl_swappable_v<T>>
113template <
typename T,
class U>
135template <
typename T,
typename U>
static constexpr value_type value
Definition integral_constant.hpp:34
static ARENE_MAYBE_UNUSED constexpr auto const & swap
A Customization Point Object implementation of the constexpr compatible std::swap from C++17.
Definition swap.hpp:130
Definition accumulate.hpp:37
constexpr bool is_nothrow_swappable_v
Trait query indicating if a type can be noexcept-swapped.
constexpr bool is_adl_swappable_v
Trait query if a type has an ADL-discoverable swap function.
constexpr bool is_swappable_v
Trait query indicating if a type can be swapped.
constexpr bool is_nothrow_adl_swappable_v
Trait query if a type has a noexcept ADL-discoverable swap function.
constexpr bool substitution_succeeds
Determines if a template can be instantiated successfully, similar to C++20's requires clause.
constexpr bool is_nothrow_swappable_with_v
Trait query indicating if two types can be noexcept-swapped.
constexpr bool is_adl_swappable_with_v
Trait query if a two types have an ADL-discoverable swap function.
constexpr bool is_nothrow_default_swappable_v
Trait query if a type can be noexcept swapped the default implementation.
constexpr bool is_swappable_with_v
Trait query indicating two types can be swapped.
constexpr bool is_nothrow_adl_swappable_with_v
Trait query if two types have a noexcept ADL-discoverable swap function.
constexpr bool is_default_swappable_v
Trait query if a type can be swapped via the default implementation.
Definition accumulate.hpp:36
auto declval() noexcept -> T &&
A dummy function that is declared but not defined, with a user-specified return type,...