[#bsl-basic_stringbuf-seekpos-05] = xref:bsl.adoc[bsl]::xref:bsl/basic_stringbuf.adoc[basic_stringbuf]::seekpos :relfileprefix: ../../ :mrdocs: `seekpos` overloads == Synopses Declared in `<bslstl_stringbuf.h>` Alters the stream positions. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual pos_type xref:bsl/basic_stringbuf/seekpos-04.adoc[seekpos]( pos_type, ios_base::openmode = ios_base::in | ios_base::out); ---- [.small]#xref:bsl/basic_stringbuf/seekpos-04.adoc[_» more..._]# Set the current input position or the current output position (or both) to the specified `absoluteOffset` from the beginning of the stream. Optionally specify a `modeBitMask` indicating whether to set the current input position, current output position, or both. Return the offset of the new position on success, and `pos_type(off_type(‐1))` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual xref:bsl/basic_stringbuf/pos_type.adoc[basic_stringbuf<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>::pos_type] xref:bsl/basic_stringbuf/seekpos-00.adoc[seekpos]( xref:bsl/basic_stringbuf/pos_type.adoc[pos_type] absoluteOffset, std::ios_base::openmode modeBitMask = ios_base::in | ios_base::out); ---- [.small]#xref:bsl/basic_stringbuf/seekpos-00.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#