Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/python/slice_nil.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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 SLICE_NIL_DWA2002620_HPP
0006 # define SLICE_NIL_DWA2002620_HPP
0007 
0008 # include <boost/python/detail/prefix.hpp>
0009 # include <boost/python/object_core.hpp>
0010 
0011 namespace boost { namespace python { namespace api {
0012 
0013 class slice_nil : public object
0014 {
0015  public:
0016     slice_nil() : object() {}
0017 };
0018 
0019 # ifndef _ // Watch out for GNU gettext users, who #define _(x)
0020 static const slice_nil _ = slice_nil();
0021 # endif 
0022 
0023 template <class T>
0024 struct slice_bound
0025 {
0026     typedef object type;
0027 };
0028 
0029 template <>
0030 struct slice_bound<slice_nil>
0031 {
0032     typedef slice_nil type;
0033 };
0034 
0035 }
0036 
0037 using api::slice_nil;
0038 # ifndef _ // Watch out for GNU gettext users, who #define _(x)
0039 using api::_;
0040 # endif 
0041 
0042 }} // namespace boost::python
0043 
0044 #endif // SLICE_NIL_DWA2002620_HPP