Ответ Wiki, находящийся в собственности сообщества - не стесняется редактировать или добавлять комментарии:
Горячие клавиши
выполнения запросов, Редактируя Ярлыки
Дополнения
Другие Подсказки
Полезные ссылки
There isn't a way to do this by default in C++, but you could write one:
in C# the ?? operator is defined as
a ?? b === (a != null ? a : b)
So, the C++ method would look like
Coalesce(a, b) // put your own types in, or make a template
{
return a != null ? a : b;
}
How about this?
#define IFNULL(a,b) ((a) == null ? (b) : (a))