CString Operators
| The String as an Array |
| operator [] |
Returns the character at a given position — operator substitution for GetAt. |
| operator LPCTSTR |
Directly accesses characters stored in a CString object as a C-style string. |
| Assignment/Concatenation |
| operator = |
Assigns a new value to a CString object. |
| operator + |
Concatenates two strings and returns a new string. |
| operator += |
Concatenates a new string to the end of an existing string. |
| Archive/Dump |
| operator << |
Inserts a CString object to an archive or dump context. |
| operator >> |
Extracts a CString object from an archive. |
See Also
CString Overview, CString Member Functions, Simple Value Types