| I/O manipulators | ||||
| Print functions(C++23) | ||||
| C-style I/O | ||||
| Buffers | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++20) | ||||
| Streams | ||||
| Abstractions | ||||
| File I/O | ||||
| String I/O | ||||
| Array I/O | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
| Synchronized Output | ||||
(C++20) | ||||
| Types | ||||
| Error category interface | ||||
(C++11) | ||||
(C++11) |
| Public member functions | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
| Protected member functions | ||||
(C++23) | ||||
(C++23) | ||||
basic_spanbuf::seekpos (C++23) | ||||
| Non-member functions | ||||
(C++23) |
protected: pos_type seekpos( pos_type sp,std::ios_base::openmode which= | (since C++23) | |
Repositions the next pointer to the get and/or put area, if possible, to the position indicated bysp.
Equivalent toreturn seekoff(off_type(sp),std::ios_base::beg, which);.
Contents |
| sp | - | stream position, such as one obtained byseekoff() orseekpos() | ||||||
| which | - | defines whether the input sequences, the output sequence, or both are affected. It can be one or a combination of the following constants:
|
sp on success orpos_type(off_type(-1)) on failure.
seekpos() is called bystd::basic_streambuf::pubseekpos(), which is called by the single-argument versions ofstd::basic_istream::seekg() andstd::basic_ostream::seekp().
| This section is incomplete Reason: no example |
| invokesseekpos() (public member function of std::basic_streambuf<CharT,Traits>)[edit] | |
[virtual] | repositions the next pointer in the input sequence, output sequence, or both using absolute addressing (virtual protected member function of std::basic_stringbuf<CharT,Traits,Allocator>)[edit] |
[virtual] | repositions the next pointer in the input sequence, output sequence, or both using absolute addressing (virtual protected member function of std::strstreambuf)[edit] |