williamr@2
|
1 |
|
williamr@4
|
2 |
#ifndef BOOST_MPL_SET_AUX_SET0_HPP_INCLUDED
|
williamr@4
|
3 |
#define BOOST_MPL_SET_AUX_SET0_HPP_INCLUDED
|
williamr@2
|
4 |
|
williamr@2
|
5 |
// Copyright Aleksey Gurtovoy 2003-2004
|
williamr@2
|
6 |
// Copyright David Abrahams 2003-2004
|
williamr@2
|
7 |
//
|
williamr@2
|
8 |
// Distributed under the Boost Software License, Version 1.0.
|
williamr@2
|
9 |
// (See accompanying file LICENSE_1_0.txt or copy at
|
williamr@2
|
10 |
// http://www.boost.org/LICENSE_1_0.txt)
|
williamr@2
|
11 |
//
|
williamr@2
|
12 |
// See http://www.boost.org/libs/mpl for documentation.
|
williamr@2
|
13 |
|
williamr@4
|
14 |
// $Source: /cvsroot/boost/boost/boost/mpl/set/aux_/set0.hpp,v $
|
williamr@4
|
15 |
// $Date: 2005/06/18 22:03:08 $
|
williamr@4
|
16 |
// $Revision: 1.8 $
|
williamr@2
|
17 |
|
williamr@4
|
18 |
#include <boost/mpl/long.hpp>
|
williamr@4
|
19 |
#include <boost/mpl/void.hpp>
|
williamr@4
|
20 |
#include <boost/mpl/aux_/na.hpp>
|
williamr@2
|
21 |
#include <boost/mpl/set/aux_/tag.hpp>
|
williamr@4
|
22 |
#include <boost/mpl/aux_/yes_no.hpp>
|
williamr@4
|
23 |
#include <boost/mpl/aux_/overload_names.hpp>
|
williamr@4
|
24 |
#include <boost/mpl/aux_/config/operators.hpp>
|
williamr@2
|
25 |
|
williamr@4
|
26 |
#include <boost/preprocessor/cat.hpp>
|
williamr@4
|
27 |
|
williamr@4
|
28 |
namespace boost { namespace mpl {
|
williamr@4
|
29 |
|
williamr@4
|
30 |
#if defined(BOOST_MPL_CFG_USE_OPERATORS_OVERLOADING)
|
williamr@4
|
31 |
|
williamr@4
|
32 |
# define BOOST_MPL_AUX_SET0_OVERLOAD(R, f, X, T) \
|
williamr@4
|
33 |
friend R BOOST_PP_CAT(BOOST_MPL_AUX_OVERLOAD_,f)(X const&, T) \
|
williamr@4
|
34 |
/**/
|
williamr@4
|
35 |
|
williamr@4
|
36 |
# define BOOST_MPL_AUX_SET_OVERLOAD(R, f, X, T) \
|
williamr@4
|
37 |
BOOST_MPL_AUX_SET0_OVERLOAD(R, f, X, T) \
|
williamr@4
|
38 |
/**/
|
williamr@4
|
39 |
|
williamr@4
|
40 |
#else
|
williamr@4
|
41 |
|
williamr@4
|
42 |
# define BOOST_MPL_AUX_SET0_OVERLOAD(R, f, X, T) \
|
williamr@4
|
43 |
static R BOOST_PP_CAT(BOOST_MPL_AUX_OVERLOAD_,f)(X const&, T) \
|
williamr@4
|
44 |
/**/
|
williamr@4
|
45 |
|
williamr@4
|
46 |
# define BOOST_MPL_AUX_SET_OVERLOAD(R, f, X, T) \
|
williamr@4
|
47 |
BOOST_MPL_AUX_SET0_OVERLOAD(R, f, X, T); \
|
williamr@4
|
48 |
using Base::BOOST_PP_CAT(BOOST_MPL_AUX_OVERLOAD_,f) \
|
williamr@4
|
49 |
/**/
|
williamr@4
|
50 |
|
williamr@4
|
51 |
#endif
|
williamr@4
|
52 |
|
williamr@4
|
53 |
template< typename Dummy = na > struct set0
|
williamr@4
|
54 |
{
|
williamr@4
|
55 |
typedef set0<> item_;
|
williamr@4
|
56 |
typedef aux::set_tag tag;
|
williamr@4
|
57 |
typedef void_ last_masked_;
|
williamr@4
|
58 |
typedef void_ item_type_;
|
williamr@4
|
59 |
typedef item_type_ type;
|
williamr@4
|
60 |
typedef long_<0> size;
|
williamr@4
|
61 |
typedef long_<1> order;
|
williamr@4
|
62 |
|
williamr@4
|
63 |
BOOST_MPL_AUX_SET0_OVERLOAD( aux::no_tag, ORDER_BY_KEY, set0<>, void const volatile* );
|
williamr@4
|
64 |
BOOST_MPL_AUX_SET0_OVERLOAD( aux::yes_tag, IS_MASKED, set0<>, void const volatile* );
|
williamr@4
|
65 |
};
|
williamr@4
|
66 |
|
williamr@4
|
67 |
}}
|
williamr@4
|
68 |
|
williamr@4
|
69 |
#endif // BOOST_MPL_SET_AUX_SET0_HPP_INCLUDED
|