Horizon
Loading...
Searching...
No Matches
swap.hpp File Reference
#include <concepts/swap.hpp>
#include <range/v3/range_fwd.hpp>
#include <range/v3/utility/static_const.hpp>
#include <range/v3/detail/prologue.hpp>
#include <range/v3/detail/epilogue.hpp>

Go to the source code of this file.

Namespaces

namespace  ranges::cpp20

Typedefs

template<typename T>
using ranges::is_swappable = concepts::is_swappable<T>
template<typename T>
using ranges::is_nothrow_swappable = concepts::is_nothrow_swappable<T>
template<typename T, typename U>
using ranges::is_swappable_with = concepts::is_swappable_with<T, U>
template<typename T, typename U>
using ranges::is_nothrow_swappable_with = concepts::is_nothrow_swappable_with<T, U>

Functions

template<typename T, typename U = T>
CPP_CXX14_CONSTEXPR meta::if_c< std::is_move_constructible< T >::value &&std::is_assignable< T &, U >::value, T > ranges::exchange (T &t, U &&u) noexcept(std::is_nothrow_move_constructible< T >::value &&std::is_nothrow_assignable< T &, U >::value)