bsl::basic_stringbuf::seekpos

seekpos overloads

Synopses

Declared in <bslstl_stringbuf.h>

Alters the stream positions.

virtual
pos_type
seekpos(
    pos_type,
    ios_base::openmode = ios_base::in | ios_base::out);
» more...

Set the current stream position.

virtual
basic_stringbuf<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>::pos_type
seekpos(
    pos_type absoluteOffset,
    std::ios_base::openmode modeBitMask = ios_base::in | ios_base::out);
» more...

Return Value

offset of the new position, or pos_type(off_type(-1)) on failure

Parameters

NameDescription
absoluteOffsetabsolute position from the beginning of the stream
modeBitMaskwhether to adjust the input position, output position, or both