Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 592 Bytes

MemberPointers.md

File metadata and controls

35 lines (26 loc) · 592 Bytes
layout title nav_order parent grand_parent has_children
default
Member Pointers
1
C++
Language
false

{{ page.title }}

{: .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;

Author: JDSherbert

Published: 20/12/2023