std::experimental::ranges::is_swappable_with,std::experimental::ranges::is_swappable, (3) - Linux Manuals
std::experimental::ranges::is_swappable_with,std::experimental::ranges::is_swappable,: std::experimental::ranges::is_swappable_with,std::experimental::ranges::is_swappable,
NAME
std::experimental::ranges::is_swappable_with,std::experimental::ranges::is_swappable, - std::experimental::ranges::is_swappable_with,std::experimental::ranges::is_swappable,
Synopsis
Defined in header
template
struct is_swappable_with;
template
struct is_swappable;
template
struct is_nothrow_swappable_with;
template
struct is_nothrow_swappable;
1)
ranges::swap(std::declval<U>(), std::declval<T>())
as an unevaluated operand, provides the member constant value equal true. Otherwise,
value is false. Access checks are performed as if from a context unrelated to either
type.
2)
type with a cv-qualifier-seq or a ref-qualifier), provides a member constant value
equal to false. Otherwise, provides a member constant value equal to
ranges::is_swappable_with<T&, T&>::value.
3)
exceptions.
4)
T and U shall each be a complete type,
unknown bound. Otherwise, the behavior is undefined.
template
constexpr bool is_swappable_with_v
template