[Issue 4271] drop/pop methods for std.algorithm.BinaryHeap
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Dec 23 10:55:52 PST 2016
https://issues.dlang.org/show_bug.cgi?id=4271
greenify <greeenify at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |greeenify at gmail.com
--- Comment #4 from greenify <greeenify at gmail.com> ---
Imho this is a common problem of the range API and I would love to see a
generic solution. For prior art see e.g.
https://github.com/dlang/phobos/pull/4010
and a good, generic solution in phobos-next that checks as a constraint whether
it's valid to do the move:
https://github.com/nordlow/phobos-next/blob/master/src/range_ex.d#L57
--
More information about the Digitalmars-d-bugs
mailing list