namespace std { template <class stateT> class fpos { public: // [fpos.members], members stateT state() const; void state(stateT); private; stateT st; // exposition only }; }
Expression | Return type | Operational | Assertion/note |
semantics | pre-/post-condition | ||
P(i) | |||
P p(i); P p = i; | |||
P(o) | fpos | converts from offset | |
O(p) | streamoff | converts to offset | P(O(p)) == p |
p == q | convertible to bool | == is an equivalence relation | |
p != q | convertible to bool | !(p == q) | |
q = p + o p += o | fpos | + offset | q - o == p |
q = p - o p -= o | fpos | - offset | q + o == p |
o = p - q | streamoff | distance | q + o == p |
streamsize(o) O(sz) | streamsize streamoff | converts converts | streamsize(O(sz)) == sz streamsize(O(sz)) == sz |