GLib.PtrArray.remove_fast
Description: Reference for GLib.PtrArray.remove_fast

### Function

# GLib PtrArrayremove_fast

#### Declaration [src]

    gboolean
    g_ptr_array_remove_fast (
      GPtrArray* array,
      gpointer data
    )

#### Description [src]

Removes the first occurrence of the given pointer from the pointer array. The last element in the array is used to fill in the space, so this function does not preserve the order of the array. But it is faster than `g_ptr_array_remove()`. If `array` has a non-`NULL` `GDestroyNotify` function it is called for the removed element.

It returns true if the pointer was removed, or false if the pointer was not found.

This function is not directly available to language bindings.

#### Parameters

`array`

  Type: An array of `gpointer`

  A pointer array.

  The data is owned by the caller of the function.

`data`

  Type: `gpointer`

  The pointer to remove.

  The argument can be `NULL`.
  The data is owned by the caller of the function.

#### Return value

Type: `gboolean`

True if the pointer is found and removed; false otherwise.