66
77#include < boost/unordered_map.hpp>
88#include < boost/unordered/unordered_flat_map.hpp>
9- #include < boost/multi_index_container.hpp>
10- #include < boost/multi_index/hashed_index.hpp>
11- #include < boost/multi_index/member.hpp>
129#include < boost/core/detail/splitmix64.hpp>
1310#include < boost/config.hpp>
1411#ifdef HAVE_ABSEIL
@@ -267,24 +264,6 @@ template<template<class...> class Map> BOOST_NOINLINE void test( char const* lab
267264 times.push_back ( rec );
268265}
269266
270- // multi_index emulation of unordered_map
271-
272- template <class K , class V > struct pair
273- {
274- K first;
275- mutable V second;
276- };
277-
278- using namespace boost ::multi_index;
279-
280- template <class K , class V > using multi_index_map = multi_index_container<
281- pair<K, V>,
282- indexed_by<
283- hashed_unique< member<pair<K, V>, K, &pair<K, V>::first> >
284- >,
285- ::allocator< pair<K, V> >
286- >;
287-
288267// aliases using the counting allocator
289268
290269template <class K , class V > using allocator_for = ::allocator< std::pair<K const , V> >;
@@ -384,14 +363,6 @@ template<class K, class V> using boost_unordered_map_fnv1a =
384363template <class K , class V > using boost_unordered_flat_map_fnv1a =
385364 boost::unordered_flat_map<K, V, fnv1a_hash, std::equal_to<K>, allocator_for<K, V>>;
386365
387- template <class K , class V > using multi_index_map_fnv1a = multi_index_container<
388- pair<K, V>,
389- indexed_by<
390- hashed_unique< member<pair<K, V>, K, &pair<K, V>::first>, fnv1a_hash >
391- >,
392- ::allocator< pair<K, V> >
393- >;
394-
395366#ifdef HAVE_ABSEIL
396367
397368template <class K , class V > using absl_node_hash_map_fnv1a =
@@ -428,12 +399,9 @@ int main()
428399{
429400 init_indices ();
430401
431- #if 1
432-
433402 test<std_unordered_map>( " std::unordered_map" );
434403 test<boost_unordered_map>( " boost::unordered_map" );
435404 test<boost_unordered_flat_map>( " boost::unordered_flat_map" );
436- test<multi_index_map>( " multi_index_map" );
437405
438406#ifdef HAVE_ABSEIL
439407
@@ -454,14 +422,11 @@ int main()
454422 test<tsl_robin_map>( " tsl::robin_map" );
455423 test<tsl_robin_pg_map>( " tsl::robin_pg_map" );
456424
457- #endif
458-
459425#endif
460426
461427 test<std_unordered_map_fnv1a>( " std::unordered_map, FNV-1a" );
462428 test<boost_unordered_map_fnv1a>( " boost::unordered_map, FNV-1a" );
463429 test<boost_unordered_flat_map_fnv1a>( " boost::unordered_flat_map, FNV-1a" );
464- test<multi_index_map_fnv1a>( " multi_index_map, FNV-1a" );
465430
466431#ifdef HAVE_ABSEIL
467432
0 commit comments