C++ Language/Std/Strings/StringClass/Construction

A  object can be treated as a value (e.g., passing it into some function as a parameter value), because copy-construction has been provided.

Initializing a string as  is equivalent to.

Additional information about string construction (includes interactive examples)