Skip to content

No mention of concatenation in std::string::String docs #30345

@mrmonday

Description

@mrmonday

In the documentation for std::string::String, there is no mention of concatenation - it's not obvious that the + operator is used for concatenation, nor that it is restricted to String + &str, and not, eg. String + String.

There should be an example showing how to concatenate/format the different string types, or, at the very least, a mention of the word 'concatenate', to allow easy searching.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions