Standard C++ Library Reference ISO/IEC (VERSION3)
dec
ios_base& dec(ios_base& iosbase);
The manipulator effectively calls iosbase.setf(ios_base:: dec, ios_base::
basefield), then returns iosbase.
fixed
ios_base& fixed(ios_base& iosbase);
The manipulator effectively calls iosbase.setf(ios_base:: fixed, ios_base::
floatfield), then returns iosbase.
fpos
template <class St>
class fpos {
public:
fpos(streamoff off);
fpos(St state, fpos_t filepos);
St state() const;
void state(St state);
operator streamoff() const;
streamoff operator-(const fpos& right) const;
fpos& operator+=(streamoff off);
fpos& operator-=(streamoff off);
fpos operator+(streamoff off) const;
fpos operator-(streamoff off) const;
bool operator==(const fpos& right) const;
bool operator!=(const fpos& right) const;
};
The template class describes an object that can store all the information needed to restore an arbitrary
file-position indicator within any stream. An object of class fpos<St> effectively stores at least two
member objects:
a byte offset, of type streamoff●
a conversion state, for use by an object of class basic_filebuf, of type St, typically
mbstate_t
●
It can also store an arbitrary file position, for use by an object of class basic_filebuf, of type
fpos_t. For an environment with limited file size, however, streamoff and fpos_t may
sometimes be used interchangeably. And for an environment with no streams that have a