Repositions the file pointer, if possible, to the position indicated by
If the associated file is not open (is_open()==false), fails immediately.
If the file is open for writing, first writes the put area and any unshift sequences required by the currently imbued locale, using overflow()
Then repositions the file pointer, as by calling std::fseek()
If the file is open for reading, updates the get area if necessary.
sp was not obtained by calling seekoff() or
seekpos() on the same file, the behavior is undefined.
|sp||-|| file position obtained by seekoff() or |
|which||-|| defines which of the input and/or output sequences to affect. It can be one or a combination of the following constants:
sp on success or pos_type(off_type(-1)) on failure.
|This section is incomplete|
Reason: no example
| invokes seekpos() |
(public member function of
| repositions the file position, using relative addressing |
(virtual protected member function)
| moves the file position indicator to a specific location in a file |