3 ms·
> 3. New/delete will always be used in performance critical code but I think the point is that in general it's not a good practice. There's zero runtime overhe
by agwa 13y ago
> 3. New/delete will always be used in performance critical code but I think the point is that in general it's not a good practice.
There's zero runtime overhead to using std::unique_ptr - the compiler will inline the calls to delete you'd otherwise be writing by hand.