pointer to a class and arrow

Hi guys, I don't understand the meaning of this line. newPtr, nextPtr and firstPtr are pointer to a template class ListNode <T>. Especially I don't understand the -> between two pointer to a class; on the web I always see this kind of operation: pointer to a class->member of a class, that means (*pointer_to_class).member.
thanks in advance.

 
 newPtr->nextPtr = firstPtr;
newPtr points to an object. The nextPtr of that object is set to point to the same object as firstPtr points to.
Topic archived. No new replies allowed.