Range-v3
Range algorithms, views, and actions for the Standard Library
ranges::v3::concepts::Swappable Struct Reference

Public Member Functions

template<typename T >
auto requires_ (T &&) -> decltype( concepts::valid_expr( ((void) swap(std::declval< T >(), std::declval< T >()), 42) ))
 
template<typename T , typename U >
auto requires_ (T &&, U &&) -> decltype( concepts::valid_expr( ((void) swap(std::declval< T >(), std::declval< U >()), 42), ((void) swap(std::declval< U >(), std::declval< T >()), 42) ))