mirror of
https://github.com/dlang/phobos.git
synced 2025-04-26 05:00:35 +03:00
![]() The constructor of the result of std.range.chain copies it's input tuple and then has to check which of the input-ranges in the first non-empty one. The member function empty is not guaranteed to be const, filter is probably the most prominent function that has to be "primed". On the first call to empty(), filter will try to advance all it's input ranges to the first element that matches the predicate. For ranges with full value semantics, using the old input object instead of the new internal buffer means that the work of priming is done twice. If any ranges have reference semantics, the references gets advances, but the value-semantic parts of the range-composition gets reset. This fixes #10561 and #9877 |
||
---|---|---|
.. | ||
interfaces.d | ||
package.d | ||
primitives.d |