Chris@16: // Copyright David Abrahams 2002. Chris@16: // Distributed under the Boost Software License, Version 1.0. (See Chris@16: // accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: #ifndef FIND_INSTANCE_DWA2002312_HPP Chris@16: # define FIND_INSTANCE_DWA2002312_HPP Chris@16: Chris@16: # include Chris@16: Chris@16: namespace boost { namespace python { namespace objects { Chris@16: Chris@16: // Given a type_id, find the instance data which corresponds to it, or Chris@16: // return 0 in case no such type is held. If null_shared_ptr_only is Chris@16: // true and the type being sought is a shared_ptr, only find an Chris@16: // instance if it turns out to be NULL. Needed for shared_ptr rvalue Chris@16: // from_python support. Chris@16: BOOST_PYTHON_DECL void* find_instance_impl(PyObject*, type_info, bool null_shared_ptr_only = false); Chris@16: Chris@16: }}} // namespace boost::python::objects Chris@16: Chris@16: #endif // FIND_INSTANCE_DWA2002312_HPP