---
title: member
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/osset/member
---

# member

Checks the set for the presence of an object.

## Declaration

```occ
bool member(const OSMetaClassBase *anObject) const;
```

## Parameters

- `anObject`: The OSMetaClassBase-derived object to check for in the set.

## Return Value

Return Value true if anObject is present within the set, false otherwise.

## Discussion

Discussion Pointer equality is used. This function returns false if passed NULL. containsObject checks for NULL first, and is therefore more efficient than this function.
