[#BloombergLP-bdlsb-OverflowMemOutStreamBuf-seekpos] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlsb.adoc[bdlsb]::xref:BloombergLP/bdlsb/OverflowMemOutStreamBuf.adoc[OverflowMemOutStreamBuf]::seekpos :relfileprefix: ../../../ :mrdocs: Set the position indicator to the specified `position` and return the resulting absolute position on success or pos_type(‐1) on failure. Optionally specify `which` area of the stream buffer. The `seekpos` operation will fail if `which` does not include the flag `bsl::ios_base::out` or if `position` is negative. == Synopsis Declared in `<bdlsb_overflowmemoutstreambuf.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual OverflowMemOutStreamBuf::pos_type seekpos( pos_type position, std::ios_base::openmode which = bsl::ios_base::in | bsl::ios_base::out) override; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#