|
Types Used by the IOStream Library
Synopsis
Description
The IOStream library relies on some types which may be choosen
appropiately by the implementation of this library. For these types
some basic requirements are defined but beyond this, their definition
is up to the implementation. Thus, you should not rely on the exact
definitions of the types described here but only on the required
properties: Another implementation might use different types.
std::streamoff
The type streamoff is used to describe offsets between
two positions in a stream if the default character traits
are used: This type is the off_type
member of the standard specializations of
char_traits. It goes hand in hand
with the template class fpos<stateT>.
The two types streamoff and fpos<stateT> are
closely related by the requirements imposed on them. See the description of the
class fpos<stateT> for details.
std::streamsize
The type streamsize is used to specify quantities of
characters e.g. when reading a sequence of characters or for
specifying the minimum width of the resulting string during numeric
formatting. This type is an alias for one of the signed integral
built-in types, most likely the signed equivalent of size_t.
See Also
char_traits(3)
|