Template Function ADS::anagrams

Function Documentation

template<class W, class P>
std::set<std::string> ADS::anagrams(const std::string &s, W &&word, P &&prefix)

the anagrams of s made of words for which word( w ) is true; prefix( w ) is true if w begins some word; the words of a sentence are separated by one blank, and the empty s has the one anagram “”

Post:

each sentence has the letters of s