---
title: "CFSetGetValues(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfsetgetvalues(_:_:)"
---

# CFSetGetValues(_:_:)

Obtains all values in a set.

## Declaration

```swift
func CFSetGetValues(_ theSet: CFSet!, _ values: UnsafeMutablePointer<UnsafeRawPointer?>!)
```

## Parameters

- `theSet`: The set to examine.
- `values`: A C array of pointer-sized values to be filled with values from theSet. The value must be a valid C array of the appropriate type and of a size at least equal to the count of theSet). If the values are Core Foundation objects, ownership follows the https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html#//apple_ref/doc/uid/20001148-103029.

## See Also

### Examining a Set

- [CFSetContainsValue(_:_:)](corefoundation/cfsetcontainsvalue(_:_:).md)
- [CFSetGetCount(_:)](corefoundation/cfsetgetcount(_:).md)
- [CFSetGetCountOfValue(_:_:)](corefoundation/cfsetgetcountofvalue(_:_:).md)
- [CFSetGetValue(_:_:)](corefoundation/cfsetgetvalue(_:_:).md)
- [CFSetGetValueIfPresent(_:_:_:)](corefoundation/cfsetgetvalueifpresent(_:_:_:).md)
