我在浏览Sequitur G2P的代码时发现了一段非常奇怪的代码:
public: ... const Node *childrenEnd() const { return (this+1)->finalized.firstChild_; }
我知道这this是一个指向当前对象的指针,因为它是一个指针,操作完全合法,但this+1实际上是指什么?
this
this+1
c++
c++ ×1