---
title: CFMutableBitVector
framework: corefoundation
role: symbol
role_heading: Class
path: corefoundation/cfmutablebitvector
---

# CFMutableBitVector

## Declaration

```swift
class CFMutableBitVector
```

## Overview

Overview CFMutableBitVector objects manage dynamic bit vectors. The basic interface for managing bit vectors is provided by CFBitVector. CFMutableBitVector adds functions to modify the contents of a bit vector. You create a mutable bit vector object using either the CFBitVectorCreateMutable(_:_:) or CFBitVectorCreateMutableCopy(_:_:_:) function. You add to and remove from a bit vector by altering the size of the bit vector with the CFBitVectorSetCount(_:_:) function

## Topics

### Creating a CFMutableBitVector Object

- [CFBitVectorCreateMutable(_:_:)](corefoundation/cfbitvectorcreatemutable(_:_:).md)
- [CFBitVectorCreateMutableCopy(_:_:_:)](corefoundation/cfbitvectorcreatemutablecopy(_:_:_:).md)

### Modifying a Bit Vector

- [CFBitVectorFlipBitAtIndex(_:_:)](corefoundation/cfbitvectorflipbitatindex(_:_:).md)
- [CFBitVectorFlipBits(_:_:)](corefoundation/cfbitvectorflipbits(_:_:).md)
- [CFBitVectorSetAllBits(_:_:)](corefoundation/cfbitvectorsetallbits(_:_:).md)
- [CFBitVectorSetBitAtIndex(_:_:_:)](corefoundation/cfbitvectorsetbitatindex(_:_:_:).md)
- [CFBitVectorSetBits(_:_:_:)](corefoundation/cfbitvectorsetbits(_:_:_:).md)
- [CFBitVectorSetCount(_:_:)](corefoundation/cfbitvectorsetcount(_:_:).md)

## Relationships

### Inherits From

- [CFBitVector](corefoundation/cfbitvector.md)

### Conforms To

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

## See Also

### Opaque Types

- [CFAllocator](corefoundation/cfallocator.md)
- [CFArray](corefoundation/cfarray.md)
- [CFAttributedString](corefoundation/cfattributedstring.md)
- [CFBag](corefoundation/cfbag.md)
- [CFBinaryHeap](corefoundation/cfbinaryheap.md)
- [CFBitVector](corefoundation/cfbitvector.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)
