has_back_reference.hpp 654 B

123456789101112131415161718192021222324
  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 HAS_BACK_REFERENCE_DWA2002323_HPP
  6. # define HAS_BACK_REFERENCE_DWA2002323_HPP
  7. # include <boost/python/detail/prefix.hpp>
  8. # include <boost/mpl/bool.hpp>
  9. namespace boost { namespace python {
  10. // traits class which users can specialize to indicate that a class
  11. // contains a back-reference to its owning PyObject*
  12. template <class T>
  13. struct has_back_reference
  14. : mpl::false_
  15. {
  16. };
  17. }} // namespace boost::python
  18. #endif // HAS_BACK_REFERENCE_DWA2002323_HPP