ListSG.copyDeep

Makes a full (deep) copy of a GSList. In contrast with g_slist_copy(), this function uses func to make a copy of each list element, in addition to copying the list container itself. func, as a GCopyFunc, takes two arguments, the data to be copied and a user pointer. It's safe to pass NULL as user_data, if the copy function takes only one argument. Since 2.34

class ListSG
copyDeep

Parameters

func GCopyFunc

a copy function used to copy every element in the list

userData void*

user data passed to the copy function func, or NULL

Return Value

Type: ListSG

a full copy of list, use g_slist_free_full to free it

Meta