From d3b264345d69b1c1aecc275c450dd56e9f180cad Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Tue, 14 Feb 2023 09:38:08 -0800 Subject: [PATCH] Add foa-based node containers to compile_map tests --- test/unordered/compile_map.cpp | 280 +++++++++++++++++---------------- 1 file changed, 144 insertions(+), 136 deletions(-) diff --git a/test/unordered/compile_map.cpp b/test/unordered/compile_map.cpp index c4c8d7ce..b929ced8 100644 --- a/test/unordered/compile_map.cpp +++ b/test/unordered/compile_map.cpp @@ -1,6 +1,6 @@ // 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 // 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::allocator >; +template +class instantiate_node_map +{ + typedef boost::unordered_node_map container; + container x; +}; + +template class instantiate_node_map, + std::equal_to, test::minimal::allocator >; + +template class instantiate_node_map, + test::minimal::equal_to, + test::minimal::allocator >; + #else #define INSTANTIATE(type) \ template class boost::unordered::detail::instantiate_##type @@ -55,149 +71,101 @@ INSTANTIATE(multimap) >; #endif -UNORDERED_AUTO_TEST (test0) { +template