knowL: Knowledge Libraries
|
#include <AnnotatedPointer.h>
Add annotation to a pointer.
Example of use:
The following create a new type of annotation to a pointer, which is a bool with a default true value. The intent is that if the annotation is true the pointer ownership is transfer to the called function.
This annotation can be used like this:
And then a new instance can be created: