]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/python/include/boost/python/detail/unwrap_wrapper.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / python / include / boost / python / detail / unwrap_wrapper.hpp
1 // Copyright David Abrahams 2004. Distributed under the Boost
2 // Software License, Version 1.0. (See accompanying
3 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4 #ifndef UNWRAP_WRAPPER_DWA2004723_HPP
5 # define UNWRAP_WRAPPER_DWA2004723_HPP
6
7 # include <boost/python/detail/prefix.hpp>
8 # include <boost/python/detail/is_wrapper.hpp>
9 # include <boost/mpl/eval_if.hpp>
10 # include <boost/mpl/identity.hpp>
11
12 namespace boost { namespace python { namespace detail {
13
14 template <class T>
15 struct unwrap_wrapper_helper
16 {
17 typedef typename T::_wrapper_wrapped_type_ type;
18 };
19
20 template <class T>
21 struct unwrap_wrapper_
22 : mpl::eval_if<is_wrapper<T>,unwrap_wrapper_helper<T>,mpl::identity<T> >
23 {};
24
25 template <class T>
26 typename unwrap_wrapper_<T>::type*
27 unwrap_wrapper(T*)
28 {
29 return 0;
30 }
31
32 }}} // namespace boost::python::detail
33
34 #endif // UNWRAP_WRAPPER_DWA2004723_HPP