]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/unordered/test/unordered/link_test_2.cpp
update sources to v12.2.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 // clang-format off
7 #include "../helpers/prefix.hpp"
8 #include <boost/unordered_set.hpp>
9 #include <boost/unordered_map.hpp>
10 #include "../helpers/postfix.hpp"
11 // clang-format on
12
13 void foo(boost::unordered_set<int>& x1, boost::unordered_map<int, int>& x2,
14 boost::unordered_multiset<int>& x3, boost::unordered_multimap<int, int>& x4)
15 {
16 #if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x0613))
17 struct dummy
18 {
19 boost::unordered_set<int> x1;
20 boost::unordered_map<int, int> x2;
21 boost::unordered_multiset<int> x3;
22 boost::unordered_multimap<int, int> x4;
23 };
24 #endif
25
26 x1.insert(1);
27 x2[2] = 2;
28 x3.insert(3);
29 x4.insert(std::make_pair(4, 5));
30 }