]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/intrusive/include/boost/intrusive/detail/to_raw_pointer.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / intrusive / include / boost / intrusive / detail / to_raw_pointer.hpp
1 /////////////////////////////////////////////////////////////////////////////
2 //
3 // (C) Copyright Ion Gaztanaga 2014-2014
4 //
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8 //
9 // See http://www.boost.org/libs/intrusive for documentation.
10 //
11 /////////////////////////////////////////////////////////////////////////////
12
13 #ifndef BOOST_INTRUSIVE_DETAIL_TO_RAW_POINTER_HPP
14 #define BOOST_INTRUSIVE_DETAIL_TO_RAW_POINTER_HPP
15
16 #ifndef BOOST_CONFIG_HPP
17 # include <boost/config.hpp>
18 #endif
19
20 #if defined(BOOST_HAS_PRAGMA_ONCE)
21 # pragma once
22 #endif
23
24 #include <boost/intrusive/detail/config_begin.hpp>
25 #include <boost/intrusive/detail/workaround.hpp>
26 #include <boost/intrusive/detail/pointer_element.hpp>
27
28 namespace boost {
29 namespace intrusive {
30 namespace detail {
31
32 template <class T>
33 BOOST_INTRUSIVE_FORCEINLINE T* to_raw_pointer(T* p)
34 { return p; }
35
36 template <class Pointer>
37 BOOST_INTRUSIVE_FORCEINLINE typename boost::intrusive::pointer_element<Pointer>::type*
38 to_raw_pointer(const Pointer &p)
39 { return boost::intrusive::detail::to_raw_pointer(p.operator->()); }
40
41 } //namespace detail
42 } //namespace intrusive
43 } //namespace boost
44
45 #include <boost/intrusive/detail/config_end.hpp>
46
47 #endif //BOOST_INTRUSIVE_DETAIL_UTILITIES_HPP