Why is there no g_value_steal_boxed?

The following table shows some functions from GObject.Value.

strings boxed types
dup_string dup_boxed
set_string set_boxed
get_string get_boxed
take_string take_boxed
steal_string

Why is there an empty space in this table where steal_boxed should be?

This function would be useful in Glibmm for reducing pointless copies.

Because nobody’s added it yet. Merge request welcome. :slight_smile:

g_value_steal_string() was only added in 2023.

1 Like

Thank you, that looks very easy. I asked in case there was some technical reason g_value_steal_boxed didn’t exist.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.