]> AND Private Git Repository - canny.git/blob - stc/exp/ml_stc_linux_make_v1.0/include/boost/mpl/map/aux_/erase_key_impl.hpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
877a3ea2fc5f7ee3b59058ad4b0519d125806303
[canny.git] / stc / exp / ml_stc_linux_make_v1.0 / include / boost / mpl / map / aux_ / erase_key_impl.hpp
1 \r
2 #ifndef BOOST_MPL_MAP_AUX_ERASE_KEY_IMPL_HPP_INCLUDED\r
3 #define BOOST_MPL_MAP_AUX_ERASE_KEY_IMPL_HPP_INCLUDED\r
4 \r
5 // Copyright Aleksey Gurtovoy 2003-2004\r
6 // Copyright David Abrahams 2003-2004\r
7 //\r
8 // Distributed under the Boost Software License, Version 1.0. \r
9 // (See accompanying file LICENSE_1_0.txt or copy at \r
10 // http://www.boost.org/LICENSE_1_0.txt)\r
11 //\r
12 // See http://www.boost.org/libs/mpl for documentation.\r
13 \r
14 // $Id: erase_key_impl.hpp 49267 2008-10-11 06:19:02Z agurtovoy $\r
15 // $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $\r
16 // $Revision: 49267 $\r
17 \r
18 #include <boost/mpl/erase_key_fwd.hpp>\r
19 #include <boost/mpl/map/aux_/has_key_impl.hpp>\r
20 #include <boost/mpl/map/aux_/item.hpp>\r
21 #include <boost/mpl/map/aux_/tag.hpp>\r
22 #include <boost/mpl/identity.hpp>\r
23 #include <boost/mpl/base.hpp>\r
24 #include <boost/mpl/eval_if.hpp>\r
25 \r
26 #include <boost/type_traits/is_same.hpp>\r
27 \r
28 namespace boost { namespace mpl {\r
29 \r
30 template<>\r
31 struct erase_key_impl< aux::map_tag >\r
32 {\r
33     template< \r
34           typename Map\r
35         , typename Key\r
36         > \r
37     struct apply\r
38         : eval_if< \r
39               has_key_impl<aux::map_tag>::apply<Map,Key>\r
40             , eval_if< \r
41                   is_same< Key,typename Map::key_ > \r
42                 , base<Map>\r
43                 , identity< m_mask<Key,Map> >\r
44                 >\r
45             , identity<Map>\r
46             >\r
47     {\r
48     };\r
49 };\r
50 \r
51 }}\r
52 \r
53 #endif // BOOST_MPL_MAP_AUX_ERASE_KEY_IMPL_HPP_INCLUDED\r