| 1 | // Copyright 2005 Daniel Wallin. |
| 2 | // Copyright 2005 Joel de Guzman. |
| 3 | // |
| 4 | // Use, modification and distribution is subject to the Boost Software |
| 5 | // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at |
| 6 | // http://www.boost.org/LICENSE_1_0.txt) |
| 7 | // |
| 8 | // Modeled after range_ex, Copyright 2004 Eric Niebler |
| 9 | /////////////////////////////////////////////////////////////////////////////// |
| 10 | // |
| 11 | // is_std_hash_map.hpp |
| 12 | // |
| 13 | ///////////////////////////////////////////////////////////////////////////// |
| 14 | |
| 15 | #ifndef BOOST_PHOENIX_IS_STD_HASH_MAP_EN_16_12_2004 |
| 16 | #define BOOST_PHOENIX_IS_STD_HASH_MAP_EN_16_12_2004 |
| 17 | |
| 18 | #include <boost/phoenix/config.hpp> |
| 19 | #include <boost/mpl/bool.hpp> |
| 20 | |
| 21 | #ifdef BOOST_PHOENIX_HAS_HASH |
| 22 | #include BOOST_PHOENIX_HASH_MAP_HEADER |
| 23 | #endif |
| 24 | |
| 25 | namespace boost |
| 26 | { |
| 27 | template<class T> |
| 28 | struct is_std_hash_map |
| 29 | : boost::mpl::false_ |
| 30 | {}; |
| 31 | |
| 32 | template<class T> |
| 33 | struct is_std_hash_multimap |
| 34 | : boost::mpl::false_ |
| 35 | {}; |
| 36 | |
| 37 | #ifdef BOOST_PHOENIX_HAS_HASH |
| 38 | |
| 39 | template<class Kty,class Ty,BOOST_PHOENIX_HASH_template_rest_param> |
| 40 | struct is_std_hash_map< ::BOOST_PHOENIX_HASH_NAMESPACE::hash_map<Kty,Ty,BOOST_PHOENIX_HASH_type_rest_param> > |
| 41 | : boost::mpl::true_ |
| 42 | {}; |
| 43 | |
| 44 | template<class Kty,class Ty,BOOST_PHOENIX_HASH_template_rest_param> |
| 45 | struct is_std_hash_multimap< ::BOOST_PHOENIX_HASH_NAMESPACE::hash_multimap<Kty,Ty,BOOST_PHOENIX_HASH_type_rest_param> > |
| 46 | : boost::mpl::true_ |
| 47 | {}; |
| 48 | |
| 49 | #endif |
| 50 | |
| 51 | } |
| 52 | |
| 53 | #endif |
| 54 | |