boost_no_cxx11_hdr_unordered_set.ipp 688 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_SET
  7. // TITLE: C++0x header <unordered_set> unavailable
  8. // DESCRIPTION: The standard library does not supply C++0x header <unordered_set>
  9. #include <unordered_set>
  10. namespace boost_no_cxx11_hdr_unordered_set {
  11. int test()
  12. {
  13. std::unordered_set<int> s1;
  14. std::unordered_multiset<int> s2;
  15. return s1.empty() && s2.empty() ? 0 : 1;
  16. }
  17. }