One Hat Cyber Team
Your IP :
216.73.216.64
Server IP :
162.240.179.46
Server :
Linux vps-14493116.nutrivittasaude.com.br 5.14.0-687.17.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 22 07:21:26 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
include
/
boost
/
python
/
converter
/
View File Name :
pytype_object_mgr_traits.hpp
// Copyright David Abrahams 2002. // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef PYTYPE_OBJECT_MANAGER_TRAITS_DWA2002716_HPP # define PYTYPE_OBJECT_MANAGER_TRAITS_DWA2002716_HPP # include <boost/python/detail/prefix.hpp> # include <boost/python/detail/raw_pyobject.hpp> # include <boost/python/cast.hpp> # include <boost/python/converter/pyobject_type.hpp> # include <boost/python/errors.hpp> namespace boost { namespace python { namespace converter { // Provide a forward declaration as a convenience for clients, who all // need it. template <class T> struct object_manager_traits; // Derive specializations of object_manager_traits from this class // when T is an object manager for a particular Python type hierarchy. // template <PyTypeObject* pytype, class T> struct pytype_object_manager_traits : pyobject_type<T, pytype> // provides check() { BOOST_STATIC_CONSTANT(bool, is_specialized = true); static inline python::detail::new_reference adopt(PyObject*); }; // // implementations // template <PyTypeObject* pytype, class T> inline python::detail::new_reference pytype_object_manager_traits<pytype,T>::adopt(PyObject* x) { return python::detail::new_reference(python::pytype_check(pytype, x)); } }}} // namespace boost::python::converter #endif // PYTYPE_OBJECT_MANAGER_TRAITS_DWA2002716_HPP