std::basic_spanbuf<CharT,Traits>::seekpos
From cppreference.com
 
 
 < cpp | io | basic spanbuf 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
Input/output library 
 
 
 
 
 
 
 
 
 
 
 
 
 Print functions (C++23)
 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)
std::basic_spanbuf 
 
 
 
 
 
 
 
 
 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:
 
 (since C++23) 
pos_type seekpos( pos_type sp, std::ios_base::openmode which =
Repositions the next pointer to the get and/or put area, if possible, to the position indicated by sp.
Equivalent to return seekoff(off_type(sp), std::ios_base::beg, which);.
Contents
[edit] Parameters
 sp
 -
 stream position, such as one obtained by seekoff() or 
seekpos()
 which
 -
 defines whether the input sequences, the output sequence, or both are affected. It can be one or a combination of the following constants:
 Constant
 Explanation
 in
 affect the input sequence
 out
 affect the output sequence
[edit] Return value
sp on success or pos_type(off_type(-1)) on failure.
[edit] 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() .
[edit] Example
 This section is incomplete
Reason: no example
Reason: no example
[edit] See also
[virtual]
(virtual protected member function of
std::basic_stringbuf<CharT,Traits,Allocator>) [edit]