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

2841. Use of "Equivalent to" in [strings]

Section: 27 [strings] Status: Resolved Submitter: Jeffrey Yasskin Opened: 2016-12-09 Last modified: 2018-11-25

Priority: 3

View all other issues in [strings].

View all issues with Resolved status.

Discussion:

Reported via editorial issue #165:

The following places should probably use the "Equivalent to" wording introduced in [structure.specifications]/4.

  1. [string.cons]/18

    Effects: Same as basic_string(il.begin(), il.end(), a).

  2. [string.capacity]/3

    Returns: size().

  3. [string.capacity]/8

    Effects: As if by resize(n, charT()).

  4. [string.capacity]/16

    Effects: Behaves as if the function calls: erase(begin(), end());

  5. [string.capacity]/17

    Returns: size() == 0.

  6. [string.insert]/27

    Effects: As if by insert(p, il.begin(), il.end()).

    Returns: An iterator which refers to the copy of the first inserted character, or p if i1 is empty.

[2017-01-27 Telecon]

Priority 3; Marshall to provide wording.

Resolved by the adoption of P1148 in San Diego.

Proposed resolution: