Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:47:40

0001 // Copyright 2005 Daniel Wallin.
0002 // Copyright 2005 Joel de Guzman.
0003 //
0004 // Use, modification and distribution is subject to the Boost Software
0005 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0006 // http://www.boost.org/LICENSE_1_0.txt)
0007 //
0008 // Modeled after range_ex, Copyright 2004 Eric Niebler
0009 ///////////////////////////////////////////////////////////////////////////////
0010 //
0011 // has_upper_bound.hpp
0012 //
0013 /////////////////////////////////////////////////////////////////////////////
0014 
0015 #ifndef BOOST_PHOENIX_HAS_UPPER_BOUND_EN_14_12_2004
0016 #define BOOST_PHOENIX_HAS_UPPER_BOUND_EN_14_12_2004
0017 
0018 #include <boost/mpl/or.hpp>
0019 #include "./is_std_map.hpp"
0020 #include "./is_std_set.hpp"
0021 #include "./is_std_hash_map.hpp"
0022 #include "./is_std_hash_set.hpp"
0023 
0024 namespace boost
0025 {
0026     // Specialize this for user-defined types
0027     template<typename T>
0028     struct has_upper_bound
0029         : boost::mpl::or_<
0030             boost::mpl::or_<
0031                 is_std_map<T>
0032               , is_std_multimap<T>
0033               , is_std_set<T>
0034               , is_std_multiset<T>
0035             >
0036           , boost::mpl::or_<
0037                 is_std_hash_map<T>
0038               , is_std_hash_multimap<T>
0039               , is_std_hash_set<T>
0040               , is_std_hash_multiset<T>
0041           >
0042         >
0043     {
0044     };
0045 }
0046 
0047 #endif