RefCounted

A template struct to make pointers to ImageMagick structs reference counted. Excepts a predicate pred which destroys the struct pointer when refCount is 0.

struct RefCounted (
alias pred
T
) if (
!is(T == class) &&
is(typeof(pred(cast(T*)null)) == T*)
) {}

Constructors

this
this(T* payload)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Alias This

payload

Members

Properties

refCount
size_t refCount [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

payload
T* payload;
Undocumented in source.

Meta