Circulator c; | |
Circulator c ( Circulator d); |
bool | c = Circulator d | Assignment. |
bool | c == NULL | Test for emptyness. |
bool | c != NULL | Test for non-emptyness. The result is the same as !(c == NULL). |
bool | c == Circulator d | Test for equality: Two circulators are equal if they refer to the same item. |
bool | c != Circulator d | Test for inequality. The result is the same as !(c == d). |
T& | * c |
Returns the value of the circulator. If Circulator is
mutable *c = t is valid.
Precondition: c is dereferencable. |
Circulator& | ++ c |
Prefix increment operation.
Precondition: c is dereferenceable. Postcondition: c is dereferenceable. |
Circulator | c ++ | Postfix increment operation. The result is the same as that of Circulator tmp = c; ++c; return tmp; . |
Circulator& | -- c |
Prefix decrement operation.
Precondition: c is dereferencable. Postcondition: c is dereferenceable. |
Circulator | c -- | Postfix decrement operation. The result is the same as that of Circulator tmp = c; --c; return tmp; . |
Circulator& | c += int n | The result is the same as if the prefix increment operation was applied times, but it is computed in constant time. |
Circulator | c + int n | Same as above, but returns a new circulator. |
Circulator | int n + c | Same as above. |
Circulator& | c -= int n | The result is the same as if the prefix decrement operation was applied times, but it is computed in constant time. |
Circulator | c - int n | Same as above, but returns a new circulator. |
T& | c [ int n] | Returns *(c + n). |
int | c - Circulator d | returns the difference between the two circulators within the interval for a sequence size . The difference for a fixed circulator c (or ) with all other circulators (or c) is a consistent ordering of the elements in the data structure. There has to be a minimal circulator min for which the difference cmin to all other circulators c is non-negative. |
Circulator | c.min_circulator () | Returns the minimal circulator min in constant time. If has a singular value, a singular value is returned. |
There are no comparison operators required.