| description | Learn more about: _bstr_t::operator +=, _bstr_t::operator + | ||
|---|---|---|---|
| title | _bstr_t::operator +=, _bstr_t::operator + | ||
| ms.date | 02/02/2021 | ||
| f1_keywords |
|
||
| helpviewer_keywords |
|
Microsoft Specific
Appends characters to the end of the _bstr_t object, or concatenates two strings.
_bstr_t& operator+=( const _bstr_t& s1 );
_bstr_t operator+( const _bstr_t& s1 );
friend _bstr_t operator+( const char* s2, const _bstr_t& s1);
friend _bstr_t operator+( const wchar_t* s3, const _bstr_t& s1);s1
A _bstr_t object.
s2
A multibyte string.
s3
A Unicode string.
These operators perform string concatenation:
-
operator+=( s1 )Appends the characters in the encapsulatedBSTRofs1to the end of this object's encapsulatedBSTR. -
operator+( s1 )Returns the new_bstr_tthat's formed by concatenating this object'sBSTRand the one ins1. -
operator+( s2, s1 )Returns a new_bstr_tthat's formed by concatenating a multibyte strings2, converted to Unicode, and theBSTRencapsulated ins1. -
operator+( s3, s1 )Returns a new_bstr_tthat's formed by concatenating a Unicode strings3and theBSTRencapsulated ins1.
END Microsoft Specific