bsl::basic_stringbuf::seekoff

seekoff overloads

Synopses

Declared in <bslstl_stringbuf.h>

Alters the stream positions.

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

Set the current input and/or output position relative to whence.

virtual
basic_stringbuf<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>::pos_type
seekoff(
    off_type offset,
    std::ios_base::seekdir whence,
    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
offsetposition offset relative to whence
whencebase position for the seek (beg, cur, or end)
modeBitMaskwhether to adjust the input position, output position, or both