Qore Programming Language
0.8.7
|
manages a reference count of a pointer to a class that takes a simple "deref()" call with no arguments More...
#include <ReferenceHolder.h>
manages a reference count of a pointer to a class that takes a simple "deref()" call with no arguments
SimpleRefHolder<QoreStringNode> str(new QoreStringNode(QCS_UTF8)); QoreString::concatUnicode() can raise a Qore-language exception if the code is invalid str->concatUnicode(code, xsink); return *xsink ? str.release() : 0;