Is it possible to make a custom operator so you can do things like this?
if (\"Hello, world!\" contains \"Hello\") ...
Note: this is a sepa
Your suggestion would be nothing more than syntactic sugar for:
if( contains( "Hello, world!", "Hello" ) ...
and in fact there are already a functions to do that in both cstring and std::string. Which is perhaps a bit like answering "is it a good idea?" but not quite; rather asking "why would you need/want to?"