1 #ifndef DICTIONARY_STD_VECTOR_HPP
2 #define DICTIONARY_STD_VECTOR_HPP
5 #include <initializer_list>
41 template <
class Iterator1,
class Iterator2>
46 template <
class ForwardRange>
49 std::size_t size()
const;
53 template <
class OutputIndexIterator>
55 const std::string_view suffixes,
56 OutputIndexIterator contains_further_it)
const;
59 bool contains(
const std::string_view word)
const;
61 bool further(
const std::string_view word)
const;
66 using Iterator = std::vector<std::string>::const_iterator;
67 bool further_impl(
const std::string_view key, Iterator first,
70 std::vector<std::string> dict_;
75 #include "wordsearch_solver/dictionary_std_vector/dictionary_std_vector.tpp"
Solver implementation using a sorted std::vector.
Definition: dictionary_std_vector.hpp:25
bool further(const std::string_view word) const
Check if this dictionary might contain words with word as a prefix.
Definition: dictionary_std_vector.cpp:44
bool contains(const std::string_view word) const
Check if this dictionary contains word.
Definition: dictionary_std_vector.cpp:40
void contains_further(const std::string_view stem, const std::string_view suffixes, OutputIndexIterator contains_further_it) const
For each char in suffix appended to stem, check whether this dictionary contains this word and if it ...
Definition: dictionary_std_vector.tpp:58
namespace dictionary_std_vector
Definition: dictionary_std_vector.hpp:12