VCCC  2024.05
VisualCamp Common C++ library
swap.hpp File Reference

Go to the source code of this file.

Classes

struct  adl_swappable< T, U, bool >
 
struct  adl_swappable< T, U, true >
 
struct  swappable_array< T, U, typename >
 
struct  swap_niebloid
 
struct  swappable_array< T(&)[N], U(&)[N], void_t< decltype(ranges::swap(*std::declval< T(&)[N]>(), *std::declval< U(&)[N]>()))> >
 

Namespaces

 vccc
 
 vccc::ranges
 
 vccc::ranges::detail_ranges_swap
 
 vccc::ranges::niebloid
 Niebloids.
 

Functions

template<typename T >
constexpr void swap (T &, T &)=delete
 
template<typename T , typename U >
constexpr auto test_swap (int) -> decltype(swap(std::declval< T >(), std::declval< U >()), std::true_type{})
 
template<typename T , typename U >
constexpr auto test_swap (...) -> std::false_type
 

Variables

constexpr VCCC_INLINE_OR_STATIC detail_ranges_swap::swap_niebloid swap {}
 swaps the values of two objects More...