diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index 62038f95..c47f961c 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -1375,13 +1375,14 @@ public: template BOOST_FORCEINLINE std::pair emplace(Args&&... args) { - using emplace_type = typename std::conditional< - std::is_constructible< - init_type, Args... - >::value, - init_type, - value_type - >::type; + using emplace_type = typename type_policy::emplace_type; + // using emplace_type = typename std::conditional< + // std::is_constructible< + // init_type, Args... + // >::value, + // init_type, + // value_type + // >::type; return emplace_impl(emplace_type(std::forward(args)...)); } diff --git a/include/boost/unordered/unordered_flat_map.hpp b/include/boost/unordered/unordered_flat_map.hpp index 16d4f3bd..fc030ec1 100644 --- a/include/boost/unordered/unordered_flat_map.hpp +++ b/include/boost/unordered/unordered_flat_map.hpp @@ -45,6 +45,8 @@ namespace boost { using moved_type = std::pair; using value_type = std::pair; + using emplace_type = value_type; + template static raw_key_type const& extract(std::pair const& kv) { diff --git a/include/boost/unordered/unordered_flat_set.hpp b/include/boost/unordered/unordered_flat_set.hpp index 1599ba55..beb2fe31 100644 --- a/include/boost/unordered/unordered_flat_set.hpp +++ b/include/boost/unordered/unordered_flat_set.hpp @@ -38,6 +38,9 @@ namespace boost { using key_type = Key; using init_type = Key; using value_type = Key; + + using emplace_type = value_type; + static Key const& extract(value_type const& key) { return key; } static Key&& move(value_type& x) { return std::move(x); } }; diff --git a/include/boost/unordered/unordered_node_map.hpp b/include/boost/unordered/unordered_node_map.hpp new file mode 100644 index 00000000..6aa4b981 --- /dev/null +++ b/include/boost/unordered/unordered_node_map.hpp @@ -0,0 +1,849 @@ +// Copyright (C) 2022 Christian Mazakas +// 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) + +#ifndef BOOST_UNORDERED_UNORDERED_NODE_MAP_HPP_INCLUDED +#define BOOST_UNORDERED_UNORDERED_NODE_MAP_HPP_INCLUDED + +#include +#if defined(BOOST_HAS_PRAGMA_ONCE) +#pragma once +#endif + +#include +#include +#include + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +namespace boost { + namespace unordered { + +#if defined(BOOST_MSVC) +#pragma warning(push) +#pragma warning(disable : 4714) /* marked as __forceinline not inlined */ +#endif + + namespace detail { + template class ptr_allocator_adaptor + { + using alloc_traits = std::allocator_traits; + using ptr_allocator = typename alloc_traits::template rebind_alloc< + typename Allocator::value_type*>; + using ptr_alloc_traits = std::allocator_traits; + + template friend class ptr_allocator_adaptor; + + Allocator al; + + public: + using pointer = typename boost::allocator_pointer::type; + using const_pointer = + typename boost::allocator_const_pointer::type; + + using void_pointer = + typename boost::allocator_void_pointer::type; + + using const_void_pointer = + typename boost::allocator_const_void_pointer::type; + + using value_type = typename Allocator::value_type*; + using size_type = + typename boost::allocator_size_type::type; + + using difference_type = + typename boost::allocator_difference_type::type; + + template struct rebind + { + using other = ptr_allocator_adaptor< + typename alloc_traits::template rebind_alloc >; + }; + + ptr_allocator_adaptor() = default; + ptr_allocator_adaptor(const Allocator& al_) : al{al_} {} + + template + ptr_allocator_adaptor( + const ptr_allocator_adaptor& x) noexcept : al{x.al} + { + } + + template + bool operator==( + const ptr_allocator_adaptor& x) const noexcept + { + return al == x.al; + } + + template + bool operator!=( + const ptr_allocator_adaptor& x) const noexcept + { + return al != x.al; + } + + pointer allocate(std::size_t n) + { + ptr_allocator pal = al; + return ptr_alloc_traits::allocate(pal, n); + } + + void deallocate(pointer p, std::size_t n) noexcept + { + ptr_allocator pal = al; + ptr_alloc_traits::deallocate(pal, p, n); + } + + void construct(value_type* p, const value_type& x) + { + this->construct(p, *x); + } + + void construct(value_type* p, value_type&& x) + { + *p = x; + x = nullptr; + } + + template + void construct(value_type* p, Args&&... args) + { + *p = boost::to_address(alloc_traits::allocate(al, 1)); + try { + alloc_traits::construct(al, *p, std::forward(args)...); + } catch (...) { + alloc_traits::deallocate(al, + boost::pointer_traits::pointer_to( + **p), + 1); + throw; + } + } + + void destroy(value_type* p) noexcept + { + if (*p) { + alloc_traits::destroy(al, *p); + alloc_traits::deallocate(al, *p, 1); + } + } + }; + } // namespace detail + + template + class unordered_node_map + { + struct map_types + { + using key_type = Key; + using raw_key_type = typename std::remove_const::type; + using raw_mapped_type = typename std::remove_const::type; + + using init_type = std::pair*; + using moved_type = init_type; + using value_type = init_type; + + using emplace_type = std::pair; + + template + static raw_key_type const& extract(std::pair const& kv) + { + return kv.first; + } + + template + static raw_key_type const& extract(std::pair const* kv) + { + return kv->first; + } + + static value_type&& move(value_type& x) { return std::move(x); } + }; + + using table_type = detail::foa::table >::type> >; + + table_type table_; + + template + typename unordered_node_map::size_type friend erase_if( + unordered_node_map& set, Pred pred); + + public: + using key_type = Key; + using mapped_type = T; + using value_type = std::pair; + using init_type = std::pair; + using size_type = std::size_t; + using difference_type = std::ptrdiff_t; + using hasher = typename boost::type_identity::type; + using key_equal = typename boost::type_identity::type; + using allocator_type = typename boost::type_identity< + typename boost::allocator_rebind::type>::type; + using reference = value_type&; + using const_reference = value_type const&; + using pointer = typename boost::allocator_pointer::type; + using const_pointer = + typename boost::allocator_const_pointer::type; + using iterator = boost::indirect_iterator; + using const_iterator = + boost::indirect_iterator; + + unordered_node_map() : unordered_node_map(0) {} + + explicit unordered_node_map(size_type n, hasher const& h = hasher(), + key_equal const& pred = key_equal(), + allocator_type const& a = allocator_type()) + : table_(n, h, pred, detail::ptr_allocator_adaptor(a)) + { + } + + unordered_node_map(size_type n, allocator_type const& a) + : unordered_node_map(n, hasher(), key_equal(), a) + { + } + + unordered_node_map(size_type n, hasher const& h, allocator_type const& a) + : unordered_node_map(n, h, key_equal(), a) + { + } + + template + unordered_node_map( + InputIterator f, InputIterator l, allocator_type const& a) + : unordered_node_map(f, l, size_type(0), hasher(), key_equal(), a) + { + } + + explicit unordered_node_map(allocator_type const& a) + : unordered_node_map(0, a) + { + } + + template + unordered_node_map(Iterator first, Iterator last, size_type n = 0, + hasher const& h = hasher(), key_equal const& pred = key_equal(), + allocator_type const& a = allocator_type()) + : unordered_node_map(n, h, pred, a) + { + this->insert(first, last); + } + + template + unordered_node_map( + Iterator first, Iterator last, size_type n, allocator_type const& a) + : unordered_node_map(first, last, n, hasher(), key_equal(), a) + { + } + + template + unordered_node_map(Iterator first, Iterator last, size_type n, + hasher const& h, allocator_type const& a) + : unordered_node_map(first, last, n, h, key_equal(), a) + { + } + + unordered_node_map(unordered_node_map const& other) : table_(other.table_) + { + } + + unordered_node_map( + unordered_node_map const& other, allocator_type const& a) + : table_(other.table_, a) + { + } + + unordered_node_map(unordered_node_map&& other) + noexcept(std::is_nothrow_move_constructible::value&& + std::is_nothrow_move_constructible::value&& + std::is_nothrow_move_constructible::value) + : table_(std::move(other.table_)) + { + } + + unordered_node_map(unordered_node_map&& other, allocator_type const& al) + : table_(std::move(other.table_), al) + { + } + + unordered_node_map(std::initializer_list ilist, + size_type n = 0, hasher const& h = hasher(), + key_equal const& pred = key_equal(), + allocator_type const& a = allocator_type()) + : unordered_node_map(ilist.begin(), ilist.end(), n, h, pred, a) + { + } + + unordered_node_map( + std::initializer_list il, allocator_type const& a) + : unordered_node_map(il, size_type(0), hasher(), key_equal(), a) + { + } + + unordered_node_map(std::initializer_list init, size_type n, + allocator_type const& a) + : unordered_node_map(init, n, hasher(), key_equal(), a) + { + } + + unordered_node_map(std::initializer_list init, size_type n, + hasher const& h, allocator_type const& a) + : unordered_node_map(init, n, h, key_equal(), a) + { + } + + ~unordered_node_map() = default; + + unordered_node_map& operator=(unordered_node_map const& other) + { + table_ = other.table_; + return *this; + } + + unordered_node_map& operator=(unordered_node_map&& other) noexcept( + noexcept(std::declval() = std::declval())) + { + table_ = std::move(other.table_); + return *this; + } + + allocator_type get_allocator() const noexcept + { + return table_.get_allocator(); + } + + /// Iterators + /// + + iterator begin() noexcept { return table_.begin(); } + const_iterator begin() const noexcept { return table_.begin(); } + const_iterator cbegin() const noexcept { return table_.cbegin(); } + + iterator end() noexcept { return table_.end(); } + const_iterator end() const noexcept { return table_.end(); } + const_iterator cend() const noexcept { return table_.cend(); } + + /// Capacity + /// + + BOOST_ATTRIBUTE_NODISCARD bool empty() const noexcept + { + return table_.empty(); + } + + size_type size() const noexcept { return table_.size(); } + + size_type max_size() const noexcept { return table_.max_size(); } + + /// Modifiers + /// + + void clear() noexcept { table_.clear(); } + + template + BOOST_FORCEINLINE auto insert(Ty&& value) + -> decltype(table_.insert(std::forward(value))) + { + return table_.try_emplace(std::forward(value)); + } + + BOOST_FORCEINLINE std::pair insert(init_type&& value) + { + return table_.try_emplace( + std::move(value.first), std::move(value.second)); + } + + template + BOOST_FORCEINLINE auto insert(const_iterator, Ty&& value) + -> decltype(table_.insert(std::forward(value)).first) + { + return table_.try_emplace(std::forward(value)).first; + } + + BOOST_FORCEINLINE iterator insert(const_iterator, init_type&& value) + { + return table_ + .try_emplace(std::move(value.first), std::move(value.second)) + .first; + } + + template + BOOST_FORCEINLINE void insert(InputIterator first, InputIterator last) + { + for (auto pos = first; pos != last; ++pos) { + table_.emplace(*pos); + } + } + + void insert(std::initializer_list ilist) + { + this->insert(ilist.begin(), ilist.end()); + } + + template + std::pair insert_or_assign(key_type const& key, M&& obj) + { + auto iter_bool_pair = table_.try_emplace(key, std::forward(obj)); + if (iter_bool_pair.second) { + return iter_bool_pair; + } + (*(iter_bool_pair.first))->second = std::forward(obj); + return iter_bool_pair; + } + + template + std::pair insert_or_assign(key_type&& key, M&& obj) + { + auto iter_bool_pair = + table_.try_emplace(std::move(key), std::forward(obj)); + if (iter_bool_pair.second) { + return iter_bool_pair; + } + (*(iter_bool_pair.first))->second = std::forward(obj); + return iter_bool_pair; + } + + template + iterator insert_or_assign(const_iterator, key_type const& key, M&& obj) + { + return this->insert_or_assign(key, std::forward(obj)).first; + } + + template + iterator insert_or_assign(const_iterator, key_type&& key, M&& obj) + { + return this->insert_or_assign(std::move(key), std::forward(obj)) + .first; + } + + template + BOOST_FORCEINLINE std::pair emplace(Args&&... args) + { + return table_.emplace(init_type(std::forward(args)...)); + } + + template + BOOST_FORCEINLINE iterator emplace_hint(const_iterator, Args&&... args) + { + return table_.emplace(std::forward(args)...).first; + } + + template + BOOST_FORCEINLINE std::pair try_emplace( + key_type const& key, Args&&... args) + { + return table_.try_emplace(key, std::forward(args)...); + } + + template + BOOST_FORCEINLINE std::pair try_emplace( + key_type&& key, Args&&... args) + { + return table_.try_emplace(std::move(key), std::forward(args)...); + } + + template + BOOST_FORCEINLINE iterator try_emplace( + const_iterator, key_type const& key, Args&&... args) + { + return table_.try_emplace(key, std::forward(args)...).first; + } + + template + BOOST_FORCEINLINE iterator try_emplace( + const_iterator, key_type&& key, Args&&... args) + { + return table_.try_emplace(std::move(key), std::forward(args)...) + .first; + } + + BOOST_FORCEINLINE void erase(iterator pos) { table_.erase(pos); } + BOOST_FORCEINLINE void erase(const_iterator pos) + { + return table_.erase(pos); + } + iterator erase(const_iterator first, const_iterator last) + { + while (first != last) { + this->erase(first++); + } + return iterator{detail::foa::const_iterator_cast_tag{}, last}; + } + + BOOST_FORCEINLINE size_type erase(key_type const& key) + { + return table_.erase(key); + } + + template + BOOST_FORCEINLINE typename std::enable_if< + detail::transparent_non_iterable::value, + size_type>::type + erase(K const& key) + { + return table_.erase(key); + } + + void swap(unordered_node_map& rhs) noexcept( + noexcept(std::declval().swap(std::declval()))) + { + table_.swap(rhs.table_); + } + + template + void merge( + unordered_node_map& + source) + { + table_.merge(source.table_); + } + + template + void merge( + unordered_node_map&& + source) + { + table_.merge(std::move(source.table_)); + } + + /// Lookup + /// + + mapped_type& at(key_type const& key) + { + auto pos = table_.find(key); + if (pos != table_.end()) { + return pos->second; + } + // TODO: someday refactor this to conditionally serialize the key and + // include it in the error message + // + boost::throw_exception( + std::out_of_range("key was not found in unordered_node_map")); + } + + mapped_type const& at(key_type const& key) const + { + auto pos = table_.find(key); + if (pos != table_.end()) { + return pos->second; + } + boost::throw_exception( + std::out_of_range("key was not found in unordered_node_map")); + } + + BOOST_FORCEINLINE mapped_type& operator[](key_type const& key) + { + return (*(table_.try_emplace(key).first))->second; + } + + BOOST_FORCEINLINE mapped_type& operator[](key_type&& key) + { + return (*(table_.try_emplace(std::move(key)).first))->second; + } + + BOOST_FORCEINLINE size_type count(key_type const& key) const + { + auto pos = table_.find(key); + return pos != table_.end() ? 1 : 0; + } + + template + BOOST_FORCEINLINE typename std::enable_if< + detail::are_transparent::value, size_type>::type + count(K const& key) const + { + auto pos = table_.find(key); + return pos != table_.end() ? 1 : 0; + } + + BOOST_FORCEINLINE iterator find(key_type const& key) + { + return table_.find(key); + } + + BOOST_FORCEINLINE const_iterator find(key_type const& key) const + { + return table_.find(key); + } + + template + BOOST_FORCEINLINE typename std::enable_if< + boost::unordered::detail::are_transparent::value, + iterator>::type + find(K const& key) + { + return table_.find(key); + } + + template + BOOST_FORCEINLINE typename std::enable_if< + boost::unordered::detail::are_transparent::value, + const_iterator>::type + find(K const& key) const + { + return table_.find(key); + } + + BOOST_FORCEINLINE bool contains(key_type const& key) const + { + return this->find(key) != this->end(); + } + + template + BOOST_FORCEINLINE typename std::enable_if< + boost::unordered::detail::are_transparent::value, + bool>::type + contains(K const& key) const + { + return this->find(key) != this->end(); + } + + std::pair equal_range(key_type const& key) + { + auto pos = table_.find(key); + if (pos == table_.end()) { + return {pos, pos}; + } + + auto next = pos; + ++next; + return {pos, next}; + } + + std::pair equal_range( + key_type const& key) const + { + auto pos = table_.find(key); + if (pos == table_.end()) { + return {pos, pos}; + } + + auto next = pos; + ++next; + return {pos, next}; + } + + template + typename std::enable_if< + detail::are_transparent::value, + std::pair >::type + equal_range(K const& key) + { + auto pos = table_.find(key); + if (pos == table_.end()) { + return {pos, pos}; + } + + auto next = pos; + ++next; + return {pos, next}; + } + + template + typename std::enable_if< + detail::are_transparent::value, + std::pair >::type + equal_range(K const& key) const + { + auto pos = table_.find(key); + if (pos == table_.end()) { + return {pos, pos}; + } + + auto next = pos; + ++next; + return {pos, next}; + } + + /// Hash Policy + /// + + size_type bucket_count() const noexcept { return table_.capacity(); } + + float load_factor() const noexcept { return table_.load_factor(); } + + float max_load_factor() const noexcept + { + return table_.max_load_factor(); + } + + void max_load_factor(float) {} + + size_type max_load() const noexcept { return table_.max_load(); } + + void rehash(size_type n) { table_.rehash(n); } + + void reserve(size_type n) { table_.reserve(n); } + + /// Observers + /// + + hasher hash_function() const { return table_.hash_function(); } + + key_equal key_eq() const { return table_.key_eq(); } + }; + + template + bool operator==( + unordered_node_map const& lhs, + unordered_node_map const& rhs) + { + if (&lhs == &rhs) { + return true; + } + + return (lhs.size() == rhs.size()) && ([&] { + for (auto const& kvp : lhs) { + auto pos = rhs.find(kvp.first); + if ((pos == rhs.end()) || (*pos != kvp)) { + return false; + } + } + return true; + })(); + } + + template + bool operator!=( + unordered_node_map const& lhs, + unordered_node_map const& rhs) + { + return !(lhs == rhs); + } + + template + void swap(unordered_node_map& lhs, + unordered_node_map& rhs) + noexcept(noexcept(lhs.swap(rhs))) + { + lhs.swap(rhs); + } + + template + typename unordered_node_map::size_type + erase_if( + unordered_node_map& map, Pred pred) + { + return erase_if(map.table_, pred); + } + +#if defined(BOOST_MSVC) +#pragma warning(pop) /* C4714 */ +#endif + +#if BOOST_UNORDERED_TEMPLATE_DEDUCTION_GUIDES + + namespace detail { + template + using iter_key_t = + typename std::iterator_traits::value_type::first_type; + template + using iter_val_t = + typename std::iterator_traits::value_type::second_type; + template + using iter_to_alloc_t = + typename std::pair const, iter_val_t >; + } // namespace detail + + template >, + class Pred = + std::equal_to >, + class Allocator = std::allocator< + boost::unordered::detail::iter_to_alloc_t >, + class = boost::enable_if_t >, + class = boost::enable_if_t >, + class = boost::enable_if_t >, + class = boost::enable_if_t > > + unordered_node_map(InputIterator, InputIterator, + std::size_t = boost::unordered::detail::foa::default_bucket_count, + Hash = Hash(), Pred = Pred(), Allocator = Allocator()) + -> unordered_node_map, + boost::unordered::detail::iter_val_t, Hash, Pred, + Allocator>; + + template >, + class Pred = std::equal_to >, + class Allocator = std::allocator >, + class = boost::enable_if_t >, + class = boost::enable_if_t >, + class = boost::enable_if_t > > + unordered_node_map(std::initializer_list >, + std::size_t = boost::unordered::detail::foa::default_bucket_count, + Hash = Hash(), Pred = Pred(), Allocator = Allocator()) + -> unordered_node_map, T, Hash, Pred, + Allocator>; + + template >, + class = boost::enable_if_t > > + unordered_node_map(InputIterator, InputIterator, std::size_t, Allocator) + -> unordered_node_map, + boost::unordered::detail::iter_val_t, + boost::hash >, + std::equal_to >, + Allocator>; + + template >, + class = boost::enable_if_t > > + unordered_node_map(InputIterator, InputIterator, Allocator) + -> unordered_node_map, + boost::unordered::detail::iter_val_t, + boost::hash >, + std::equal_to >, + Allocator>; + + template >, + class = boost::enable_if_t >, + class = boost::enable_if_t > > + unordered_node_map( + InputIterator, InputIterator, std::size_t, Hash, Allocator) + -> unordered_node_map, + boost::unordered::detail::iter_val_t, Hash, + std::equal_to >, + Allocator>; + + template > > + unordered_node_map(std::initializer_list >, std::size_t, + Allocator) -> unordered_node_map, T, + boost::hash >, + std::equal_to >, Allocator>; + + template > > + unordered_node_map(std::initializer_list >, Allocator) + -> unordered_node_map, T, + boost::hash >, + std::equal_to >, Allocator>; + + template >, + class = boost::enable_if_t > > + unordered_node_map(std::initializer_list >, std::size_t, + Hash, Allocator) -> unordered_node_map, T, + Hash, std::equal_to >, Allocator>; +#endif + + } // namespace unordered +} // namespace boost + +#endif diff --git a/include/boost/unordered/unordered_node_map_fwd.hpp b/include/boost/unordered/unordered_node_map_fwd.hpp new file mode 100644 index 00000000..0e08a905 --- /dev/null +++ b/include/boost/unordered/unordered_node_map_fwd.hpp @@ -0,0 +1,49 @@ + +// Copyright (C) 2022 Christian Mazakas +// 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) + +#ifndef BOOST_UNORDERED_NODE_MAP_FWD_HPP_INCLUDED +#define BOOST_UNORDERED_NODE_MAP_FWD_HPP_INCLUDED + +#include +#if defined(BOOST_HAS_PRAGMA_ONCE) +#pragma once +#endif + +#include +#include +#include +#include + +namespace boost { + namespace unordered { + template , + class KeyEqual = std::equal_to, + class Allocator = std::allocator > > + class unordered_node_map; + + template + bool operator==( + unordered_node_map const& lhs, + unordered_node_map const& rhs); + + template + bool operator!=( + unordered_node_map const& lhs, + unordered_node_map const& rhs); + + template + void swap(unordered_node_map& lhs, + unordered_node_map& rhs) + noexcept(noexcept(lhs.swap(rhs))); + } // namespace unordered + + using boost::unordered::unordered_node_map; + + using boost::unordered::swap; + using boost::unordered::operator==; + using boost::unordered::operator!=; +} // namespace boost + +#endif diff --git a/test/helpers/unordered.hpp b/test/helpers/unordered.hpp index a3af9452..ab9ed1dc 100644 --- a/test/helpers/unordered.hpp +++ b/test/helpers/unordered.hpp @@ -11,6 +11,7 @@ #ifdef BOOST_UNORDERED_FOA_TESTS #include #include +#include #include #else #include diff --git a/test/unordered/insert_tests.cpp b/test/unordered/insert_tests.cpp index f59d5acd..08771ed9 100644 --- a/test/unordered/insert_tests.cpp +++ b/test/unordered/insert_tests.cpp @@ -45,6 +45,7 @@ namespace insert_tests { float b = x.max_load_factor(); std::pair r1 = x.insert(*it); + static_assert(std::is_same_v>); std::pair r2 = tracker.insert(*it); BOOST_TEST(r1.second == r2.second); @@ -896,38 +897,41 @@ namespace insert_tests { test::allocator1 >* test_set; boost::unordered_flat_map >* test_map; + boost::unordered_node_map >* test_node_map; UNORDERED_TEST(unique_insert_tests1, - ((test_set_std_alloc)(test_set)(test_map))( + ((test_set_std_alloc)(test_set)(test_map)(test_node_map))( (default_generator)(generate_collisions)(limited_range))) UNORDERED_TEST( - insert_tests2, ((test_set)(test_map))( + insert_tests2, ((test_set)(test_map)(test_node_map))( (default_generator)(generate_collisions)(limited_range))) UNORDERED_TEST(unique_emplace_tests1, - ((test_set_std_alloc)(test_set)(test_map))( + ((test_set_std_alloc)(test_set)(test_map)(test_node_map))( (default_generator)(generate_collisions)(limited_range))) UNORDERED_TEST(move_emplace_tests, - ((test_set_std_alloc)(test_set)(test_map))( + ((test_set_std_alloc)(test_set)(test_map)(test_node_map))( (default_generator)(generate_collisions)(limited_range))) UNORDERED_TEST(default_emplace_tests, - ((test_set_std_alloc)(test_set)(test_map))( + ((test_set_std_alloc)(test_set)(test_map)(test_node_map))( (default_generator)(generate_collisions)(limited_range))) UNORDERED_TEST(map_tests, - ((test_map))((default_generator)(generate_collisions)(limited_range))) + ((test_map)(test_node_map)) + ((default_generator)(generate_collisions)(limited_range))) UNORDERED_TEST( - map_tests2, ((test_map))((default_generator)(generate_collisions))) + map_tests2, ((test_map)(test_node_map))((default_generator)(generate_collisions))) UNORDERED_TEST(map_insert_range_test1, - ((test_map))((default_generator)(generate_collisions)(limited_range))) + ((test_map)(test_node_map))((default_generator)(generate_collisions)(limited_range))) UNORDERED_TEST(map_insert_range_test2, - ((test_map))((default_generator)(generate_collisions)(limited_range))) + ((test_map)(test_node_map))((default_generator)(generate_collisions)(limited_range))) UNORDERED_TEST( set_tests, ((test_set_std_alloc)(test_set))((default_generator)))