/
Smart Pointers

Smart Pointers

Smart pointers are objects which resemble pointers in their behavior. They are implemented in C++ using operator overloading.

They can often cause confusion because of the extra ‘smart’ behaviors that they do which can result in confusing side effects.

 

 

Related content

Operator Overloading
Operator Overloading
More like this
C/C++Stack Variables
C/C++Stack Variables
More like this
Heap and stack - understanding memory allocation
Heap and stack - understanding memory allocation
More like this
What are classes and methods in C++?
What are classes and methods in C++?
More like this
What is C++ name mangling?
What is C++ name mangling?
More like this
Const References for Inputs and Non const Pointers for Outputs
Const References for Inputs and Non const Pointers for Outputs
More like this