/Src/Dependencies/Boost/boost/spirit/home/phoenix/stl/algorithm/detail/is_std_map.hpp

http://hadesmem.googlecode.com/ · C++ Header · 58 lines · 37 code · 8 blank · 13 comment · 1 complexity · f252ba68b569c7adb2c531a207592fa0 MD5 · raw file

  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_map.hpp
  12. //
  13. /////////////////////////////////////////////////////////////////////////////
  14. #if defined(_MSC_VER) && _MSC_VER >= 1000
  15. # pragma once
  16. #endif
  17. #ifndef IS_STD_MAP_EN_16_12_2004
  18. #define IS_STD_MAP_EN_16_12_2004
  19. #include <boost/mpl/bool.hpp>
  20. #include <boost/detail/container_fwd.hpp>
  21. namespace boost
  22. {
  23. template<class T>
  24. struct is_std_map
  25. : boost::mpl::false_
  26. {};
  27. template<
  28. class Kty
  29. , class Ty
  30. , class Pr
  31. , class Alloc
  32. >
  33. struct is_std_map< ::std::map<Kty,Ty,Pr,Alloc> >
  34. : boost::mpl::true_
  35. {};
  36. template<class T>
  37. struct is_std_multimap
  38. : boost::mpl::false_
  39. {};
  40. template<
  41. class Kty
  42. , class Ty
  43. , class Pr
  44. , class Alloc
  45. >
  46. struct is_std_multimap< ::std::multimap<Kty,Ty,Pr,Alloc> >
  47. : boost::mpl::true_
  48. {};
  49. }
  50. #endif