williamr@4: williamr@4: #ifndef BOOST_MPL_SET_AUX_ITEM_HPP_INCLUDED williamr@4: #define BOOST_MPL_SET_AUX_ITEM_HPP_INCLUDED williamr@4: williamr@4: // Copyright Aleksey Gurtovoy 2003-2004 williamr@4: // Copyright David Abrahams 2003-2004 williamr@4: // williamr@4: // Distributed under the Boost Software License, Version 1.0. williamr@4: // (See accompanying file LICENSE_1_0.txt or copy at williamr@4: // http://www.boost.org/LICENSE_1_0.txt) williamr@4: // williamr@4: // See http://www.boost.org/libs/mpl for documentation. williamr@4: williamr@4: // $Source: /cvsroot/boost/boost/boost/mpl/set/aux_/item.hpp,v $ williamr@4: // $Date: 2005/06/18 22:03:09 $ williamr@4: // $Revision: 1.7 $ williamr@4: williamr@4: #include williamr@4: #include williamr@4: #include williamr@4: #include williamr@4: #include williamr@4: #include williamr@4: #include williamr@4: williamr@4: namespace boost { namespace mpl { williamr@4: williamr@4: template< typename T, typename Base > williamr@4: struct s_item williamr@4: : Base williamr@4: { williamr@4: typedef s_item item_; williamr@4: typedef void_ last_masked_; williamr@4: typedef Base next_; williamr@4: typedef T item_type_; williamr@4: typedef item_type_ type; williamr@4: typedef Base base; williamr@4: williamr@4: typedef typename next< typename Base::size >::type size; williamr@4: typedef typename next< typename Base::order >::type order; williamr@4: williamr@4: #if defined(BOOST_MPL_CFG_NO_DEPENDENT_ARRAY_TYPES) williamr@4: typedef typename aux::weighted_tag::type order_tag_; williamr@4: #else williamr@4: typedef char (&order_tag_)[BOOST_MPL_AUX_MSVC_VALUE_WKND(order)::value]; williamr@4: #endif williamr@4: williamr@4: BOOST_MPL_AUX_SET_OVERLOAD( order_tag_, ORDER_BY_KEY, s_item, aux::type_wrapper* ); williamr@4: BOOST_MPL_AUX_SET_OVERLOAD( aux::no_tag, IS_MASKED, s_item, aux::type_wrapper* ); williamr@4: }; williamr@4: williamr@4: williamr@4: template< typename T, typename Base > williamr@4: struct s_mask williamr@4: : Base williamr@4: { williamr@4: typedef s_mask item_; williamr@4: typedef T last_masked_; williamr@4: typedef void_ item_type_; williamr@4: typedef Base base; williamr@4: typedef typename prior< typename Base::size >::type size; williamr@4: williamr@4: BOOST_MPL_AUX_SET_OVERLOAD( aux::yes_tag, IS_MASKED, s_mask, aux::type_wrapper* ); williamr@4: }; williamr@4: williamr@4: williamr@4: template< typename T, typename Base > williamr@4: struct s_unmask williamr@4: : Base williamr@4: { williamr@4: typedef s_unmask item_; williamr@4: typedef void_ last_masked_; williamr@4: typedef T item_type_; williamr@4: typedef Base base; williamr@4: typedef typename next< typename Base::size >::type size; williamr@4: williamr@4: BOOST_MPL_AUX_SET_OVERLOAD( aux::no_tag, IS_MASKED, s_unmask, aux::type_wrapper* ); williamr@4: }; williamr@4: williamr@4: }} williamr@4: williamr@4: #endif // BOOST_MPL_SET_AUX_ITEM_HPP_INCLUDED