|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifndef RANGES_V3_UTILITY_SWAP_HPP
- #define RANGES_V3_UTILITY_SWAP_HPP
-
- #include <concepts/swap.hpp>
-
- #include <range/v3/range_fwd.hpp>
-
- #include <range/v3/utility/static_const.hpp>
-
- namespace ranges
- {
- template<typename T>
- using is_swappable = concepts::is_swappable<T>;
-
- template<typename T>
- using is_nothrow_swappable = concepts::is_nothrow_swappable<T>;
-
- template<typename T, typename U>
- using is_swappable_with = concepts::is_swappable_with<T, U>;
-
- template<typename T, typename U>
- using is_nothrow_swappable_with = concepts::is_nothrow_swappable_with<T, U>;
-
- using concepts::exchange;
-
-
-
- RANGES_DEFINE_CPO(uncvref_t<decltype(concepts::swap)>, swap)
-
- namespace cpp20
- {
- using ranges::swap;
- }
- }
-
- #endif
|