---
title: "CFBitVectorCreateCopy(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfbitvectorcreatecopy(_:_:)"
---

# CFBitVectorCreateCopy(_:_:)

Creates an immutable bit vector that is a copy of another bit vector.

## Declaration

```swift
func CFBitVectorCreateCopy(_ allocator: CFAllocator!, _ bv: CFBitVector!) -> CFBitVector!
```

## Parameters

- `allocator`: The allocator to use to allocate memory for the new bit vector. Pass NULL or kCFAllocatorDefault to use the current default allocator.
- `bv`: The bit vector to copy.

## Return Value

Return Value A new bit vector holding the same bit values as bv. Ownership follows the The Create Rule.

## See Also

### Creating a Bit Vector

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