ProblematicType

A deliberately problematic type for lifetime, constness etc.

Use to test containers like so:

int refs;
int* refsPtr = () @trusted { return &refs; }();
... do things with ProblematicType(refsPtr) ...
assert(refs == 0);

Constructors

this
this()
Undocumented in source.
this
this(int* refs)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

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

Members

Functions

opAssign
void opAssign(ProblematicType )
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

i
int[] i;
Undocumented in source.
properlyInitialized
bool properlyInitialized;
Undocumented in source.
refs
int* refs;
Undocumented in source.
st
SysTime st;
Undocumented in source.

Meta