C++ Language/Objects/PointerToMembers

From Wikibooks, open books for an open world
Jump to navigation Jump to search

It is very common to use a type which is "pointer to int" (the type's name is int*). Must less common (but still possible) is using a type which is "pointer to int data member of class CRType" (the type's name is int CRType::*).

Additional information about pointers to members (includes interactive examples)