Removes the item pointed to by
iter. It is an error to pass the
end iterator to this function.
If the sequence has a data destroy function associated with it, this function is called on the data for the removed item.
Available since: 2.14
The data is owned by the caller of the function.