Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:50:40

0001 // Copyright David Abrahams 2002.
0002 // Distributed under the Boost Software License, Version 1.0. (See
0003 // accompanying file LICENSE_1_0.txt or copy at
0004 // http://www.boost.org/LICENSE_1_0.txt)
0005 #ifndef BORROWED_DWA2002614_HPP
0006 # define BORROWED_DWA2002614_HPP
0007 
0008 # include <boost/python/detail/prefix.hpp>
0009 # include <boost/python/detail/borrowed_ptr.hpp>
0010 
0011 namespace boost { namespace python { 
0012 
0013 template <class T>
0014 inline python::detail::borrowed<T>* borrowed(T* p)
0015 {
0016     return (detail::borrowed<T>*)p;
0017 }
0018     
0019 }} // namespace boost::python
0020 
0021 #endif // BORROWED_DWA2002614_HPP