_(node)->Execute() 中下划线的目的是什么 c++

What is the purpose of the underscore in _(node)->Execute() for c++

本文关键字:下划线 是什么 c++ node gt Execute      更新时间:2023-10-16

在这种情况下,下划线不是标识符的一部分。我看到的代码看起来像

for(auto nodeItr = myNodes.begin(); nodeItr != myNodes.end(); nodeItr++) {
    auto node = *nodeItr;
    int status = _(node)->Execute();
    if (status != 0) return -1;
}

有一系列包装器函数声明为类似NodePtrWrapper* _(...)

感觉很愚蠢,但很感激你的回应。。。