Files

75 lines
2.3 KiB
C++

#ifndef ACTIV_BOOST_MPL_MAP_AUX_MAP0_HPP_INCLUDED
#define ACTIV_BOOST_MPL_MAP_AUX_MAP0_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2003-2004
// Copyright David Abrahams 2003-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/mpl for documentation.
// $Id$
// $Date$
// $Revision$
#include <ActivBoost/mpl/long.hpp>
#include <ActivBoost/mpl/void.hpp>
#include <ActivBoost/mpl/map/aux_/tag.hpp>
#include <ActivBoost/mpl/aux_/na.hpp>
#include <ActivBoost/mpl/aux_/yes_no.hpp>
#include <ActivBoost/mpl/aux_/overload_names.hpp>
#include <ActivBoost/mpl/aux_/config/operators.hpp>
#include <ActivBoost/preprocessor/cat.hpp>
namespace Boost { namespace mpl {
#if defined(ACTIV_BOOST_MPL_CFG_USE_OPERATORS_OVERLOADING)
# define ACTIV_BOOST_MPL_AUX_MAP0_OVERLOAD(R, f, X, T) \
friend R ACTIV_BOOST_PP_CAT(ACTIV_BOOST_MPL_AUX_OVERLOAD_,f)(X const&, T) \
/**/
# define ACTIV_BOOST_MPL_AUX_MAP_OVERLOAD(R, f, X, T) \
ACTIV_BOOST_MPL_AUX_MAP0_OVERLOAD(R, f, X, T) \
/**/
#else
# define ACTIV_BOOST_MPL_AUX_MAP0_OVERLOAD(R, f, X, T) \
static R ACTIV_BOOST_PP_CAT(ACTIV_BOOST_MPL_AUX_OVERLOAD_,f)(X const&, T) \
/**/
# define ACTIV_BOOST_MPL_AUX_MAP_OVERLOAD(R, f, X, T) \
ACTIV_BOOST_MPL_AUX_MAP0_OVERLOAD(R, f, X, T); \
using Base::ACTIV_BOOST_PP_CAT(ACTIV_BOOST_MPL_AUX_OVERLOAD_,f) \
/**/
#endif
template< typename Dummy = na > struct map0
{
typedef map0 type;
typedef aux::map_tag tag;
typedef void_ key_;
typedef long_<1> order;
typedef long_<0> size;
#if defined(ACTIV_BOOST_MPL_CFG_TYPEOF_BASED_SEQUENCES)
ACTIV_BOOST_MPL_AUX_MAP0_OVERLOAD( aux::type_wrapper<void_>, VALUE_BY_KEY, map0<>, void const volatile* );
ACTIV_BOOST_MPL_AUX_MAP0_OVERLOAD( aux::type_wrapper<void_>, ITEM_BY_ORDER, map0<>, long_<1>* );
ACTIV_BOOST_MPL_AUX_MAP0_OVERLOAD( aux::no_tag, ORDER_BY_KEY, map0<>, void const volatile* );
#else
ACTIV_BOOST_MPL_AUX_MAP0_OVERLOAD( aux::no_tag, ORDER_BY_KEY, map0<>, void const volatile* );
ACTIV_BOOST_MPL_AUX_MAP0_OVERLOAD( aux::no_tag, IS_MASKED, map0<>, void const volatile* );
#endif
};
}}
#endif // ACTIV_BOOST_MPL_MAP_AUX_MAP0_HPP_INCLUDED