Hacker News new | ask | show | jobs
by netheril96 3550 days ago
The resource manager (like std::vector or std::unique_ptr) can certainly live on the stack when the data it manages resides on the heap.