slice_nil.hpp 912 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 SLICE_NIL_DWA2002620_HPP
  6. # define SLICE_NIL_DWA2002620_HPP
  7. # include <boost/python/detail/prefix.hpp>
  8. # include <boost/python/object_core.hpp>
  9. namespace boost { namespace python { namespace api {
  10. class slice_nil : public object
  11. {
  12. public:
  13. slice_nil() : object() {}
  14. };
  15. # ifndef _ // Watch out for GNU gettext users, who #define _(x)
  16. static const slice_nil _ = slice_nil();
  17. # endif
  18. template <class T>
  19. struct slice_bound
  20. {
  21. typedef object type;
  22. };
  23. template <>
  24. struct slice_bound<slice_nil>
  25. {
  26. typedef slice_nil type;
  27. };
  28. }
  29. using api::slice_nil;
  30. # ifndef _ // Watch out for GNU gettext users, who #define _(x)
  31. using api::_;
  32. # endif
  33. }} // namespace boost::python
  34. #endif // SLICE_NIL_DWA2002620_HPP