os/ossrv/ossrv_pub/boost_apis/boost/python/slice_nil.hpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright David Abrahams 2002.
sl@0
     2
// Distributed under the Boost Software License, Version 1.0. (See
sl@0
     3
// accompanying file LICENSE_1_0.txt or copy at
sl@0
     4
// http://www.boost.org/LICENSE_1_0.txt)
sl@0
     5
#ifndef SLICE_NIL_DWA2002620_HPP
sl@0
     6
# define SLICE_NIL_DWA2002620_HPP
sl@0
     7
sl@0
     8
# include <boost/python/detail/prefix.hpp>
sl@0
     9
# include <boost/python/object_core.hpp>
sl@0
    10
sl@0
    11
namespace boost { namespace python { namespace api {
sl@0
    12
sl@0
    13
class slice_nil : public object
sl@0
    14
{
sl@0
    15
 public:
sl@0
    16
    slice_nil() : object() {}
sl@0
    17
};
sl@0
    18
sl@0
    19
# ifndef _ // Watch out for GNU gettext users, who #define _(x)
sl@0
    20
static const slice_nil _ = slice_nil();
sl@0
    21
# endif 
sl@0
    22
sl@0
    23
template <class T>
sl@0
    24
struct slice_bound
sl@0
    25
{
sl@0
    26
    typedef object type;
sl@0
    27
};
sl@0
    28
sl@0
    29
template <>
sl@0
    30
struct slice_bound<slice_nil>
sl@0
    31
{
sl@0
    32
    typedef slice_nil type;
sl@0
    33
};
sl@0
    34
sl@0
    35
}
sl@0
    36
sl@0
    37
using api::slice_nil;
sl@0
    38
# ifndef _ // Watch out for GNU gettext users, who #define _(x)
sl@0
    39
using api::_;
sl@0
    40
# endif 
sl@0
    41
sl@0
    42
}} // namespace boost::python
sl@0
    43
sl@0
    44
#endif // SLICE_NIL_DWA2002620_HPP