/// \file // Range v3 library // // Copyright Eric Niebler 2013-present // // Use, modification and distribution is subject to the // Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // Project home: https://github.com/ericniebler/range-v3 // // The implementation of swap (see below) has been adapted from libc++ // (http://libcxx.llvm.org). #ifndef RANGES_V3_UTILITY_SWAP_HPP #define RANGES_V3_UTILITY_SWAP_HPP #include #include #include namespace ranges { template using is_swappable = concepts::is_swappable; template using is_nothrow_swappable = concepts::is_nothrow_swappable; template using is_swappable_with = concepts::is_swappable_with; template using is_nothrow_swappable_with = concepts::is_nothrow_swappable_with; using concepts::exchange; /// \ingroup group-utility /// \relates concepts::adl_swap_detail::swap_fn RANGES_DEFINE_CPO(uncvref_t, swap) namespace cpp20 { using ranges::swap; } } // namespace ranges #endif