Chris@102: #ifndef BOOST_INTERPROCESS_DETAIL_SWAP_HPP Chris@102: #define BOOST_INTERPROCESS_DETAIL_SWAP_HPP Chris@102: ////////////////////////////////////////////////////////////////////////////// Chris@102: // Chris@102: // (C) Copyright Ion Gaztanaga 2014-2015. Distributed under the Boost Chris@102: // Software License, Version 1.0. (See accompanying file Chris@102: // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@102: // Chris@102: // See http://www.boost.org/libs/interprocess for documentation. Chris@102: // Chris@102: ////////////////////////////////////////////////////////////////////////////// Chris@102: Chris@102: #ifndef BOOST_CONFIG_HPP Chris@102: # include Chris@102: #endif Chris@102: # Chris@102: #if defined(BOOST_HAS_PRAGMA_ONCE) Chris@102: # pragma once Chris@102: #endif Chris@102: Chris@102: namespace boost { namespace interprocess { Chris@102: Chris@102: template Chris@102: void simple_swap(T&x, T&y) Chris@102: { T tmp(x); x = y; y = tmp; } Chris@102: Chris@102: }} //namespace boost{ namespace interprocess { Chris@102: Chris@102: #endif //#ifndef BOOST_INTERPROCESS_DETAIL_SWAP_HPP