Movatterモバイル変換


[0]ホーム

URL:



This page is a snapshot from the LWG issues list, see theLibrary Active Issues List for more information and the meaning ofTC1 status.

223. reverse algorithm should use iter_swap rather than swap

Section: 26.7.10[alg.reverse]Status:TC1Submitter: Dave AbrahamsOpened: 2000-03-21Last modified: 2016-01-28

Priority:Not Prioritized

View all otherissues in [alg.reverse].

View all issues withTC1 status.

Discussion:

Shouldn't the effects say "applies iter_swap to all pairs..."?

Proposed resolution:

In 26.7.10[alg.reverse], replace:

Effects: For each non-negative integer i <= (last - first)/2, applies swap to all pairs of iterators first + i, (last - i) - 1.

with:

Effects: For each non-negative integer i <= (last - first)/2, applies iter_swap to all pairs of iterators first + i, (last - i) - 1.


[8]ページ先頭

©2009-2026 Movatter.jp