[英]What is the purpose of the underscore in _(node)->Execute() for c++
The underscore, in this case, is not part of the identifier. 在这种情况下,下划线不是标识符的一部分。 The code I'm seeing looks like
我看到的代码看起来像
for(auto nodeItr = myNodes.begin(); nodeItr != myNodes.end(); nodeItr++) {
auto node = *nodeItr;
int status = _(node)->Execute();
if (status != 0) return -1;
}
There is a series of wrapper functions declared like NodePtrWrapper* _(...)
有一系列包装函数,如
NodePtrWrapper* _(...)
Feeling stupid, but appreciate the responses... 感觉很愚蠢,但感谢您的回应...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.