mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Update c++.html.markdown (#4980)
This commit is contained in:
parent
887d6e0653
commit
7611e1f190
@ -840,7 +840,7 @@ void doSomethingWithAFile(const std::string& filename)
|
|||||||
// manage the lifetime of the object being pointed to without ever needing to explicitly delete
|
// manage the lifetime of the object being pointed to without ever needing to explicitly delete
|
||||||
// the object. The term itself simply describes a set of pointers with the
|
// the object. The term itself simply describes a set of pointers with the
|
||||||
// mentioned abstraction.
|
// mentioned abstraction.
|
||||||
// Smart pointers should preferred over raw pointers, to prevent
|
// Smart pointers should be preferred over raw pointers, to prevent
|
||||||
// risky memory leaks, which happen if you forget to delete an object.
|
// risky memory leaks, which happen if you forget to delete an object.
|
||||||
|
|
||||||
// Usage of a raw pointer:
|
// Usage of a raw pointer:
|
||||||
|
Loading…
Reference in New Issue
Block a user