]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/python/include/boost/python/object/find_instance.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / python / include / boost / python / object / find_instance.hpp
1 // Copyright David Abrahams 2002.
2 // Distributed under the Boost Software License, Version 1.0. (See
3 // accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
5 #ifndef FIND_INSTANCE_DWA2002312_HPP
6 # define FIND_INSTANCE_DWA2002312_HPP
7
8 # include <boost/python/type_id.hpp>
9
10 namespace boost { namespace python { namespace objects {
11
12 // Given a type_id, find the instance data which corresponds to it, or
13 // return 0 in case no such type is held. If null_shared_ptr_only is
14 // true and the type being sought is a shared_ptr, only find an
15 // instance if it turns out to be NULL. Needed for shared_ptr rvalue
16 // from_python support.
17 BOOST_PYTHON_DECL void* find_instance_impl(PyObject*, type_info, bool null_shared_ptr_only = false);
18
19 }}} // namespace boost::python::objects
20
21 #endif // FIND_INSTANCE_DWA2002312_HPP