I’ve stumbled upon this code that really confuses me:
SomeObject->SomeFunction()->AnotherFunction(...);
What is the meaning of the second arrow -> that follows the call to SomeFunction() member function?
P.S. SomeFunction() function is declared inside a class just like this:
const int * SomeFunction() {return ipValue;}
SomeFunction()returns a pointer to a class which has one of its methods (calledAnotherFunction) invoked. If you break it up, it might look like this:As already mentioned, if SomeFunction() returns an int* this won’t work.