C++ - ios_base seekdir



Description

This is Enumerated type to represent the seeking direction of a stream seeking operation.

The possible values for this type are one of the following member constants as shown below −

member constant seeking relative to
beg beginning of sequence.
cur current position within sequence.
end end of sequence.

These constants are defined in the ios_base class as public members. Therefore, they can be referred to either directly by their name as members of ios_base (like ios_base::beg) or by using any of their inherited classes or instantiated objects, like for example ios::end or cin.cur.

ios.htm
Advertisements