AK: Add RefPtrTraits to allow implementing custom null pointers

This adds the ability to implement custom null states that allow
storing state in null pointers.
This commit is contained in:
Tom 2020-09-23 10:17:43 -06:00 committed by Andreas Kling
commit 3c1ef744f6
Notes: sideshowbarker 2024-07-19 01:27:35 +09:00
5 changed files with 131 additions and 71 deletions

View file

@ -35,7 +35,7 @@ namespace AK {
template<typename T>
class OwnPtr;
template<typename T>
template<typename T, typename PtrTraits>
class RefPtr;
template<typename T>