5 ways how unique_ptr enhances resource safety in your code—Bartlomiej Filipek

Published: 7/12/2017
5 ways how unique_ptr enhances resource safety in your code—Bartlomiej Filipek
Source: ISOCPP.ORG

Examples where unique_ptr shines: 5 ways how unique_ptr enhances resource safety in your code by Bartlomiej Filipek From the article: While shared_ptr and weak_ptr are more complex, unique_ptr seems to be a perfect replacement for owning raw pointers. Not to mention is the fact that this pointer type is mostly a compile time “wrapper” and it cost almost nothing in the runtime.

Read more
Related news
Comment