---
title: "System::Buffers::ReadOnlySequence::Equals method"
url: "https://reference.aspose.com/pdf/cpp/system.buffers/readonlysequence/equals/"
product: "Aspose.PDF for C++ API Reference"
description: "System::Buffers::ReadOnlySequence::Equals method. Determines whether the current sequence references the same range as the specified sequence in C++."
---

## ReadOnlySequence::Equals method


Determines whether the current sequence references the same range as the specified sequence.

```cpp
bool System::Buffers::ReadOnlySequence<T>::Equals(const ReadOnlySequence &other) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| other | const ReadOnlySequence\& | The sequence to compare with the current one. |

### ReturnValue

True if both sequences represent the same start/end positions; otherwise, false.

## See Also

* Class [ReadOnlySequence](../)
* Namespace [System::Buffers](../../)
* Library [Aspose.PDF for C++](../../../)
