operator=()

String::operator=(const String&) method

Assignment operator.

String & System::String::operator=(const String &str)

Arguments

ParameterTypeDescription
strconst String&String to copy.

Return Value

Self reference.

String::operator=(String&&) method

Move assignment operator.

String & System::String::operator=(String &&str) noexcept

Arguments

ParameterTypeDescription
strString&&String to move data from.

Return Value

Self reference.

See Also