glibmm 2.80.0
Public Types | Static Public Member Functions | List of all members
Glib::Container_Helpers::TypeTraits< T > Struct Template Reference

Generic TypeTraits implementation. More...

#include <glibmm/containerhandle_shared.h>

Public Types

using CppType = T
 
using CType = T
 
using CTypeNonConst = T
 

Static Public Member Functions

static CType to_c_type (const CppType & item)
 
static CppType to_cpp_type (const CType & item)
 
static void release_c_type (const CType &)
 

Detailed Description

template<class T>
struct Glib::Container_Helpers::TypeTraits< T >

Generic TypeTraits implementation.

This can be used if the C++ type is the same as the C type, or if implicit conversions between the types are available. Also, the types are required to implement copy-by-value semantics. (Ownership is just ignored.)

Member Typedef Documentation

◆ CppType

template <class T >
using Glib::Container_Helpers::TypeTraits< T >::CppType = T

◆ CType

template <class T >
using Glib::Container_Helpers::TypeTraits< T >::CType = T

◆ CTypeNonConst

template <class T >
using Glib::Container_Helpers::TypeTraits< T >::CTypeNonConst = T

Member Function Documentation

◆ release_c_type()

template <class T >
static void Glib::Container_Helpers::TypeTraits< T >::release_c_type ( const CType )
inlinestatic

◆ to_c_type()

template <class T >
static CType Glib::Container_Helpers::TypeTraits< T >::to_c_type ( const CppType item)
inlinestatic

◆ to_cpp_type()

template <class T >
static CppType Glib::Container_Helpers::TypeTraits< T >::to_cpp_type ( const CType item)
inlinestatic