gListToD

fnT[] gListToD(T, GidOwnership ownership = GidOwnership.None)(GList * list) if (containerTypeIsSupported!T)

Convert a GLib GList to a D array.

Parameters

TThe type of elements in the list
ownershipThe ownership of the GList, None (default): do nothing with it, Container: free list only, Full: free list and items
listThe list

Returns

D array of the given type