This commit is contained in:
Frank B. Brokken 2022-12-09 13:03:27 +01:00
parent 9bd68c456c
commit 833f63a8cb
2 changed files with 5 additions and 3 deletions

View file

@ -128,7 +128,7 @@ tt(streambuf).
tt(offset), relative to the standard hi(seekdir) tt(ios::seekdir)
values indicating the direction of the seeking operation.)
ithtq(pubseekpos)
(ios::pos_type pubseekpos(ios::pos_type offset,
(ios::pos_type pubseekpos(ios::pos_type pos,
ios::openmode mode = ios::in | ios::out))
(Sets the i(absolute position) of the next character to be read or
written to tt(pos).)
@ -137,3 +137,5 @@ tt(streambuf).
(The tt(streambuf) object is going to use ti(buffer), which may contain
at least tt(n) characters.)
)

View file

@ -103,8 +103,8 @@ two em(types) for equality. The function returns a nonzero value if tt(*this)
precedes tt(rhs) in the hierarchy or collating order of the used types. When a
derived class is compared to its base class the comparison returns 0,
otherwise a non-zero value. E.g.:
verb( cout << typeid(ifstream).before(typeid(istream)) << '\n' << // not 0
typeid(istream).before(typeid(ifstream)) << '\n'; // 0)
verb( cout << typeid(ifstream).before(typeid(istream)) << '\n' << // 0
typeid(istream).before(typeid(ifstream)) << '\n'; // not 0)
With built-in types the implementor may implement that non-0 is returned
when a `wider' type is compared to a `smaller' type and 0 otherwise: