FYI - mo' work on std.allocator

via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 27 03:58:28 PDT 2014


I have a question regarding `owns`:

     bool owns(void[] b);

The documentation states it should return true if b has been 
allocated with this allocator. But what should happen if a 
sub-slice of an allocated object is passed? Or when a slice is 
passed that contains/overlaps an object belonging to the 
allocator?


More information about the Digitalmars-d mailing list