[Issue 5345] New: std.array is missing the remove functions from std.container

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 12 18:06:16 PST 2010


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: nobody at puremagic.com
        ReportedBy: jmdavisProg at gmx.com


--- Comment #0 from Jonathan M Davis <jmdavisProg at 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: -------


More information about the Digitalmars-d-bugs mailing list