Example: Remove index, fast
public static int main (string[] args) {
PtrArray array = new PtrArray ();
string xxx = "XXXX";
array.add ("first entry");
array.add ("second entry");
array.add (xxx);
array.add ("third entry");
array.add ("fourth entry");
array.remove_index_fast (2);
// Output:
// ``first entry``
// ``second entry``
// ``fourth entry``
// ``third entry``
array.foreach ((ptr) => {
print ("%s\n", (string) ptr);
});
return 0;
}
valac --pkg glib-2.0 GLib.PtrArray.remove_index_fast.vala
See:
GLib.PtrArray.remove_index_fast