annotate DEPENDENCIES/generic/include/boost/intrusive/detail/to_raw_pointer.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents f46d142149f5
children
rev   line source
Chris@102 1 /////////////////////////////////////////////////////////////////////////////
Chris@102 2 //
Chris@102 3 // (C) Copyright Ion Gaztanaga 2014-2014
Chris@102 4 //
Chris@102 5 // Distributed under the Boost Software License, Version 1.0.
Chris@102 6 // (See accompanying file LICENSE_1_0.txt or copy at
Chris@102 7 // http://www.boost.org/LICENSE_1_0.txt)
Chris@102 8 //
Chris@102 9 // See http://www.boost.org/libs/intrusive for documentation.
Chris@102 10 //
Chris@102 11 /////////////////////////////////////////////////////////////////////////////
Chris@102 12
Chris@102 13 #ifndef BOOST_INTRUSIVE_DETAIL_TO_RAW_POINTER_HPP
Chris@102 14 #define BOOST_INTRUSIVE_DETAIL_TO_RAW_POINTER_HPP
Chris@102 15
Chris@102 16 #ifndef BOOST_CONFIG_HPP
Chris@102 17 # include <boost/config.hpp>
Chris@102 18 #endif
Chris@102 19
Chris@102 20 #if defined(BOOST_HAS_PRAGMA_ONCE)
Chris@102 21 # pragma once
Chris@102 22 #endif
Chris@102 23
Chris@102 24 #include <boost/intrusive/detail/config_begin.hpp>
Chris@102 25 #include <boost/intrusive/detail/pointer_element.hpp>
Chris@102 26
Chris@102 27 namespace boost {
Chris@102 28 namespace intrusive {
Chris@102 29 namespace detail {
Chris@102 30
Chris@102 31 template <class T>
Chris@102 32 inline T* to_raw_pointer(T* p)
Chris@102 33 { return p; }
Chris@102 34
Chris@102 35 template <class Pointer>
Chris@102 36 inline typename boost::intrusive::pointer_element<Pointer>::type*
Chris@102 37 to_raw_pointer(const Pointer &p)
Chris@102 38 { return boost::intrusive::detail::to_raw_pointer(p.operator->()); }
Chris@102 39
Chris@102 40 } //namespace detail
Chris@102 41 } //namespace intrusive
Chris@102 42 } //namespace boost
Chris@102 43
Chris@102 44 #include <boost/intrusive/detail/config_end.hpp>
Chris@102 45
Chris@102 46 #endif //BOOST_INTRUSIVE_DETAIL_UTILITIES_HPP