---
title: "Aspose::Email::PersonalInfo::PhoneNumber::operator== method"
url: "https://reference.aspose.com/email/cpp/aspose.email.personalinfo/phonenumber/operator/"
product: "Aspose.Email for C++"
description: "Determines whether the specified objects are equal."
---


## operator== {#operator}

Determines whether the specified objects are equal.

**Returns:** Returns true if objects are equal, otherwise false.

```cpp
bool operator==(System::SharedPtr < PhoneNumber > a, System::SharedPtr < PhoneNumber > b)
```

| Parameter | Description |
| --- | --- |
| a | First object to compare |
| b | Second object to compare |

