Instance Method


Replaces the pointer at a given index.


func replacePointer(at index: Int, withPointer item: UnsafeMutableRawPointer?)



The index of an element in the receiver. This value must be less than the count of the receiver.


The item with which to replace the element at index. This value may be NULL.

See Also

Managing the Collection

var count: Int

The number of elements in the receiver.

var allObjects: [Any]

All the objects in the receiver.

func pointer(at: Int) -> UnsafeMutableRawPointer?

Returns the pointer at a given index.

func addPointer(UnsafeMutableRawPointer?)

Adds a given pointer to the receiver.

func removePointer(at: Int)

Removes the pointer at a given index.

func compact()

Removes NULL values from the receiver.