| glibmm
    2.38.0
    | 
A utility for converting between std::vector and GSList. More...
#include <glibmm/vectorutils.h>
| Public Types | |
| typedef Tr::CType | CType | 
| typedef T | CppType | 
| typedef std::vector< CppType > | VectorType | 
| typedef Glib::Container_Helpers::GSListKeeper < Tr > | GSListKeeperType | 
| typedef Glib::Container_Helpers::SListIterator < Tr > | SListIteratorType | 
| 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.
| typedef T Glib::SListHandler< T, Tr >::CppType | 
| typedef Tr::CType Glib::SListHandler< T, Tr >::CType | 
| typedef Glib::Container_Helpers::GSListKeeper<Tr> Glib::SListHandler< T, Tr >::GSListKeeperType | 
| typedef Glib::Container_Helpers::SListIterator<Tr> Glib::SListHandler< T, Tr >::SListIteratorType | 
| typedef std::vector<CppType> Glib::SListHandler< T, Tr >::VectorType | 
| 
 | static | 
| 
 | static | 
 1.8.3.1
 1.8.3.1