https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122254
Bug ID: 122254
Summary: Extend vector(InputIterator, InputIterator) handling
of C++20 iterators to other members and to std::string
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
Target Milestone: ---
Bug 108487 optimized construction of std::vector from iterators which satisfy
the std::forward_iterator concept but do not meet the Cpp17ForwardIterator
requirements.
The same optimization should be applied to vector::insert and vector::assign
etc.
Also std::basic_string::basic_string(InputIterator, InputIterator).
This is not required by the standard, but would be a QoI improvement.