feat: add grouped finder

This commit is contained in:
Michael Mandl 2024-03-20 16:35:37 +01:00
parent 9fd3062041
commit ab0613e845
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
4 changed files with 89 additions and 1 deletions

View file

@ -0,0 +1,17 @@
#pragma once
#include "finder.h"
#include <map>
#include <vector>
class GroupedFinder : public Finder {
private:
std::map<char, std::vector<const std::string *>> groups_;
public:
GroupedFinder(const std::vector<string> &word_list);
virtual std::forward_list<const std::string *>
find_prefix(std::string_view search_term) const override;
};