const bool isResultEmpty {pSource->getCache().isEmpty(type)};
这是C++函数体中的一句话,从语法和表面上猜测,大概是啥意思?
const bool isResultEmpty {pSource->getCache().isEmpty(type)};
这是C++函数体中的一句话,从语法和表面上猜测,大概是啥意思?
算我见识小,第一次见到这样写的const bool isResultEmpty {pSource->getCache().isEmpty(type)}。不知道是什么时候新加的C++写法?!
如果定义数组应该是const bool isResultEmpty[] = {pSource->getCache().isEmpty(type)},这样是定义一个长度为1的bool型数组,值是psource的cache是否是空的