Kinds of containers
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Wed Oct 21 12:16:27 PDT 2015
On 10/21/2015 02:05 PM, Jonathan M Davis wrote:
> If we had value type containers and reference type containers, I would
> assume that they would at least share implementation, and maybe the
> reference types would just be wrappers around the value types.
Well, I thought the same. I was surprised.
> However,
> I completely fail to understand why you'd ever want a container that was
> a value type.
Sometimes you want a value container as a member of a struct which in
turn is a value type.
Andrei
More information about the Digitalmars-d
mailing list