source: NonGTP/Boost/boost/python/slice_nil.hpp @ 857

Revision 857, 956 bytes checked in by igarcia, 19 years ago (diff)
Line 
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
8# include <boost/python/detail/prefix.hpp>
9# include <boost/python/object_core.hpp>
10
11namespace boost { namespace python { namespace api {
12
13class slice_nil : public object
14{
15 public:
16    slice_nil() : object() {}
17};
18
19# ifndef _ // Watch out for GNU gettext users, who #define _(x)
20static const slice_nil _ = slice_nil();
21# endif
22
23template <class T>
24struct slice_bound
25{
26    typedef object type;
27};
28
29template <>
30struct slice_bound<slice_nil>
31{
32    typedef slice_nil type;
33};
34
35}
36
37using api::slice_nil;
38# ifndef _ // Watch out for GNU gettext users, who #define _(x)
39using api::_;
40# endif
41
42}} // namespace boost::python
43
44#endif // SLICE_NIL_DWA2002620_HPP
Note: See TracBrowser for help on using the repository browser.