6#ifndef INKSCAPE_UTIL_GOBJECTPTR_H
7#define INKSCAPE_UTIL_GOBJECTPTR_H
29 explicit operator bool()
const {
return _p; }
A smart pointer that shares ownership of a GObject.
GObjectPtr(T *p, bool add_ref=false)
GObjectPtr & operator=(GObjectPtr const &other)
GObjectPtr(GObjectPtr const &other)
GObjectPtr(GObjectPtr &&other) noexcept
GObjectPtr & operator=(GObjectPtr &&other)
Miscellaneous supporting code.