• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef BOOST_INTERPROCESS_DETAIL_SWAP_HPP
2 #define BOOST_INTERPROCESS_DETAIL_SWAP_HPP
3 //////////////////////////////////////////////////////////////////////////////
4 //
5 // (C) Copyright Ion Gaztanaga 2014-2015. Distributed under the Boost
6 // Software License, Version 1.0. (See accompanying file
7 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 //
9 // See http://www.boost.org/libs/interprocess for documentation.
10 //
11 //////////////////////////////////////////////////////////////////////////////
12 
13 #ifndef BOOST_CONFIG_HPP
14 #  include <boost/config.hpp>
15 #endif
16 #
17 #if defined(BOOST_HAS_PRAGMA_ONCE)
18 #  pragma once
19 #endif
20 
21 namespace boost { namespace interprocess {
22 
23 template<class T>
simple_swap(T & x,T & y)24 void simple_swap(T&x, T&y)
25 {  T tmp(x); x = y; y = tmp;  }
26 
27 }}  //namespace boost{ namespace interprocess {
28 
29 #endif //#ifndef BOOST_INTERPROCESS_DETAIL_SWAP_HPP
30