Chris@102: ///////////////////////////////////////////////////////////////////////////// Chris@102: // Chris@102: // (C) Copyright Ion Gaztanaga 2014-2014 Chris@102: // Chris@102: // Distributed under the Boost Software License, Version 1.0. Chris@102: // (See accompanying file LICENSE_1_0.txt or copy at Chris@102: // http://www.boost.org/LICENSE_1_0.txt) Chris@102: // Chris@102: // See http://www.boost.org/libs/intrusive for documentation. Chris@102: // Chris@102: ///////////////////////////////////////////////////////////////////////////// Chris@102: Chris@102: #ifndef BOOST_INTRUSIVE_DETAIL_TO_RAW_POINTER_HPP Chris@102: #define BOOST_INTRUSIVE_DETAIL_TO_RAW_POINTER_HPP 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: #include Chris@102: #include Chris@102: Chris@102: namespace boost { Chris@102: namespace intrusive { Chris@102: namespace detail { Chris@102: Chris@102: template Chris@102: inline T* to_raw_pointer(T* p) Chris@102: { return p; } Chris@102: Chris@102: template Chris@102: inline typename boost::intrusive::pointer_element::type* Chris@102: to_raw_pointer(const Pointer &p) Chris@102: { return boost::intrusive::detail::to_raw_pointer(p.operator->()); } Chris@102: Chris@102: } //namespace detail Chris@102: } //namespace intrusive Chris@102: } //namespace boost Chris@102: Chris@102: #include Chris@102: Chris@102: #endif //BOOST_INTRUSIVE_DETAIL_UTILITIES_HPP