Namespaces
Variants
Views
Actions

std::streamsize

From cppreference.com
< cpp‎ | io
Revision as of 15:38, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <ios>
</td>

<td></td> <td></td> <tr class="t-dcl ">

<td class="t-dcl-nopad">
typedef /*unspecified*/ streamsize;
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

The type std::streamsize is a signed integral type used to represent the number of characters transferred in an I/O operation or the size of an I/O buffer. It is used as a signed counterpart of std::size_t, similar to the POSIX type ssize_t.

Except in the constructors of std::strstreambuf, negative values of std::streamsize are never used.

See also

Template:cpp/io/basic istream/dcl list gcountTemplate:cpp/io/basic istream/dcl list ignoreTemplate:cpp/io/basic istream/dcl list readTemplate:cpp/io/basic ostream/dcl list write