FreeBSD Manual Pages
std::basic_...buf::seekpos(3) C++ Standard Libarystd::basic_...buf::seekpos(3) NAME std::basic_spanbuf::seekpos - std::basic_spanbuf::seekpos Synopsis protected: pos_type seekpos( pos_type sp, std::ios_base::openmode which = (since C++23) std::ios_base::in | std::ios_base::out ) override; Repositions the next pointer to the get and/or put area, if possi- ble, to the position indicated by sp. Equivalent to return seekoff(off_type(sp), std::ios_base::beg, which);. Parameters sp - stream position, such as one obtained by seekoff() or seek- pos() defines whether the input sequences, the output sequence, or both are affected. It can be one or a combination of the following constants: which - Constant Explanation in affect the input sequence out affect the output sequence Return value sp on success or pos_type(off_type(-1)) on failure. Notes seekpos() is called by std::basic_streambuf::pubseekpos(), which is called by the single-argument versions of std::basic_istream::seekg() and std::basic_ostream::seekp(). Example This section is incomplete Reason: no example See also pubseekpos invokes seekpos() (public member function of std::basic_stream- buf<CharT,Traits>) repositions the next pointer in the input sequence, out- put sequence, or seekpos both using absolute addressing [virtual] (virtual protected member function of std::basic_stringbuf<CharT,Traits,Allocator>) seekpos repositions the next pointer in the input sequence, out- put sequence, or [virtual] both using absolute addressing (virtual protected member function of std::strstreambuf) Category: * Todo no example http://cppreference.com 2024.06.10 std::basic_...buf::seekpos(3)
NAME | Synopsis | Parameters | Return value | Notes | Example | See also | Category:
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::basic_spanbuf::seekpos&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>
