15 void *data_ =
nullptr;
44 template<
typename T>
T *
get()
const
47 return static_cast<T *
>(
data_);
52 return type_ !=
nullptr && type_->
is<
T>();
78 const void *data_ =
nullptr;
111 template<
typename T>
const T *
get()
const
114 return static_cast<const T *
>(
data_);
119 return type_ !=
nullptr && type_->
is<
T>();
void destruct(void *ptr) const
void relocate_assign(void *src, void *dst) const
const CPPType * type() const
GMutablePointer(const CPPType *type, void *data=nullptr)
GMutablePointer()=default
GMutablePointer(const CPPType &type, void *data=nullptr)
GPointer(GMutablePointer ptr)
GPointer(const CPPType &type, const void *data=nullptr)
GPointer(const CPPType *type, const void *data=nullptr)
const CPPType * type() const