2006-06-11 19:42:55 +00:00
|
|
|
|
2009-03-09 20:56:23 +00:00
|
|
|
// Copyright 2006-2009 Daniel James.
|
2023-02-14 10:27:12 -08:00
|
|
|
// Copyright 2022-2023 Christian Mazakas.
|
2006-07-01 22:31:26 +00:00
|
|
|
// Distributed under 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)
|
2006-06-11 19:42:55 +00:00
|
|
|
|
2022-10-20 15:25:40 -07:00
|
|
|
#include "../helpers/unordered.hpp"
|
2006-06-11 19:42:55 +00:00
|
|
|
|
2022-10-12 14:05:25 -07:00
|
|
|
#ifdef BOOST_UNORDERED_FOA_TESTS
|
2023-06-05 14:19:18 -07:00
|
|
|
|
|
|
|
|
#include <boost/unordered/concurrent_flat_map.hpp>
|
|
|
|
|
|
2023-02-14 10:27:12 -08:00
|
|
|
void foo(boost::unordered_flat_set<int>& x1,
|
|
|
|
|
boost::unordered_flat_map<int, int>& x2, boost::unordered_node_set<int>& x3,
|
2023-06-05 14:19:18 -07:00
|
|
|
boost::unordered_node_map<int, int>& x4,
|
|
|
|
|
boost::concurrent_flat_map<int, int>& x5)
|
2022-10-12 14:05:25 -07:00
|
|
|
{
|
|
|
|
|
#if BOOST_WORKAROUND(BOOST_CODEGEARC, BOOST_TESTED_AT(0x0613))
|
|
|
|
|
struct dummy
|
|
|
|
|
{
|
|
|
|
|
boost::unordered_flat_set<int> x1;
|
|
|
|
|
boost::unordered_flat_map<int, int> x2;
|
|
|
|
|
};
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
x1.insert(1);
|
|
|
|
|
x2[2] = 2;
|
2023-02-14 10:27:12 -08:00
|
|
|
x3.insert(3);
|
|
|
|
|
x4.insert(std::make_pair(4, 5));
|
2023-06-05 14:19:18 -07:00
|
|
|
x5.insert(std::make_pair(5, 6));
|
2022-10-12 14:05:25 -07:00
|
|
|
}
|
|
|
|
|
#else
|
2017-02-19 13:05:17 +00:00
|
|
|
void foo(boost::unordered_set<int>& x1, boost::unordered_map<int, int>& x2,
|
2017-06-11 20:55:59 +01:00
|
|
|
boost::unordered_multiset<int>& x3, boost::unordered_multimap<int, int>& x4)
|
2006-06-11 19:42:55 +00:00
|
|
|
{
|
2020-03-31 22:47:48 -04:00
|
|
|
#if BOOST_WORKAROUND(BOOST_CODEGEARC, BOOST_TESTED_AT(0x0613))
|
2017-06-11 20:55:59 +01:00
|
|
|
struct dummy
|
|
|
|
|
{
|
|
|
|
|
boost::unordered_set<int> x1;
|
|
|
|
|
boost::unordered_map<int, int> x2;
|
|
|
|
|
boost::unordered_multiset<int> x3;
|
|
|
|
|
boost::unordered_multimap<int, int> x4;
|
|
|
|
|
};
|
2009-12-04 00:51:50 +00:00
|
|
|
#endif
|
|
|
|
|
|
2017-06-11 20:55:59 +01:00
|
|
|
x1.insert(1);
|
|
|
|
|
x2[2] = 2;
|
|
|
|
|
x3.insert(3);
|
|
|
|
|
x4.insert(std::make_pair(4, 5));
|
2006-06-11 19:42:55 +00:00
|
|
|
}
|
2022-10-12 14:05:25 -07:00
|
|
|
#endif
|