| glibmm
    2.64.2
    | 
A utility for converting between std::vector and GSList. More...
#include <glibmm/vectorutils.h>
| Public Types | |
| using | CType = typename Tr::CType | 
| using | CppType = T | 
| using | VectorType = std::vector< CppType > | 
| using | GSListKeeperType = typename Glib::Container_Helpers::GSListKeeper< Tr > | 
| using | SListIteratorType = typename Glib::Container_Helpers::SListIterator< Tr > | 
| Static Public Member Functions | |
| static VectorType | slist_to_vector (GSList* gslist, Glib::OwnershipType ownership) | 
| static GSListKeeperType | vector_to_slist (const VectorType& vector) | 
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:
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.
| using Glib::SListHandler< T, Tr >::CppType = T | 
| using Glib::SListHandler< T, Tr >::CType = typename Tr::CType | 
| using Glib::SListHandler< T, Tr >::GSListKeeperType = typename Glib::Container_Helpers::GSListKeeper<Tr> | 
| using Glib::SListHandler< T, Tr >::SListIteratorType = typename Glib::Container_Helpers::SListIterator<Tr> | 
| using Glib::SListHandler< T, Tr >::VectorType = std::vector<CppType> | 
| 
 | static | 
| 
 | static | 
 1.8.17
 1.8.17