Click here to Skip to main content
15,895,142 members
Articles / Programming Languages / C++

CSharpish Properties in Modern C++

19 Oct 2020CPOL3 min read 12.1K   12  
Simple idiom to implement csharpish properties in modern C++
C# has properties that behave like class member variables and capture read and write operations. We can implement similar behavior in C++ in only 16 lines of code.
This is an old version of the currently published tip/trick.

Only logged in members can view this content

Please go to the C++ Table of Contents to view the list of available articles in this section.