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

           Summary: std.array is missing the remove functions from
                    std.container
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: jmdavisp...@gmx.com


--- Comment #0 from Jonathan M Davis <jmdavisp...@gmx.com> 2010-12-12 18:04:29 
PST ---
Containers in std.container implement a certain set of functions - including
various remove functions. std.array currently implements the various range
functions that arrays are supposed to have, but it does _not_ implement any of
the container functions. In particular, it lacks the various remove functions.
These functions should be added to std.array:

removeFront() (presumably just an alias for popFront())

removeBack()  (presumably just an alias for popBack())

linearRemove()

removeAny() (presumably an alias for popFront())


I'm not sure if they can implement the stable versions or not, since I'm not
really sure what the docs mean when they're talking about iterators given that
D doesn't generally use them. I would have expected it to refer to ranges, but
since an array _is_ range that could get a bit funny... In any case, whatever
subset of the various remove functions would be appropriate for arrays should
be added to std.array.

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

Reply via email to