forked from boostorg/config
Merge changes from Trunk.
[SVN r50531]
This commit is contained in:
1 parent
63ec21a0d6
commit
40c8299a25
28 files changed
+236
-43
No files matched your search
@@ -0,0 +1,27 @@
|
||||
// (C) Copyright John Maddock and Dave Abrahams 2002.
|
||||
// Use, modification and distribution are subject to the
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
// See http://www.boost.org/libs/config for most recent version.
|
||||
|
||||
// MACRO: BOOST_NO_STD_UNORDERED
|
||||
// TITLE: <unordered_map> and <unordered_set>
|
||||
// DESCRIPTION: Check for C++0x unordered container support
|
||||
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
|
||||
namespace boost_no_std_unordered{
|
||||
|
||||
int test()
|
||||
{
|
||||
std::unordered_map<int, int> im;
|
||||
std::unordered_set<int> is;
|
||||
std::unordered_multimap<int, int> imm;
|
||||
std::unordered_multiset<int> ims;
|
||||
return im.size() + is.size() + imm.size() + ims.size(); // all zero
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user