5#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_SWAP_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_SWAP_HPP_
32template <
class T, arene::base::constra
ints<std::enable_if_t<arene::base::is_default_swappable_v<T>>> =
nullptr>
46template <
class T, std::
size_t N, arene::base::constra
ints<std::enable_if_t<arene::base::is_swappable_v<T>>> =
nullptr>
50 swap(lhs[idx], rhs[idx]);
Public export header for the constraints subpackage.
constexpr bool is_nothrow_swappable_v
Trait query indicating if a type can be noexcept-swapped.
constexpr bool is_nothrow_default_swappable_v
Trait query if a type can be noexcept swapped the default implementation.
void swap(pair< T1, T2 > &lhs, pair< T1, T2 > &rhs) noexcept(arene::base::is_nothrow_swappable_v< T1 > &&arene::base::is_nothrow_swappable_v< T2 >)
Swap a pair with another instance of the same type. Swaps lhs.first with rhs.first and swaps lhs....
Definition pair.hpp:448
constexpr auto move(T &&value) noexcept -> remove_reference_t< T > &&
Cast a value to an rvalue.
Definition move.hpp:30
::size_t size_t
A type suitable for holding the size of an object.
Definition cstddef.hpp:29