refactor: add WordList type

This commit is contained in:
Michael Mandl 2024-03-21 08:55:44 +01:00
parent dae5445efc
commit 48f05ddb4f
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
18 changed files with 111 additions and 92 deletions

View file

@ -8,7 +8,7 @@
using std::mutex, std::vector, std::thread, std::lock_guard, std::string,
std::forward_list, std::string_view;
GroupedFinder::GroupedFinder(const std::vector<string> &word_list) {
GroupedFinder::GroupedFinder(const WordList &word_list) {
for (const auto &word : word_list) {
groups_[word.front()].push_back(&word);
}