Copy-on-Write wrapper of std.typecons.RefCounted

Per Nordlöw per.nordlow at gmail.com
Sat Oct 26 00:09:56 UTC 2024


On Friday, 25 October 2024 at 18:19:27 UTC, Per Nordlöw wrote:
> Has anybody been able to partially or completely extend 
> `std.typecons.RefCounted(T)` to transparently do copy-on-write 
> (CoW) when calling non-const members of `T`?

I think the key enabler is opDispatch.


More information about the Digitalmars-d-learn mailing list