template<typename T, typename Tr = Glib::Container_Helpers::TypeTraits<T>>
class Glib::ListHandler< T, Tr >
A utility for converting between std::vector and GList.
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 GList.
Definition vectorutils.h:530
static VectorType list_to_vector(GList *glist, Glib::OwnershipType ownership)
@ OWNERSHIP_SHALLOW
Definition containerhandle_shared.h:52
or
{
}
constexpr auto data(_Container &__cont) noexcept(noexcept(__cont.data())) -> decltype(__cont.data())
static GListKeeperType vector_to_list(const VectorType &vector)
RefPtr<> is a reference-counting shared smartpointer.
Definition refptr.h:52
Note that usage below is wrong - data() returns a pointer to data owned by a temporary ListKeeper returned by vector_to_list(), which is destroyed at the end of this instruction. For details, see Glib::ListKeeper.