RcPtr.opUnary

Operator *, same as method 'get'.

struct RcPtr
static if(!isWeak)
template opUnary (
string op : "*"
) if (
op == "*"
) {}

Members

Aliases

opUnary
alias opUnary = get
Undocumented in source.

Examples

RcPtr!long x = RcPtr!long.make(123);
assert(*x == 123);
(*x = 321);
assert(*x == 321);
const y = x;
assert(*y == 321);
assert(*x == 321);
static assert(is(typeof(*y) == const long));

Meta