What is the difference between D and C++ regarding Unique, RefCounted and Scoped?

Gary Willoughby via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 10 04:38:35 PDT 2015


On Wednesday, 9 September 2015 at 23:22:49 UTC, ponce wrote:
> - RefCounted
>
> Only for D structs. std::shared_ptr works for all.

RefCounted works with classes as well.

http://dlang.org/phobos/std_typecons.html#.RefCounted


More information about the Digitalmars-d-learn mailing list