This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
VectorSearch/lib_vector_search/include/grouped_finder.h

18 lines
358 B
C
Raw Normal View History

2024-03-20 15:35:37 +00:00
#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<std::string> &word_list);
2024-03-20 15:35:37 +00:00
virtual std::forward_list<const std::string *>
find_prefix(std::string_view search_term) const override;
};