Movatterモバイル変換


[0]ホーム

URL:



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

814.vector<bool>::swap(reference, reference) not defined

Section: 23.3.14[vector.bool]Status:C++11Submitter: Alisdair MeredithOpened: 2008-03-17Last modified: 2016-01-28

Priority:Not Prioritized

View all otherissues in [vector.bool].

View all issues withC++11 status.

Discussion:

vector<bool>::swap(reference, reference) has no definition.

[San Francisco:]

Move to Open. Alisdair to provide a resolution.

[Post Summit Daniel provided wording.]

[Batavia (2009-05):]

We agree with the proposed resolution.Move to Tentatively Ready.

Proposed resolution:

Just after 23.3.14[vector.bool]/5 add the following prototype and description:

static void swap(reference x, reference y);

-6-Effects: Exchanges the contents ofx andy as-if by:

bool b = x;x = y;y = b;

[8]ページ先頭

©2009-2026 Movatter.jp