CFArrayExchangeValuesAtIndices(_:_:_:)
Exchanges the values at two indices of an array.
Declaration
func CFArrayExchangeValuesAtIndices(_ theArray: CFMutableArray!, _ idx1: CFIndex, _ idx2: CFIndex)Parameters
- theArray:
The array that contains the values to be swapped.
- idx1:
The index of the value to swap with the value at
idx2. The index must not exceed the index space oftheArray(0toN-1inclusive, whereNis the count oftheArraybefore the operation). - idx2:
The index of the value to swap with the value at
idx1. The index must not exceed the index space oftheArray(0toN-1inclusive, whereNis the count oftheArraybefore the operation).