Copy‐assign from the specified rhs string.

Synopsis

Declared in <bslstl_string.h>

basic_string&
operator=(basic_string const& rhs);

Description

Assign to this string the value of the specified rhs string, propagate to this object the allocator of rhs if the ALLOCATOR type has trait propagate_on_container_copy_assignment, and return a reference providing modifiable access to this string.

Return Value

reference to this string

Parameters

Name

Description

rhs

string whose value is assigned

Created with MrDocs