---
title: "CFBitVectorFlipBits(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfbitvectorflipbits(_:_:)"
---

# CFBitVectorFlipBits(_:_:)

Flips a range of bit values in a bit vector.

## Declaration

```swift
func CFBitVectorFlipBits(_ bv: CFMutableBitVector!, _ range: CFRange)
```

## Parameters

- `bv`: The bit vector to modify.
- `range`: The range of bit values in bv to flip. The range must not exceed 0…N-1, where N is the count of the vector.

## See Also

### Related Documentation

- [CFBitVectorGetCount(_:)](corefoundation/cfbitvectorgetcount(_:).md)

### Modifying a Bit Vector

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