www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8280] New: std.array.uninitializedArrayExtend

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 puremagic.com
        ReportedBy: bearophile_hugs eml.cc



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: -------
Jun 21 2012