#include #include #include static_assert( ankerl::unordered_dense::detail::is_detected_v>); static_assert( !ankerl::unordered_dense::detail::is_detected_v>); TEST_CASE_MAP("custom_container", int, std::string, ankerl::unordered_dense::hash, std::equal_to, std::deque>) { auto map = map_t(); for (int i = 0; i < 10; ++i) { map[i] = std::to_string(i); } REQUIRE(std::is_same_v>, typename map_t::value_container_type>); std::deque> const container = std::move(map).extract(); auto m2 = map_t(); // we allow use-after-move m2 = map; // NOLINT(bugprone-use-after-move,hicpp-invalid-access-moved) auto map2 = map; std::swap(map2, map); }