Features Smart pointer



traditionally, naming conventions have been used resolve ambiguity, error-prone, labor-intensive approach. c++11 introduced way ensure correct memory management in case declaring function return unique_ptr,



the declaration of function return type unique_ptr makes explicit fact caller takes ownership of result, , c++ runtime ensures memory *some_type reclaimed automatically. before c++11, unique_ptr can replaced auto_ptr.








Comments

Popular posts from this blog

History The Vandals

Causes Portuguese conquest of the Banda Oriental

Publications Daniel Kolak