Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:38:27

0001 #ifndef BOOST_INTERPROCESS_DETAIL_SWAP_HPP
0002 #define BOOST_INTERPROCESS_DETAIL_SWAP_HPP
0003 //////////////////////////////////////////////////////////////////////////////
0004 //
0005 // (C) Copyright Ion Gaztanaga 2014-2015. Distributed under the Boost
0006 // Software License, Version 1.0. (See accompanying file
0007 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0008 //
0009 // See http://www.boost.org/libs/interprocess for documentation.
0010 //
0011 //////////////////////////////////////////////////////////////////////////////
0012 
0013 #ifndef BOOST_CONFIG_HPP
0014 #  include <boost/config.hpp>
0015 #endif
0016 #
0017 #if defined(BOOST_HAS_PRAGMA_ONCE)
0018 #  pragma once
0019 #endif
0020 
0021 namespace boost { namespace interprocess {
0022 
0023 template<class T>
0024 void simple_swap(T&x, T&y)
0025 {  T tmp(x); x = y; y = tmp;  }
0026 
0027 }}  //namespace boost{ namespace interprocess {
0028 
0029 #endif //#ifndef BOOST_INTERPROCESS_DETAIL_SWAP_HPP