layout | title | nav_order | parent | grand_parent | has_children |
---|---|---|---|---|---|
default |
Member Pointers |
1 |
C++ |
Language |
false |
{: .warning } This article is quite advanced and assumes you have an understanding of C++. If not, please refer to the C++ section of this book!
Member Pointers are traditional pointers that point to class or struct members.
{: .code }
class SomeClass
{
public:
int data;
};
int SomeClass::* memberPointer = &SomeClass::data;