boost_no_cxx11_hdr_unordered_map.ipp 700 B

123456789101112131415161718192021222324
  1. // (C) Copyright Beman Dawes 2009
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/config for more information.
  6. // MACRO: BOOST_NO_CXX11_HDR_UNORDERED_MAP
  7. // TITLE: C++0x header <unordered_map> unavailable
  8. // DESCRIPTION: The standard library does not supply C++0x header <unordered_map>
  9. #include <unordered_map>
  10. namespace boost_no_cxx11_hdr_unordered_map {
  11. int test()
  12. {
  13. std::unordered_map<int, long> s1;
  14. std::unordered_multimap<int, long> s2;
  15. return s1.empty() && s2.empty() ? 0 : 1;
  16. }
  17. }