A little nugget about the free-as-in-no-overhead-ness of unique_ptr
and std::move
:
No Runtime Overhead
by Bulldozer00
From the article:
Unless I really need shared ownership of a dynamically allocated object, which I haven’t so far, I stick to the slimmer and more performant
std::unique_ptr
. ...
Add a Comment
Comments are closed.