[Issue 8280] New: std.array.uninitializedArrayExtend

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 21 17:17:09 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8280

           Summary: std.array.uninitializedArrayExtend
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2012-06-21 17:19:31 PDT ---
Maybe it's useful to add two small functions to std.array similar to
std.array.minimallyInitializedArray and std.array.uninitializedArray, that
increase the length of an already allocated array:

uninitializedArrayExtend(arr, 50_000);

and

minimallyInitializedArrayExtend(arr, 50_000);

Are similar to:

arr.length += 50_000;

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list