---
title: "CFBitVectorGetBitAtIndex(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfbitvectorgetbitatindex(_:_:)"
---

# CFBitVectorGetBitAtIndex(_:_:)

Returns the bit value at a given index in a bit vector.

## Declaration

```swift
func CFBitVectorGetBitAtIndex(_ bv: CFBitVector!, _ idx: CFIndex) -> CFBit
```

## Parameters

- `bv`: The bit vector to examine.
- `idx`: The index of the bit value in bv to return.

## Return Value

Return Value The bit value at index idx in bv.

## See Also

### Getting Information About a Bit Vector

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