pointertomember
Pointer-to-member, sometimes written as pointer-to-member or pointertomember, is a C++ language feature that enables references to non-static members of a class, either data members or member functions. It encodes the location of a member within a class and requires an object (or a pointer to one) to be used.
Data member pointers are declared as type ClassName::* and initialized with the address of a member, for
Accessing a data member through a pointer-to-member uses the object and the appropriate operator: obj.*ptr or
Pointer-to-member enables dynamic or generic programming patterns, such as storing a set of member pointers in
Limitations include the need for a concrete object to apply the pointer, and the fact that pointers