Sha256: b1c5244c83ab34e6b64f2752c5b3365e0bc97db5aec3712665078ab2580d2de6

Contents?: true

Size: 1.25 KB

Versions: 56

Compression:

Stored size: 1.25 KB

Contents

#ifndef BOOST_MPL_MAP_AUX_ERASE_KEY_IMPL_HPP_INCLUDED
#define BOOST_MPL_MAP_AUX_ERASE_KEY_IMPL_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 <boost/mpl/erase_key_fwd.hpp>
#include <boost/mpl/map/aux_/has_key_impl.hpp>
#include <boost/mpl/map/aux_/item.hpp>
#include <boost/mpl/map/aux_/tag.hpp>
#include <boost/mpl/identity.hpp>
#include <boost/mpl/base.hpp>
#include <boost/mpl/eval_if.hpp>

#include <boost/type_traits/is_same.hpp>

namespace boost { namespace mpl {

template<>
struct erase_key_impl< aux::map_tag >
{
    template< 
          typename Map
        , typename Key
        > 
    struct apply
        : eval_if< 
              has_key_impl<aux::map_tag>::apply<Map,Key>
            , eval_if< 
                  is_same< Key,typename Map::key_ > 
                , base<Map>
                , identity< m_mask<Key,Map> >
                >
            , identity<Map>
            >
    {
    };
};

}}

#endif // BOOST_MPL_MAP_AUX_ERASE_KEY_IMPL_HPP_INCLUDED

Version data entries

56 entries across 56 versions & 3 rubygems

Version Path
passenger-6.0.24 src/cxx_supportlib/vendor-modified/boost/mpl/map/aux_/erase_key_impl.hpp
passenger-6.0.23 src/cxx_supportlib/vendor-modified/boost/mpl/map/aux_/erase_key_impl.hpp
passenger-6.0.20 src/cxx_supportlib/vendor-modified/boost/mpl/map/aux_/erase_key_impl.hpp
passenger-6.0.19 src/cxx_supportlib/vendor-modified/boost/mpl/map/aux_/erase_key_impl.hpp
passenger-6.0.18 src/cxx_supportlib/vendor-modified/boost/mpl/map/aux_/erase_key_impl.hpp
passenger-6.0.17 src/cxx_supportlib/vendor-modified/boost/mpl/map/aux_/erase_key_impl.hpp
passenger-6.0.16 src/cxx_supportlib/vendor-modified/boost/mpl/map/aux_/erase_key_impl.hpp
passenger-6.0.15 src/cxx_supportlib/vendor-modified/boost/mpl/map/aux_/erase_key_impl.hpp
passenger-6.0.14 src/cxx_supportlib/vendor-modified/boost/mpl/map/aux_/erase_key_impl.hpp
passenger-6.0.13 src/cxx_supportlib/vendor-modified/boost/mpl/map/aux_/erase_key_impl.hpp
passenger-6.0.12 src/cxx_supportlib/vendor-modified/boost/mpl/map/aux_/erase_key_impl.hpp
passenger-6.0.11 src/cxx_supportlib/vendor-modified/boost/mpl/map/aux_/erase_key_impl.hpp
passenger-6.0.10 src/cxx_supportlib/vendor-modified/boost/mpl/map/aux_/erase_key_impl.hpp
passenger-6.0.9 src/cxx_supportlib/vendor-modified/boost/mpl/map/aux_/erase_key_impl.hpp
passenger-6.0.8 src/cxx_supportlib/vendor-modified/boost/mpl/map/aux_/erase_key_impl.hpp
passenger-6.0.7 src/cxx_supportlib/vendor-modified/boost/mpl/map/aux_/erase_key_impl.hpp
passenger-6.0.6 src/cxx_supportlib/vendor-modified/boost/mpl/map/aux_/erase_key_impl.hpp
passenger-6.0.5 src/cxx_supportlib/vendor-modified/boost/mpl/map/aux_/erase_key_impl.hpp
passenger-6.0.4 src/cxx_supportlib/vendor-modified/boost/mpl/map/aux_/erase_key_impl.hpp
passenger-6.0.3 src/cxx_supportlib/vendor-modified/boost/mpl/map/aux_/erase_key_impl.hpp