Skip to content

[strings] Use "Equivalent to" where appropriate #165

Closed
@sdutoit

Description

@sdutoit
Contributor

From an email by Jeffrey Yasskin:

Many functions in the strings clause use formulations like:

[string.cons]/15:

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

[string.capacity]/15:

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

[string::insert]/27:

Effects: insert(p, il.begin(), il.end()).
Returns: [what the above insert() call returns]

instead of the "Equivalent to" wording defined in
[structure.specifications]/4. These should all be changed to
"Equivalent to" for consistency and conciseness.

Activity

burblebee

burblebee commented on Apr 15, 2016

@burblebee
Contributor

This needs to be opened as an LWG issue. I've asked for an issue to be opened for this throughout the spec, but I don't know it's number yet.

jensmaurer

jensmaurer commented on Dec 9, 2016

@jensmaurer
Member

LWG 2679, but that doesn't cover the places mentioned above.

jensmaurer

jensmaurer commented on Dec 9, 2016

@jensmaurer
Member

I've asked for another LWG issue, explicitly listing the places that need fixing.

jensmaurer

jensmaurer commented on Dec 18, 2016

@jensmaurer
Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    lwgIssue must be reviewed by LWG.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @sdutoit@burblebee@jensmaurer

        Issue actions

          [strings] Use "Equivalent to" where appropriate · Issue #165 · cplusplus/draft