Hacker News new | past | comments | ask | show | jobs | submit login

That'll inevitably be a utility function that exists, but C++ generally prefers broadly useful language primitives over single-case helpers



Unfortunately. std::string `contains` arrived in C++23


That's a stdlib utility, not a language feature :)




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: