Struct that destroys its original handle on copy-by-value

Martijn Pot via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 26 04:45:56 PDT 2015


On Sunday, 26 July 2015 at 11:30:16 UTC, Joseph Rushton Wakeling 
wrote:
> Hello all,
>
> A design question that came up during the hackathon held during 
> the last Berlin D Meetup.
>
> [...]

Sounds like unique_ptr (so UniqueRange might be a nice name). 
Maybe you can get some ideas from that.


More information about the Digitalmars-d-learn mailing list