## String::operator==(const String\&) const method


Equality comparison operator.

```cpp
bool System::String::operator==(const String &str) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| str | const String\& | [String](../) to compare current one to. |

### ReturnValue

true if both strings are null or both are not null and match, false otherwise.

## See Also

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## String::operator==(std::nullptr_t) const method


Checks if string is null. Applies same logic as [IsNull()](../isnull/) call.

```cpp
bool System::String::operator==(std::nullptr_t) const
```


### ReturnValue

true if string is null, false otherwise.

## See Also

* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
