Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:56:11

0001 //////////////////////////////////////////////////////////////////////////////
0002 //
0003 // (C) Copyright Ion Gaztanaga 2014-2015. Distributed under the Boost
0004 // Software License, Version 1.0. (See accompanying file
0005 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 // See http://www.boost.org/libs/container for documentation.
0008 //
0009 //////////////////////////////////////////////////////////////////////////////
0010 #ifndef BOOST_MOVE_DETAIL_FORCE_CAST_HPP
0011 #define BOOST_MOVE_DETAIL_FORCE_CAST_HPP
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 #include <boost/move/detail/workaround.hpp>
0022 
0023 namespace boost {
0024 namespace move_detail {
0025 
0026 
0027 template <typename T>
0028 BOOST_MOVE_FORCEINLINE T force_ptr(const volatile void *p)
0029 {
0030    return static_cast<T>(const_cast<void*>(p));
0031 }
0032 
0033 }  //namespace move_detail {
0034 }  //namespace boost {
0035 
0036 #endif   //#ifndef BOOST_MOVE_DETAIL_FORCE_CAST_HPP