template<
typename T,
typename Tr = Glib::Container_Helpers::TypeTraits<T>>
class Glib::SListHandler< T, Tr >
A utility for converting between std::vector and GSList.
This would normally only be used by glibmm or gtkmm itself, or similar libraries that wrap C APIs.
For instance:
{
}
A utility for converting between std::vector and GSList.
Definition vectorutils.h:571
static VectorType slist_to_vector(GSList *gslist, Glib::OwnershipType ownership)
@ OWNERSHIP_SHALLOW
Definition containerhandle_shared.h:52
or
Note that usage below is wrong - data() returns a pointer to data owned by a temporary SListKeeper returned by vector_to_slist(), which is destroyed at the end of this instruction. For details, see Glib::SListKeeper.
static GSListKeeperType vector_to_slist(const VectorType &vector)