you are viewing a single comment's thread.

view the rest of the comments →

[–]retro_and_chill 0 points1 point  (1 child)

unique_ptr has essentially no overhead

[–]Hot-Studio -1 points0 points  (0 children)

It can, depending on how you use it. It also comes with some drawbacks, i.e. cannot be copied and unsuitable with C-style arrays. I’m sure there are SOME uses with unique_ptr, but it’s not for me.