annotate DEPENDENCIES/generic/include/boost/multi_index/detail/adl_swap.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents c530137014c0
children
rev   line source
Chris@101 1 /* Copyright 2003-2013 Joaquin M Lopez Munoz.
Chris@16 2 * Distributed under the Boost Software License, Version 1.0.
Chris@16 3 * (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 4 * http://www.boost.org/LICENSE_1_0.txt)
Chris@16 5 *
Chris@16 6 * See http://www.boost.org/libs/multi_index for library home page.
Chris@16 7 */
Chris@16 8
Chris@16 9 #ifndef BOOST_MULTI_INDEX_DETAIL_ADL_SWAP_HPP
Chris@16 10 #define BOOST_MULTI_INDEX_DETAIL_ADL_SWAP_HPP
Chris@16 11
Chris@101 12 #if defined(_MSC_VER)
Chris@16 13 #pragma once
Chris@16 14 #endif
Chris@16 15
Chris@16 16 #include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
Chris@16 17 #include <algorithm>
Chris@16 18
Chris@16 19 namespace boost{
Chris@16 20
Chris@16 21 namespace multi_index{
Chris@16 22
Chris@16 23 namespace detail{
Chris@16 24
Chris@16 25 template<typename T>
Chris@16 26 void adl_swap(T& x,T& y)
Chris@16 27 {
Chris@16 28
Chris@16 29 #if !defined(BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL)
Chris@16 30 using std::swap;
Chris@16 31 swap(x,y);
Chris@16 32 #else
Chris@16 33 std::swap(x,y);
Chris@16 34 #endif
Chris@16 35
Chris@16 36 }
Chris@16 37
Chris@16 38 } /* namespace multi_index::detail */
Chris@16 39
Chris@16 40 } /* namespace multi_index */
Chris@16 41
Chris@16 42 } /* namespace boost */
Chris@16 43
Chris@16 44 #endif