autoptr (ref counted pointers)

Salih Dincer salihdb at hotmail.com
Sat Nov 13 10:40:31 UTC 2021


On Friday, 12 November 2021 at 14:32:42 UTC, vit wrote:
> Hello,
> I implemented reference counted pointers supporting:
> - weak pointers (optional).
> - aliasing.
> - atomic/non-atomic counters.
> - multithread ref counted pointers .
> - arrays.
> - destructors with attributes
> - pure, const, immutable and shared support.
> - limited dip1000 and @safe support.
> - intrusive pointers
> - unique pointers
>
> Api is inspired with std::shared_ptr
> Implementation is inspired by clang std::shared_ptr.
>
> git: https://github.com/submada/autoptr
> doc: https://submada.github.io/autoptr/
> dub: https://code.dlang.org/packages/autoptr

Nicely done!

There are over 1000 lines of test code, line 2590 starts 
unittests.

Thank you...


More information about the Digitalmars-d-announce mailing list