Closed
Description
All of the adaptors implemented on top of BaseIter should be removed and reimplemented as generic adaptors for any internal iterator. The traits are generally useful, but BaseIter
is the wrong place for a size hint to be.
The only adaptors that can really take advantage of the hint are ones that convert to a container with the concept of reserving space. It should be possible to take advantage of the reserve on any iterator with a known size, not just each
.