刚遇到了这段代码:
if(iElement->getData().contains("someText") and iElement->getData()("someOtherText").toString() == "true")
让我困惑的是这个部分:
iElement->getData()("someOtherText").toString()
更精确地说,拥有:()()
我在任何地方都没有看到过重载运算符。
顺便说一下,这应该是C++代码。编译和运行都很好。
由于我不知道要搜索什么,无法在任何地方找到任何信息...请问有人可以解释一下吗?
iElement->getData()
返回的对象上,例如:https://dev59.com/0VPTa4cB1Zd3GeqPimP7?noredirect=1&lq=1 - Venkatesh-Prasad Ranganath[]
,它们并没有真正涉及到你的问题。 - super()
。 - alter_igel