---
title: "CFBitVectorContainsBit(_:_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfbitvectorcontainsbit(_:_:_:)"
---

# CFBitVectorContainsBit(_:_:_:)

Returns whether a bit vector contains a particular bit value.

## Declaration

```swift
func CFBitVectorContainsBit(_ bv: CFBitVector!, _ range: CFRange, _ value: CFBit) -> Bool
```

## Parameters

- `bv`: The bit vector to search.
- `range`: The range of bits in bv to search.
- `value`: The bit value for which to search.

## Return Value

Return Value true if the specified range of bits in bv contains value, otherwise false.

## See Also

### Getting Information About a Bit Vector

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