technique
[MECpp]Item-28 Smart Pointers
· β˜• 15 min read

Smart pointers are designed to look, act, and feel like built-in pointers, but to offer greater functionality.


[MECpp]Item-25 Virtualizing Constructors and Non-Member Functions
· β˜• 5 min read

Depending on the different input or dynamic types of function parameters, “virtualization” is a useful technique to construct new objects of different types accordingly, or to conceive of non-member functions whose behavior changes accordingly.