## String::operator==(const String\&) const method


Likhetsoperator.

```cpp
bool System::String::operator==(const String &str) const
```


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| str | const String\& | [String](../) att jämföra den aktuella med. |

### ReturnValue

true om båda strängarna är null eller båda inte är null och matchar, false annars.

## Se även

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## String::operator==(std::nullptr_t) const method


Kontrollerar om strängen är null. Använder samma logik som anropet [IsNull()](../isnull/).

```cpp
bool System::String::operator==(std::nullptr_t) const
```


### ReturnValue

true om strängen är null, annars false.

## Se även

* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
