2 #ifndef BOOST_MPL_SET_AUX_SET0_HPP_INCLUDED
\r
3 #define BOOST_MPL_SET_AUX_SET0_HPP_INCLUDED
\r
5 // Copyright Aleksey Gurtovoy 2003-2004
\r
6 // Copyright David Abrahams 2003-2004
\r
8 // Distributed under the Boost Software License, Version 1.0.
\r
9 // (See accompanying file LICENSE_1_0.txt or copy at
\r
10 // http://www.boost.org/LICENSE_1_0.txt)
\r
12 // See http://www.boost.org/libs/mpl for documentation.
\r
14 // $Id: set0.hpp 49267 2008-10-11 06:19:02Z agurtovoy $
\r
15 // $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $
\r
16 // $Revision: 49267 $
\r
18 #include <boost/mpl/long.hpp>
\r
19 #include <boost/mpl/void.hpp>
\r
20 #include <boost/mpl/aux_/na.hpp>
\r
21 #include <boost/mpl/set/aux_/tag.hpp>
\r
22 #include <boost/mpl/aux_/yes_no.hpp>
\r
23 #include <boost/mpl/aux_/overload_names.hpp>
\r
24 #include <boost/mpl/aux_/config/operators.hpp>
\r
26 #include <boost/preprocessor/cat.hpp>
\r
28 namespace boost { namespace mpl {
\r
30 #if defined(BOOST_MPL_CFG_USE_OPERATORS_OVERLOADING)
\r
32 # define BOOST_MPL_AUX_SET0_OVERLOAD(R, f, X, T) \
\r
33 friend R BOOST_PP_CAT(BOOST_MPL_AUX_OVERLOAD_,f)(X const&, T) \
\r
36 # define BOOST_MPL_AUX_SET_OVERLOAD(R, f, X, T) \
\r
37 BOOST_MPL_AUX_SET0_OVERLOAD(R, f, X, T) \
\r
42 # define BOOST_MPL_AUX_SET0_OVERLOAD(R, f, X, T) \
\r
43 static R BOOST_PP_CAT(BOOST_MPL_AUX_OVERLOAD_,f)(X const&, T) \
\r
46 # define BOOST_MPL_AUX_SET_OVERLOAD(R, f, X, T) \
\r
47 BOOST_MPL_AUX_SET0_OVERLOAD(R, f, X, T); \
\r
48 using Base::BOOST_PP_CAT(BOOST_MPL_AUX_OVERLOAD_,f) \
\r
53 template< typename Dummy = na > struct set0
\r
55 typedef set0<> item_;
\r
57 typedef aux::set_tag tag;
\r
58 typedef void_ last_masked_;
\r
59 typedef void_ item_type_;
\r
60 typedef long_<0> size;
\r
61 typedef long_<1> order;
\r
63 BOOST_MPL_AUX_SET0_OVERLOAD( aux::no_tag, ORDER_BY_KEY, set0<>, void const volatile* );
\r
64 BOOST_MPL_AUX_SET0_OVERLOAD( aux::yes_tag, IS_MASKED, set0<>, void const volatile* );
\r
69 #endif // BOOST_MPL_SET_AUX_SET0_HPP_INCLUDED
\r