[#bsl-basic_stringbuf-seekoff-00] = xref:bsl.adoc[bsl]::xref:bsl/basic_stringbuf.adoc[basic_stringbuf]::seekoff :relfileprefix: ../../ :mrdocs: `seekoff` 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/seekoff-04.adoc[seekoff]( off_type, ios_base::seekdir, ios_base::openmode = ios_base::in | ios_base::out); ---- [.small]#xref:bsl/basic_stringbuf/seekoff-04.adoc[_» more..._]# Set the current input and/or output position relative to `whence`. [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/seekoff-07.adoc[seekoff]( xref:bsl/basic_stringbuf/off_type.adoc[off_type] offset, std::ios_base::seekdir whence, std::ios_base::openmode modeBitMask = ios_base::in | ios_base::out); ---- [.small]#xref:bsl/basic_stringbuf/seekoff-07.adoc[_» more..._]# == Return Value offset of the new position, or `pos_type(off_type(‐1))` on failure == Parameters [cols="1,4"] |=== | Name| Description | *offset* | position offset relative to `whence` | *whence* | base position for the seek (`beg`, `cur`, or `end`) | *modeBitMask* | whether to adjust the input position, output position, or both |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#