<!--
{
  "availability" : [
    "DriverKit: -",
    "iOS: -",
    "iPadOS: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DriverKit",
  "identifier" : "/documentation/DriverKit/OSSet/member",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "DriverKit"
    ],
    "preciseIdentifier" : "c:@S@OSSet@F@member#*1$@S@OSMetaClassBase#1"
  },
  "title" : "member"
}
-->

# member

Checks the set for the presence of an object.

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

## Parameters

`anObject`

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

## Return Value

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

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)