std::search with an empty subsequence

Viewed 47

What should std::search return if 3rd and 4th arguments are equal?

std::string s = "1", ss;
std::search(s.begin(), s.end(), ss.begin(), ss.end()) == ?

More precisely -- what does the standard say about it?

0 Answers
Related