os/ossrv/ossrv_pub/boost_apis/boost/python/slice_nil.hpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/python/slice_nil.hpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,44 @@
     1.4 +// Copyright David Abrahams 2002.
     1.5 +// Distributed under the Boost Software License, Version 1.0. (See
     1.6 +// accompanying file LICENSE_1_0.txt or copy at
     1.7 +// http://www.boost.org/LICENSE_1_0.txt)
     1.8 +#ifndef SLICE_NIL_DWA2002620_HPP
     1.9 +# define SLICE_NIL_DWA2002620_HPP
    1.10 +
    1.11 +# include <boost/python/detail/prefix.hpp>
    1.12 +# include <boost/python/object_core.hpp>
    1.13 +
    1.14 +namespace boost { namespace python { namespace api {
    1.15 +
    1.16 +class slice_nil : public object
    1.17 +{
    1.18 + public:
    1.19 +    slice_nil() : object() {}
    1.20 +};
    1.21 +
    1.22 +# ifndef _ // Watch out for GNU gettext users, who #define _(x)
    1.23 +static const slice_nil _ = slice_nil();
    1.24 +# endif 
    1.25 +
    1.26 +template <class T>
    1.27 +struct slice_bound
    1.28 +{
    1.29 +    typedef object type;
    1.30 +};
    1.31 +
    1.32 +template <>
    1.33 +struct slice_bound<slice_nil>
    1.34 +{
    1.35 +    typedef slice_nil type;
    1.36 +};
    1.37 +
    1.38 +}
    1.39 +
    1.40 +using api::slice_nil;
    1.41 +# ifndef _ // Watch out for GNU gettext users, who #define _(x)
    1.42 +using api::_;
    1.43 +# endif 
    1.44 +
    1.45 +}} // namespace boost::python
    1.46 +
    1.47 +#endif // SLICE_NIL_DWA2002620_HPP