]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/unordered/test/unordered/link_test_2.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / unordered / test / unordered / link_test_2.cpp
1
2 // Copyright 2006-2009 Daniel James.
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 #include "../helpers/prefix.hpp"
7 #include <boost/unordered_set.hpp>
8 #include <boost/unordered_map.hpp>
9 #include "../helpers/postfix.hpp"
10
11 void foo(boost::unordered_set<int>& x1,
12 boost::unordered_map<int, int>& x2,
13 boost::unordered_multiset<int>& x3,
14 boost::unordered_multimap<int, int>& x4)
15 {
16 #if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x0613))
17 struct dummy {
18 boost::unordered_set<int> x1;
19 boost::unordered_map<int, int> x2;
20 boost::unordered_multiset<int> x3;
21 boost::unordered_multimap<int, int> x4;
22 };
23 #endif
24
25 x1.insert(1);
26 x2[2] = 2;
27 x3.insert(3);
28 x4.insert(std::make_pair(4, 5));
29 }