void ref() const
Increases the number of weak references.
bool was_deleted() const
Returns true if the object represented has been deleted, ie.
static void inc(Integer &var)
Atomically increments the indicated variable.
static bool dec(Integer &var)
Atomically decrements the indicated variable and returns true if the new value is nonzero,...
static Integer get(const Integer &var)
Atomically retrieves the snapshot value of the indicated variable.
bool unref() const
Decreases the number of weak references.