---
title: CFBitVector
framework: corefoundation
role: symbol
role_heading: Class
path: corefoundation/cfbitvector
---

# CFBitVector

## Declaration

```swift
class CFBitVector
```

## Overview

Overview CFBitVector and its derived mutable type, CFMutableBitVector, manage ordered collections of bit values, which are either 0 or 1. CFBitVector creates static bit vectors and CFMutableBitVector creates dynamic bit vectors.

## Topics

### Creating a Bit Vector

- [CFBitVectorCreate(_:_:_:)](corefoundation/cfbitvectorcreate(_:_:_:).md)
- [CFBitVectorCreateCopy(_:_:)](corefoundation/cfbitvectorcreatecopy(_:_:).md)

### Getting Information About a Bit Vector

- [CFBitVectorContainsBit(_:_:_:)](corefoundation/cfbitvectorcontainsbit(_:_:_:).md)
- [CFBitVectorGetBitAtIndex(_:_:)](corefoundation/cfbitvectorgetbitatindex(_:_:).md)
- [CFBitVectorGetBits(_:_:_:)](corefoundation/cfbitvectorgetbits(_:_:_:).md)
- [CFBitVectorGetCount(_:)](corefoundation/cfbitvectorgetcount(_:).md)
- [CFBitVectorGetCountOfBit(_:_:_:)](corefoundation/cfbitvectorgetcountofbit(_:_:_:).md)
- [CFBitVectorGetFirstIndexOfBit(_:_:_:)](corefoundation/cfbitvectorgetfirstindexofbit(_:_:_:).md)
- [CFBitVectorGetLastIndexOfBit(_:_:_:)](corefoundation/cfbitvectorgetlastindexofbit(_:_:_:).md)

### Getting the CFBitVector Type ID

- [CFBitVectorGetTypeID()](corefoundation/cfbitvectorgettypeid().md)

### Data Types

- [CFBit](corefoundation/cfbit.md)

## Relationships

### Inherited By

- [CFMutableBitVector](corefoundation/cfmutablebitvector.md)

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)

## See Also

### Related Documentation

- [Collections Programming Topics for Core Foundation](apple-archive/documentation/CoreFoundation/Conceptual/CFCollections.md)

### Opaque Types

- [CFAllocator](corefoundation/cfallocator.md)
- [CFArray](corefoundation/cfarray.md)
- [CFAttributedString](corefoundation/cfattributedstring.md)
- [CFBag](corefoundation/cfbag.md)
- [CFBinaryHeap](corefoundation/cfbinaryheap.md)
- [CFBoolean](corefoundation/cfboolean.md)
- [CFBundle](corefoundation/cfbundle.md)
- [CFCalendar](corefoundation/cfcalendar.md)
- [CFCharacterSet](corefoundation/cfcharacterset.md)
- [CFData](corefoundation/cfdata.md)
- [CFDate](corefoundation/cfdate.md)
- [CFDateFormatter](corefoundation/cfdateformatter.md)
- [CFDictionary](corefoundation/cfdictionary.md)
- [CFError](corefoundation/cferror.md)
- [CFFileDescriptor](corefoundation/cffiledescriptor.md)
