Skip to content

Commit 77d9dfa

Browse files
Владимир ЧижВладимир Чиж
authored andcommitted
switch from robin_map to std::unordered_map
1 parent 0202266 commit 77d9dfa

2 files changed

Lines changed: 1 addition & 21 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,6 @@ if(NOT googletest_POPULATED)
8989
add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BUILD_DIR})
9090
endif()
9191

92-
include(FetchContent)
93-
94-
FetchContent_Declare(
95-
robin_map
96-
GIT_REPOSITORY https://github.com/Tessil/robin-map.git
97-
GIT_TAG master
98-
)
99-
100-
FetchContent_MakeAvailable(robin_map)
101-
10292
include_directories(${wild_library})
10393
include_directories(src${pname})
10494

srcbpatch/trie.h

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,9 @@
22

33
#include <string_view>
44

5-
#ifdef _WIN32
6-
#pragma warning(disable : 4127)
7-
#pragma warning(disable : 4324)
8-
#endif
9-
#include <tsl/robin_map.h>
10-
#ifdef _WIN32
11-
#pragma warning(default : 4127)
12-
#pragma warning(disable : 4324)
13-
#endif
14-
155
class TrieNode {
166
public:
17-
tsl::robin_map<char, std::unique_ptr<TrieNode>> children;
7+
std::unordered_map<char, std::unique_ptr<TrieNode>> children;
188
std::optional<std::string_view> target;
199
};
2010

0 commit comments

Comments
 (0)