Hacker News new | ask | show | jobs
by kllrnohj 722 days ago
That'll inevitably be a utility function that exists, but C++ generally prefers broadly useful language primitives over single-case helpers
1 comments

Unfortunately. std::string `contains` arrived in C++23
That's a stdlib utility, not a language feature :)