Jump to content

C++ Language/Objects/PointerToMembers

From Wikibooks, open books for an open world

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)