Dive into C++14 - [3] - Generic “unique resource“ wrapper
The third tutorial in the “Dive into C 14“ series covers the implementation of a generic “unique resource“ class, with the same ownership semantics as `std::unique_ptr`.
---
`std::unique_ptr` is not limited to pointer-like handles - by adapting other kinds of handles to the `NullablePointer` concept, it can still be used, as shown here:
78 views
367
99
4 weeks ago 00:29:28 1
🎥 Can you guess the Anime by the First 10 Seconds? 🔥 Anime Quiz