Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
fixes #59, template argument for unordered_set
Browse files Browse the repository at this point in the history
A copy & paste error
  • Loading branch information
martinus committed Feb 18, 2020
1 parent 1f1bfc7 commit 1805a4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/include/robin_hood.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// _/_____/
//
// Fast & memory efficient hashtable based on robin hood hashing for C++11/14/17/20
// version 3.5.0
// version 3.5.1
// https://github.com/martinus/robin-hood-hashing
//
// Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Expand Down Expand Up @@ -37,7 +37,7 @@
// see https://semver.org/
#define ROBIN_HOOD_VERSION_MAJOR 3 // for incompatible API changes
#define ROBIN_HOOD_VERSION_MINOR 5 // for adding functionality in a backwards-compatible manner
#define ROBIN_HOOD_VERSION_PATCH 0 // for backwards-compatible bug fixes
#define ROBIN_HOOD_VERSION_PATCH 1 // for backwards-compatible bug fixes

#include <algorithm>
#include <cstdlib>
Expand Down Expand Up @@ -2172,8 +2172,8 @@ template <typename Key, typename Hash = hash<Key>, typename KeyEqual = std::equa
size_t MaxLoadFactor100 = 80>
using unordered_node_set = detail::Table<false, MaxLoadFactor100, Key, void, Hash, KeyEqual>;

template <typename Key, typename T, typename Hash = hash<Key>,
typename KeyEqual = std::equal_to<Key>, size_t MaxLoadFactor100 = 80>
template <typename Key, typename Hash = hash<Key>, typename KeyEqual = std::equal_to<Key>,
size_t MaxLoadFactor100 = 80>
using unordered_set = detail::Table<sizeof(Key) <= sizeof(size_t) * 6 &&
std::is_nothrow_move_constructible<Key>::value &&
std::is_nothrow_move_assignable<Key>::value,
Expand Down
1 change: 1 addition & 0 deletions src/test/unit/bench_quick_overall_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ TEST_CASE("bench_quick_overall_set_flat" * doctest::test_suite("bench") * doctes
ankerl::nanobench::Config cfg;
benchAll<robin_hood::unordered_flat_set<uint64_t>>(&cfg);
benchAll<robin_hood::unordered_flat_set<std::string>>(&cfg);
benchAll<robin_hood::unordered_set<std::string>>(&cfg);
std::cout << geomean1(cfg) << std::endl;

#ifdef ROBIN_HOOD_COUNT_ENABLED
Expand Down

0 comments on commit 1805a4e

Please sign in to comment.