| glibmm
    2.54.1
    | 
A utility for converting between std::vector and GList. More...
#include <glibmm/vectorutils.h>
| Public Types | |
| using | CType = typename Tr::CType | 
| using | CppType = T | 
| using | VectorType = std::vector< CppType > | 
| using | GListKeeperType = typename Glib::Container_Helpers::GListKeeper< Tr > | 
| using | ListIteratorType = typename Glib::Container_Helpers::ListIterator< Tr > | 
| Static Public Member Functions | |
| static VectorType | list_to_vector (GList* glist, Glib::OwnershipType ownership) | 
| static GListKeeperType | vector_to_list (const VectorType& vector) | 
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:
or
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.
| using Glib::ListHandler< T, Tr >::CppType = T | 
| using Glib::ListHandler< T, Tr >::CType = typename Tr::CType | 
| using Glib::ListHandler< T, Tr >::GListKeeperType = typename Glib::Container_Helpers::GListKeeper<Tr> | 
| using Glib::ListHandler< T, Tr >::ListIteratorType = typename Glib::Container_Helpers::ListIterator<Tr> | 
| using Glib::ListHandler< T, Tr >::VectorType = std::vector<CppType> | 
| 
 | static | 
| 
 | static | 
 1.8.13
 1.8.13