Share via


fpos::fpos

Create an object that contains information about a position (offset) in a stream.

fpos( 
   streamoff _Off=0 
); 
fpos( 
   Statetype _State, 
   fpos_t _Filepos 
);

Parameters

  • _Off
    The offset into the stream.

  • _State
    The starting state of the fpos object.

  • _Filepos
    The offset into the stream.

Remarks

The first constructor stores the offset _Off, relative to the beginning of file and in the initial conversion state (if that matters). If _Off is -1, the resulting object represents an invalid stream position.

The second constructor stores a zero offset and the object _State.

Requirements

Header: <ios>

Namespace: std

See Also

Reference

fpos Class

iostream Programming

iostreams Conventions

Other Resources

fpos Members