template<typename Tr>
class Glib::Container_Helpers::GSListKeeper< Tr >
A keeper class for GSList.
Primarily used by C++ wrappers like gtkmm.
Its main purpose is to free its data when they are not needed. What will be destroyed depends on passed ownership upon construction.
The most common usage of Glib::GSListKeeper is getting its data when converting std::vector to a GSList*:
{
}
GSList * data() const
Gets data the keeper holds.
A utility for converting between std::vector and GSList.
Definition: vectorutils.h:571
Variables of this class are seldom defined directly - it is mostly used as a temporary variable returned by Glib::SListHandler::vector_to_slist().
Note that the usage above is correct with regards to C++ standard point 12.2.3. That means that data returned by data() method is valid through whole g_temp_do_something function and is destroyed, when this function returns.