This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++23 status.
3732.prepend_range
and append_range
can't be amortized constant time
Section: 23.2.4 [sequence.reqmts] Status: C++23 Submitter: Tim Song Opened: 2022-07-06 Last modified: 2023-11-22
Priority: Not Prioritized
View other active issues in [sequence.reqmts].
View all other issues in [sequence.reqmts].
View all issues with C++23 status.
Discussion:
23.2.4 [sequence.reqmts]/69 says "An implementation shall implement them so as to take amortized constant time." followed by a list of operations that includes the newly added append_range
and prepend_range
. Obviously these operations cannot be implemented in amortized constant time.
[2022-08-23; Reflector poll]
Set status to Tentatively Ready after six votes in favour during reflector poll.
[2022-11-12 Approved at November 2022 meeting in Kona. Status changed: Voting → WP.]
Proposed resolution:
This wording is relative to N4910.
Modify 23.2.4 [sequence.reqmts] as indicated:
-69- The following operations are provided for some types of sequence containers but not others. An implementation shall implement them Operations other than
prepend_range
andappend_range
are implemented so as to take amortized constant time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4