unique_ptr
- A custom implementation
C++
In this post, I try to write a simple homegrown version of
std::unique_ptr<T>
. This post is partly inspired by the fantastic book C++ Memory Management by Patrice Roy. Tghe toy examples in this book are very instructive and I highly reckon you order a copy. Our goal is just to build intuition for the kind of code required to write such a…
Apr 21, 2025