forked from boostorg/unordered
Add foa-based node containers to compile_map tests
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
// Copyright 2006-2009 Daniel James.
|
// Copyright 2006-2009 Daniel James.
|
||||||
// Copyright 2022 Christian Mazakas.
|
// Copyright 2022-2023 Christian Mazakas.
|
||||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
// 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)
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
@ -35,6 +35,22 @@ template class instantiate_flat_map<test::minimal::assignable const,
|
|||||||
test::minimal::equal_to<test::minimal::assignable>,
|
test::minimal::equal_to<test::minimal::assignable>,
|
||||||
test::minimal::allocator<int> >;
|
test::minimal::allocator<int> >;
|
||||||
|
|
||||||
|
template <typename K, typename T, typename H, typename P, typename A>
|
||||||
|
class instantiate_node_map
|
||||||
|
{
|
||||||
|
typedef boost::unordered_node_map<K, T, H, P, A> container;
|
||||||
|
container x;
|
||||||
|
};
|
||||||
|
|
||||||
|
template class instantiate_node_map<int, int, boost::hash<int>,
|
||||||
|
std::equal_to<int>, test::minimal::allocator<int> >;
|
||||||
|
|
||||||
|
template class instantiate_node_map<test::minimal::assignable const,
|
||||||
|
test::minimal::default_assignable const,
|
||||||
|
test::minimal::hash<test::minimal::assignable>,
|
||||||
|
test::minimal::equal_to<test::minimal::assignable>,
|
||||||
|
test::minimal::allocator<int> >;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define INSTANTIATE(type) \
|
#define INSTANTIATE(type) \
|
||||||
template class boost::unordered::detail::instantiate_##type
|
template class boost::unordered::detail::instantiate_##type
|
||||||
@ -55,149 +71,101 @@ INSTANTIATE(multimap)<test::minimal::assignable, test::minimal::assignable,
|
|||||||
test::minimal::allocator<int> >;
|
test::minimal::allocator<int> >;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
UNORDERED_AUTO_TEST (test0) {
|
template <template <class Key, class T, class H = boost::hash<Key>,
|
||||||
|
class P = std::equal_to<Key>,
|
||||||
|
class Allocator = std::allocator<std::pair<Key const, T> > >
|
||||||
|
class Map>
|
||||||
|
static void test0_impl()
|
||||||
|
{
|
||||||
test::minimal::constructor_param x;
|
test::minimal::constructor_param x;
|
||||||
|
|
||||||
typedef std::pair<test::minimal::assignable const, test::minimal::assignable>
|
typedef std::pair<test::minimal::assignable const, test::minimal::assignable>
|
||||||
value_type;
|
value_type;
|
||||||
value_type value(x, x);
|
value_type value(x, x);
|
||||||
|
|
||||||
BOOST_LIGHTWEIGHT_TEST_OSTREAM << "Test unordered_map.\n";
|
Map<int, int> int_map;
|
||||||
|
|
||||||
#ifdef BOOST_UNORDERED_FOA_TESTS
|
Map<int, int, boost::hash<int>, std::equal_to<int>,
|
||||||
boost::unordered_flat_map<int, int> int_map;
|
|
||||||
|
|
||||||
boost::unordered_flat_map<int, int, boost::hash<int>, std::equal_to<int>,
|
|
||||||
test::minimal::cxx11_allocator<std::pair<int const, int> > >
|
test::minimal::cxx11_allocator<std::pair<int const, int> > >
|
||||||
int_map2;
|
int_map2;
|
||||||
|
|
||||||
boost::unordered_flat_map<test::minimal::assignable,
|
Map<test::minimal::assignable, test::minimal::assignable,
|
||||||
test::minimal::assignable, test::minimal::hash<test::minimal::assignable>,
|
|
||||||
test::minimal::equal_to<test::minimal::assignable>,
|
|
||||||
test::minimal::allocator<value_type> >
|
|
||||||
map;
|
|
||||||
#else
|
|
||||||
boost::unordered_map<int, int> int_map;
|
|
||||||
|
|
||||||
boost::unordered_map<int, int, boost::hash<int>, std::equal_to<int>,
|
|
||||||
test::minimal::cxx11_allocator<std::pair<int const, int> > >
|
|
||||||
int_map2;
|
|
||||||
|
|
||||||
boost::unordered_map<test::minimal::assignable, test::minimal::assignable,
|
|
||||||
test::minimal::hash<test::minimal::assignable>,
|
test::minimal::hash<test::minimal::assignable>,
|
||||||
test::minimal::equal_to<test::minimal::assignable>,
|
test::minimal::equal_to<test::minimal::assignable>,
|
||||||
test::minimal::allocator<value_type> >
|
test::minimal::allocator<value_type> >
|
||||||
map;
|
map;
|
||||||
#endif
|
|
||||||
|
|
||||||
container_test(int_map, std::pair<int const, int>(0, 0));
|
container_test(int_map, std::pair<int const, int>(0, 0));
|
||||||
container_test(int_map2, std::pair<int const, int>(0, 0));
|
container_test(int_map2, std::pair<int const, int>(0, 0));
|
||||||
container_test(map, value);
|
container_test(map, value);
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef BOOST_UNORDERED_FOA_TESTS
|
UNORDERED_AUTO_TEST (test0) {
|
||||||
BOOST_LIGHTWEIGHT_TEST_OSTREAM << "Test unordered_multimap.\n";
|
#ifdef BOOST_UNORDERED_FOA_TESTS
|
||||||
|
test0_impl<boost::unordered_flat_map>();
|
||||||
boost::unordered_multimap<int, int> int_multimap;
|
test0_impl<boost::unordered_node_map>();
|
||||||
|
#else
|
||||||
boost::unordered_multimap<int, int, boost::hash<int>, std::equal_to<int>,
|
test0_impl<boost::unordered_map>();
|
||||||
test::minimal::cxx11_allocator<std::pair<int const, int> > >
|
test0_impl<boost::unordered_multimap>();
|
||||||
int_multimap2;
|
|
||||||
|
|
||||||
boost::unordered_multimap<test::minimal::assignable,
|
|
||||||
test::minimal::assignable, test::minimal::hash<test::minimal::assignable>,
|
|
||||||
test::minimal::equal_to<test::minimal::assignable>,
|
|
||||||
test::minimal::allocator<value_type> >
|
|
||||||
multimap;
|
|
||||||
|
|
||||||
container_test(int_multimap, std::pair<int const, int>(0, 0));
|
|
||||||
container_test(int_multimap2, std::pair<int const, int>(0, 0));
|
|
||||||
container_test(multimap, value);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
UNORDERED_AUTO_TEST (equality_tests) {
|
template <template <class Key, class T, class H = boost::hash<Key>,
|
||||||
|
class P = std::equal_to<Key>,
|
||||||
|
class Allocator = std::allocator<std::pair<Key const, T> > >
|
||||||
|
class Map>
|
||||||
|
static void equality_tests_impl()
|
||||||
|
{
|
||||||
typedef std::pair<test::minimal::copy_constructible_equality_comparable const,
|
typedef std::pair<test::minimal::copy_constructible_equality_comparable const,
|
||||||
test::minimal::copy_constructible_equality_comparable>
|
test::minimal::copy_constructible_equality_comparable>
|
||||||
value_type;
|
value_type;
|
||||||
|
|
||||||
#ifdef BOOST_UNORDERED_FOA_TESTS
|
Map<int, int> int_map;
|
||||||
boost::unordered_flat_map<int, int> int_map;
|
|
||||||
|
|
||||||
boost::unordered_flat_map<int, int, boost::hash<int>, std::equal_to<int>,
|
Map<int, int, boost::hash<int>, std::equal_to<int>,
|
||||||
test::minimal::cxx11_allocator<std::pair<int const, int> > >
|
test::minimal::cxx11_allocator<std::pair<int const, int> > >
|
||||||
int_map2;
|
int_map2;
|
||||||
|
|
||||||
boost::unordered_flat_map<
|
Map<test::minimal::copy_constructible_equality_comparable,
|
||||||
test::minimal::copy_constructible_equality_comparable,
|
|
||||||
test::minimal::copy_constructible_equality_comparable,
|
test::minimal::copy_constructible_equality_comparable,
|
||||||
test::minimal::hash<test::minimal::copy_constructible_equality_comparable>,
|
test::minimal::hash<test::minimal::copy_constructible_equality_comparable>,
|
||||||
test::minimal::equal_to<
|
test::minimal::equal_to<
|
||||||
test::minimal::copy_constructible_equality_comparable>,
|
test::minimal::copy_constructible_equality_comparable>,
|
||||||
test::minimal::allocator<value_type> >
|
test::minimal::allocator<value_type> >
|
||||||
map;
|
map;
|
||||||
#else
|
|
||||||
boost::unordered_map<int, int> int_map;
|
|
||||||
|
|
||||||
boost::unordered_map<int, int, boost::hash<int>, std::equal_to<int>,
|
|
||||||
test::minimal::cxx11_allocator<std::pair<int const, int> > >
|
|
||||||
int_map2;
|
|
||||||
|
|
||||||
boost::unordered_map<test::minimal::copy_constructible_equality_comparable,
|
|
||||||
test::minimal::copy_constructible_equality_comparable,
|
|
||||||
test::minimal::hash<test::minimal::copy_constructible_equality_comparable>,
|
|
||||||
test::minimal::equal_to<
|
|
||||||
test::minimal::copy_constructible_equality_comparable>,
|
|
||||||
test::minimal::allocator<value_type> >
|
|
||||||
map;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
equality_test(int_map);
|
equality_test(int_map);
|
||||||
equality_test(int_map2);
|
equality_test(int_map2);
|
||||||
equality_test(map);
|
equality_test(map);
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef BOOST_UNORDERED_FOA_TESTS
|
UNORDERED_AUTO_TEST (equality_tests) {
|
||||||
boost::unordered_multimap<int, int> int_multimap;
|
#ifdef BOOST_UNORDERED_FOA_TESTS
|
||||||
|
equality_tests_impl<boost::unordered_flat_map>();
|
||||||
boost::unordered_multimap<int, int, boost::hash<int>, std::equal_to<int>,
|
equality_tests_impl<boost::unordered_node_map>();
|
||||||
test::minimal::cxx11_allocator<std::pair<int const, int> > >
|
#else
|
||||||
int_multimap2;
|
equality_tests_impl<boost::unordered_map>();
|
||||||
|
equality_tests_impl<boost::unordered_multimap>();
|
||||||
boost::unordered_multimap<
|
|
||||||
test::minimal::copy_constructible_equality_comparable,
|
|
||||||
test::minimal::copy_constructible_equality_comparable,
|
|
||||||
test::minimal::hash<test::minimal::copy_constructible_equality_comparable>,
|
|
||||||
test::minimal::equal_to<
|
|
||||||
test::minimal::copy_constructible_equality_comparable>,
|
|
||||||
test::minimal::allocator<value_type> >
|
|
||||||
multimap;
|
|
||||||
|
|
||||||
equality_test(int_multimap);
|
|
||||||
equality_test(int_multimap2);
|
|
||||||
equality_test(multimap);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
UNORDERED_AUTO_TEST (test1) {
|
template <template <class Key, class T, class H = boost::hash<Key>,
|
||||||
|
class P = std::equal_to<Key>,
|
||||||
|
class Allocator = std::allocator<std::pair<Key const, T> > >
|
||||||
|
class Map>
|
||||||
|
static void test1_unique_impl()
|
||||||
|
{
|
||||||
|
|
||||||
boost::hash<int> hash;
|
boost::hash<int> hash;
|
||||||
std::equal_to<int> equal_to;
|
std::equal_to<int> equal_to;
|
||||||
int value = 0;
|
int value = 0;
|
||||||
std::pair<int const, int> map_value(0, 0);
|
std::pair<int const, int> map_value(0, 0);
|
||||||
|
|
||||||
BOOST_LIGHTWEIGHT_TEST_OSTREAM << "Test unordered_map.\n";
|
Map<int, int> map;
|
||||||
|
|
||||||
#ifdef BOOST_UNORDERED_FOA_TESTS
|
Map<int, int, boost::hash<int>, std::equal_to<int>,
|
||||||
boost::unordered_flat_map<int, int> map;
|
|
||||||
|
|
||||||
boost::unordered_flat_map<int, int, boost::hash<int>, std::equal_to<int>,
|
|
||||||
test::minimal::cxx11_allocator<std::pair<int const, int> > >
|
test::minimal::cxx11_allocator<std::pair<int const, int> > >
|
||||||
map2;
|
map2;
|
||||||
#else
|
|
||||||
boost::unordered_map<int, int> map;
|
|
||||||
|
|
||||||
boost::unordered_map<int, int, boost::hash<int>, std::equal_to<int>,
|
|
||||||
test::minimal::cxx11_allocator<std::pair<int const, int> > >
|
|
||||||
map2;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
unordered_unique_test(map, map_value);
|
unordered_unique_test(map, map_value);
|
||||||
unordered_map_test(map, value, value);
|
unordered_map_test(map, value, value);
|
||||||
@ -208,27 +176,53 @@ UNORDERED_AUTO_TEST (test1) {
|
|||||||
unordered_map_test(map2, value, value);
|
unordered_map_test(map2, value, value);
|
||||||
unordered_copyable_test(map2, value, map_value, hash, equal_to);
|
unordered_copyable_test(map2, value, map_value, hash, equal_to);
|
||||||
unordered_map_functions(map2, value, value);
|
unordered_map_functions(map2, value, value);
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef BOOST_UNORDERED_FOA_TESTS
|
#ifndef BOOST_UNORDERED_FOA_TESTS
|
||||||
BOOST_LIGHTWEIGHT_TEST_OSTREAM << "Test unordered_multimap.\n";
|
template <template <class Key, class T, class H = boost::hash<Key>,
|
||||||
|
class P = std::equal_to<Key>,
|
||||||
|
class Allocator = std::allocator<std::pair<Key const, T> > >
|
||||||
|
class Map>
|
||||||
|
static void test1_equivalent_impl()
|
||||||
|
{
|
||||||
|
|
||||||
boost::unordered_multimap<int, int> multimap;
|
boost::hash<int> hash;
|
||||||
|
std::equal_to<int> equal_to;
|
||||||
|
int value = 0;
|
||||||
|
std::pair<int const, int> map_value(0, 0);
|
||||||
|
|
||||||
boost::unordered_multimap<int, int, boost::hash<int>, std::equal_to<int>,
|
Map<int, int> map;
|
||||||
|
|
||||||
|
Map<int, int, boost::hash<int>, std::equal_to<int>,
|
||||||
test::minimal::cxx11_allocator<std::pair<int const, int> > >
|
test::minimal::cxx11_allocator<std::pair<int const, int> > >
|
||||||
multimap2;
|
map2;
|
||||||
|
|
||||||
unordered_equivalent_test(multimap, map_value);
|
unordered_equivalent_test(map, map_value);
|
||||||
unordered_map_test(multimap, value, value);
|
unordered_map_test(map, value, value);
|
||||||
unordered_copyable_test(multimap, value, map_value, hash, equal_to);
|
unordered_copyable_test(map, value, map_value, hash, equal_to);
|
||||||
|
|
||||||
unordered_equivalent_test(multimap2, map_value);
|
unordered_equivalent_test(map2, map_value);
|
||||||
unordered_map_test(multimap2, value, value);
|
unordered_map_test(map2, value, value);
|
||||||
unordered_copyable_test(multimap2, value, map_value, hash, equal_to);
|
unordered_copyable_test(map2, value, map_value, hash, equal_to);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
UNORDERED_AUTO_TEST (test1) {
|
||||||
|
#ifdef BOOST_UNORDERED_FOA_TESTS
|
||||||
|
test1_unique_impl<boost::unordered_flat_map>();
|
||||||
|
test1_unique_impl<boost::unordered_node_map>();
|
||||||
|
#else
|
||||||
|
test1_unique_impl<boost::unordered_map>();
|
||||||
|
test1_equivalent_impl<boost::unordered_multimap>();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
UNORDERED_AUTO_TEST (test2) {
|
template <template <class Key, class T, class H = boost::hash<Key>,
|
||||||
|
class P = std::equal_to<Key>,
|
||||||
|
class Allocator = std::allocator<std::pair<Key const, T> > >
|
||||||
|
class Map>
|
||||||
|
static void test2_unique_impl()
|
||||||
|
{
|
||||||
test::minimal::constructor_param x;
|
test::minimal::constructor_param x;
|
||||||
|
|
||||||
test::minimal::assignable assignable(x);
|
test::minimal::assignable assignable(x);
|
||||||
@ -240,60 +234,66 @@ UNORDERED_AUTO_TEST (test2) {
|
|||||||
map_value_type;
|
map_value_type;
|
||||||
map_value_type map_value(assignable, assignable);
|
map_value_type map_value(assignable, assignable);
|
||||||
|
|
||||||
BOOST_LIGHTWEIGHT_TEST_OSTREAM << "Test unordered_map.\n";
|
Map<test::minimal::assignable, test::minimal::assignable,
|
||||||
|
|
||||||
#ifdef BOOST_UNORDERED_FOA_TESTS
|
|
||||||
boost::unordered_flat_map<test::minimal::assignable,
|
|
||||||
test::minimal::assignable, test::minimal::hash<test::minimal::assignable>,
|
|
||||||
test::minimal::equal_to<test::minimal::assignable>,
|
|
||||||
test::minimal::allocator<map_value_type> >
|
|
||||||
map;
|
|
||||||
#else
|
|
||||||
boost::unordered_map<test::minimal::assignable, test::minimal::assignable,
|
|
||||||
test::minimal::hash<test::minimal::assignable>,
|
test::minimal::hash<test::minimal::assignable>,
|
||||||
test::minimal::equal_to<test::minimal::assignable>,
|
test::minimal::equal_to<test::minimal::assignable>,
|
||||||
test::minimal::allocator<map_value_type> >
|
test::minimal::allocator<map_value_type> >
|
||||||
map;
|
map;
|
||||||
#endif
|
|
||||||
|
|
||||||
unordered_unique_test(map, map_value);
|
unordered_unique_test(map, map_value);
|
||||||
unordered_map_test(map, assignable, assignable);
|
unordered_map_test(map, assignable, assignable);
|
||||||
unordered_copyable_test(map, assignable, map_value, hash, equal_to);
|
unordered_copyable_test(map, assignable, map_value, hash, equal_to);
|
||||||
unordered_map_member_test(map, map_value);
|
unordered_map_member_test(map, map_value);
|
||||||
|
|
||||||
#ifdef BOOST_UNORDERED_FOA_TESTS
|
Map<test::minimal::assignable, test::minimal::default_assignable,
|
||||||
boost::unordered_flat_map<test::minimal::assignable,
|
|
||||||
test::minimal::default_assignable,
|
|
||||||
test::minimal::hash<test::minimal::assignable>,
|
test::minimal::hash<test::minimal::assignable>,
|
||||||
test::minimal::equal_to<test::minimal::assignable>,
|
test::minimal::equal_to<test::minimal::assignable>,
|
||||||
test::minimal::allocator<map_value_type> >
|
test::minimal::allocator<map_value_type> >
|
||||||
map2;
|
map2;
|
||||||
#else
|
|
||||||
boost::unordered_map<test::minimal::assignable,
|
|
||||||
test::minimal::default_assignable,
|
|
||||||
test::minimal::hash<test::minimal::assignable>,
|
|
||||||
test::minimal::equal_to<test::minimal::assignable>,
|
|
||||||
test::minimal::allocator<map_value_type> >
|
|
||||||
map2;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
test::minimal::default_assignable default_assignable;
|
test::minimal::default_assignable default_assignable;
|
||||||
|
|
||||||
unordered_map_functions(map2, assignable, default_assignable);
|
unordered_map_functions(map2, assignable, default_assignable);
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef BOOST_UNORDERED_FOA_TESTS
|
#ifndef BOOST_UNORDERED_FOA_TESTS
|
||||||
BOOST_LIGHTWEIGHT_TEST_OSTREAM << "Test unordered_multimap.\n";
|
template <template <class Key, class T, class H = boost::hash<Key>,
|
||||||
|
class P = std::equal_to<Key>,
|
||||||
|
class Allocator = std::allocator<std::pair<Key const, T> > >
|
||||||
|
class Map>
|
||||||
|
static void test2_equivalent_impl()
|
||||||
|
{
|
||||||
|
test::minimal::constructor_param x;
|
||||||
|
|
||||||
boost::unordered_multimap<test::minimal::assignable,
|
test::minimal::assignable assignable(x);
|
||||||
test::minimal::assignable, test::minimal::hash<test::minimal::assignable>,
|
test::minimal::copy_constructible copy_constructible(x);
|
||||||
|
test::minimal::hash<test::minimal::assignable> hash(x);
|
||||||
|
test::minimal::equal_to<test::minimal::assignable> equal_to(x);
|
||||||
|
|
||||||
|
typedef std::pair<test::minimal::assignable const, test::minimal::assignable>
|
||||||
|
map_value_type;
|
||||||
|
map_value_type map_value(assignable, assignable);
|
||||||
|
|
||||||
|
Map<test::minimal::assignable, test::minimal::assignable,
|
||||||
|
test::minimal::hash<test::minimal::assignable>,
|
||||||
test::minimal::equal_to<test::minimal::assignable>,
|
test::minimal::equal_to<test::minimal::assignable>,
|
||||||
test::minimal::allocator<map_value_type> >
|
test::minimal::allocator<map_value_type> >
|
||||||
multimap;
|
map;
|
||||||
|
|
||||||
unordered_equivalent_test(multimap, map_value);
|
unordered_equivalent_test(map, map_value);
|
||||||
unordered_map_test(multimap, assignable, assignable);
|
unordered_map_test(map, assignable, assignable);
|
||||||
unordered_copyable_test(multimap, assignable, map_value, hash, equal_to);
|
unordered_copyable_test(map, assignable, map_value, hash, equal_to);
|
||||||
unordered_map_member_test(multimap, map_value);
|
unordered_map_member_test(map, map_value);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
UNORDERED_AUTO_TEST (test2) {
|
||||||
|
#ifdef BOOST_UNORDERED_FOA_TESTS
|
||||||
|
test2_unique_impl<boost::unordered_flat_map>();
|
||||||
|
test2_unique_impl<boost::unordered_node_map>();
|
||||||
|
#else
|
||||||
|
test2_unique_impl<boost::unordered_map>();
|
||||||
|
test2_equivalent_impl<boost::unordered_multimap>();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -316,9 +316,17 @@ bool operator==(lwg2059_key x, lwg2059_key y) { return x.value == y.value; }
|
|||||||
|
|
||||||
UNORDERED_AUTO_TEST (lwg2059) {
|
UNORDERED_AUTO_TEST (lwg2059) {
|
||||||
#ifdef BOOST_UNORDERED_FOA_TESTS
|
#ifdef BOOST_UNORDERED_FOA_TESTS
|
||||||
boost::unordered_flat_map<lwg2059_key, int> x;
|
{
|
||||||
x.emplace(lwg2059_key(10), 5);
|
boost::unordered_flat_map<lwg2059_key, int> x;
|
||||||
x.erase(x.begin());
|
x.emplace(lwg2059_key(10), 5);
|
||||||
|
x.erase(x.begin());
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
boost::unordered_node_map<lwg2059_key, int> x;
|
||||||
|
x.emplace(lwg2059_key(10), 5);
|
||||||
|
x.erase(x.begin());
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
boost::unordered_map<lwg2059_key, int> x;
|
boost::unordered_map<lwg2059_key, int> x;
|
||||||
|
Reference in New Issue
Block a user