2 #ifndef BOOST_MPL_AUX_OVERLOAD_NAMES_HPP_INCLUDED
\r
3 #define BOOST_MPL_AUX_OVERLOAD_NAMES_HPP_INCLUDED
\r
5 // Copyright Aleksey Gurtovoy 2004
\r
7 // Distributed under the Boost Software License, Version 1.0.
\r
8 // (See accompanying file LICENSE_1_0.txt or copy at
\r
9 // http://www.boost.org/LICENSE_1_0.txt)
\r
11 // See http://www.boost.org/libs/mpl for documentation.
\r
13 // $Id: overload_names.hpp 49267 2008-10-11 06:19:02Z agurtovoy $
\r
14 // $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $
\r
15 // $Revision: 49267 $
\r
17 #include <boost/mpl/aux_/ptr_to_ref.hpp>
\r
18 #include <boost/mpl/aux_/config/operators.hpp>
\r
20 #if defined(BOOST_MPL_CFG_USE_OPERATORS_OVERLOADING)
\r
22 # include <boost/mpl/aux_/static_cast.hpp>
\r
24 # define BOOST_MPL_AUX_OVERLOAD_VALUE_BY_KEY operator/
\r
25 # define BOOST_MPL_AUX_OVERLOAD_ITEM_BY_ORDER operator|
\r
26 # define BOOST_MPL_AUX_OVERLOAD_ORDER_BY_KEY operator||
\r
27 # define BOOST_MPL_AUX_OVERLOAD_IS_MASKED operator%
\r
29 # define BOOST_MPL_AUX_OVERLOAD_CALL_VALUE_BY_KEY(T, x) BOOST_MPL_AUX_PTR_TO_REF(T) / x
\r
30 # define BOOST_MPL_AUX_OVERLOAD_CALL_ITEM_BY_ORDER(T, x) BOOST_MPL_AUX_PTR_TO_REF(T) | x
\r
31 # define BOOST_MPL_AUX_OVERLOAD_CALL_ORDER_BY_KEY(T, x) BOOST_MPL_AUX_PTR_TO_REF(T) || x
\r
32 # define BOOST_MPL_AUX_OVERLOAD_CALL_IS_MASKED(T, x) BOOST_MPL_AUX_PTR_TO_REF(T) % x
\r
36 # define BOOST_MPL_AUX_OVERLOAD_VALUE_BY_KEY value_by_key_
\r
37 # define BOOST_MPL_AUX_OVERLOAD_ITEM_BY_ORDER item_by_order_
\r
38 # define BOOST_MPL_AUX_OVERLOAD_ORDER_BY_KEY order_by_key_
\r
39 # define BOOST_MPL_AUX_OVERLOAD_IS_MASKED is_masked_
\r
41 # define BOOST_MPL_AUX_OVERLOAD_CALL_VALUE_BY_KEY(T, x) T::BOOST_MPL_AUX_OVERLOAD_VALUE_BY_KEY( BOOST_MPL_AUX_PTR_TO_REF(T), x )
\r
42 # define BOOST_MPL_AUX_OVERLOAD_CALL_ITEM_BY_ORDER(T, x) T::BOOST_MPL_AUX_OVERLOAD_ITEM_BY_ORDER( BOOST_MPL_AUX_PTR_TO_REF(T), x )
\r
43 # define BOOST_MPL_AUX_OVERLOAD_CALL_ORDER_BY_KEY(T, x) T::BOOST_MPL_AUX_OVERLOAD_ORDER_BY_KEY( BOOST_MPL_AUX_PTR_TO_REF(T), x )
\r
44 # define BOOST_MPL_AUX_OVERLOAD_CALL_IS_MASKED(T, x) T::BOOST_MPL_AUX_OVERLOAD_IS_MASKED( BOOST_MPL_AUX_PTR_TO_REF(T), x )
\r
48 #endif // BOOST_MPL_AUX_OVERLOAD_NAMES_HPP_INCLUDED
\r