String as an Array Operators
Operator | Description |
---|---|
operator [] | Returns the character at a specified position — operator substitution for GetAt. |
operator LPCTSTR | Directly accesses characters stored in a CString object as a C-style string. |
Assignment and Concatenation Operators
Operator | Description |
---|---|
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. |
Comparison Operators
Operator | Description |
---|---|
operator == <, etc. | Comparison operators (case sensitive). |
Archive and Dump Operators
Operators | Description |
---|---|
operator << | Inserts a CString object to an archive or dump context. |
operator >> | Extracts a CString object from an archive. |