Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-15 09:56:19

0001 /////////////////////////////////////////////////////////////////////////////
0002 //
0003 // (C) Copyright Ion Gaztanaga  2017-2017
0004 //
0005 // Distributed under the Boost Software License, Version 1.0.
0006 //    (See accompanying file LICENSE_1_0.txt or copy at
0007 //          http://www.boost.org/LICENSE_1_0.txt)
0008 //
0009 // See http://www.boost.org/libs/move for documentation.
0010 //
0011 /////////////////////////////////////////////////////////////////////////////
0012 
0013 #ifndef BOOST_MOVE_DETAIL_TO_RAW_POINTER_HPP
0014 #define BOOST_MOVE_DETAIL_TO_RAW_POINTER_HPP
0015 
0016 #ifndef BOOST_CONFIG_HPP
0017 #  include <boost/config.hpp>
0018 #endif
0019 
0020 #if defined(BOOST_HAS_PRAGMA_ONCE)
0021 #  pragma once
0022 #endif
0023 
0024 #include <boost/move/detail/config_begin.hpp>
0025 #include <boost/move/detail/workaround.hpp>
0026 #include <boost/move/detail/pointer_element.hpp>
0027 
0028 namespace boost {
0029 namespace movelib {
0030 
0031 template <class T>
0032 BOOST_MOVE_FORCEINLINE T* to_raw_pointer(T* p)
0033 {  return p; }
0034 
0035 template <class Pointer>
0036 inline typename boost::movelib::pointer_element<Pointer>::type*
0037 to_raw_pointer(const Pointer &p)
0038 {  return ::boost::movelib::to_raw_pointer(p.operator->());  }
0039 
0040 } //namespace movelib
0041 } //namespace boost
0042 
0043 #include <boost/move/detail/config_end.hpp>
0044 
0045 #endif //BOOST_MOVE_DETAIL_TO_RAW_POINTER_HPP