[#BloombergLP-bdlsb-OverflowMemOutput-pubseekpos] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlsb.adoc[bdlsb]::xref:BloombergLP/bdlsb/OverflowMemOutput.adoc[OverflowMemOutput]::pubseekpos :relfileprefix: ../../../ :mrdocs: Set the position indicator to the specified absolute position. == Synopsis Declared in `<bdlsb_overflowmemoutput.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlsb/OverflowMemOutput/pos_type.adoc[OverflowMemOutput::pos_type] pubseekpos( xref:BloombergLP/bdlsb/OverflowMemOutput/pos_type.adoc[pos_type] position, std::ios_base::openmode which = bsl::ios_base::out); ---- == Description 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 less then zero. == Return Value resulting absolute position, or `pos_type(‐1)` on failure == Parameters [cols="1,4"] |=== | Name| Description | *position* | absolute position to seek to | *which* | stream buffer area; must include `bsl::ios_base::out` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#