C# null coalescing operator equivalent for c++

I just found this: The ?? operator aka the Null Coalescing Operator

You also have it in C/C++ as a GNU extension using the ?:
operator :

string pageTitle = getTitle() ?: "Default Title";

Leave a Comment