Efficient way to check if a given string is equivalent to at least one string in the given set of strings

Viewed 2291

Given a set of strings, say "String1", "String2",..., "StringN", what is the most efficient way in C++ to determine (return true or false) whether given string s matches any of the strings in the above set?

Can Boost.Regex be used for this task?

6 Answers
Related