---
title: "isEqualTo(const OSSymbol *)"
framework: kernel
role: pseudoSymbol
path: kernel/ossymbol/1808114-isequalto
---

# isEqualTo(const OSSymbol *)

Tests the equality of two OSSymbol objects.

## Declaration

```occ
virtual bool isEqualTo(
 const OSSymbol *aSymbol) const; 
```

## Parameters

- `aSymbol`: The OSSymbol object being compared against the receiver.

## Return Value

Return Value true if the two OSSymbol objects are equivalent, false otherwise.

## Overview

Overview Two OSSymbol objects are considered equal if they have the same address; that is, this function is equivalent to the == operator.

## See Also

### Miscellaneous

- [free](kernel/ossymbol/1808021-free.md)
- [initWithCString](kernel/ossymbol/1808026-initwithcstring.md)
- [initWithCStringNoCopy](kernel/ossymbol/1808036-initwithcstringnocopy.md)
- [initWithString](kernel/ossymbol/1808054-initwithstring.md)
- [isEqualTo](kernel/ossymbol/1808078-isequalto.md)
- [isEqualTo(const char *)](kernel/ossymbol/1808093-isequalto.md)
- [taggedRelease(const void *)](kernel/ossymbol/1808137-taggedrelease.md)
- [taggedRelease(const void *, const int)](kernel/ossymbol/1808154-taggedrelease.md)
- [withCString](kernel/ossymbol/1808171-withcstring.md)
- [withCStringNoCopy](kernel/ossymbol/1808179-withcstringnocopy.md)
- [withString](kernel/ossymbol/1808192-withstring.md)
