---
title: "==(_:_:)"
framework: combine
role: symbol
role_heading: Operator
path: "combine/anycancellable/==(_:_:)"
---

# ==(_:_:)

Returns a Boolean value that indicates whether two instances are equal, as determined by comparing whether their references point to the same instance.

## Declaration

```swift
static func == (lhs: AnyCancellable, rhs: AnyCancellable) -> Bool
```

## Parameters

- `lhs`: An AnyCancellable instance to compare.
- `rhs`: Another AnyCancellable instance to compare.

## Return Value

Return Value A Boolean value that indicates whether two instances are equal, as determined by comparing whether their references point to the same instance.
