libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ operator=() [7/10]

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string & std::basic_string< _CharT, _Traits, _Alloc >::operator= ( const basic_string< _CharT, _Traits, _Alloc > & __str)
inlineconstexpr

Assign the value of str to this string.

Parameters
__strSource string.

Definition at line 928 of file basic_string.h.

929 {
930 return this->assign(__str);
931 }
constexpr basic_string & assign(const basic_string &__str)
Set value to contents of another string.
Managing sequences of characters and character-like objects.