Addition assignment operators
Synopses
Declared in <bslstl_string.h>
Append the specified character to this string, and return a reference providing modifiable access to this string.
basic_string&
operator+=(CHAR_TYPE character);
Append the specified rhs string to this string, and return a reference providing modifiable access to this string.
basic_string&
operator+=(basic_string const& rhs);
Append the specified operand to this string.
basic_string&
operator+=(CHAR_TYPE const* rhs);
Append the specified rhs to this string, and return a reference providing modifiable access to this string.
template<class STRING_VIEW_LIKE_TYPE>
basic_string&
operator+=(STRING_VIEW_LIKE_TYPE const& rhs);
Append the specified rhs string to this string, and return a reference providing modifiable access to this string.
template<class ALLOC2>
basic_string&
operator+=(std::basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOC2> const& rhs);
Return Value
reference providing modifiable access to this string
Parameters
Name |
Description |
character |
character value |
rhs |
right‐hand operand |
Created with MrDocs