A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/string/basic_string/../../io/streamsize.html below:

std::streamsize - cppreference.com

typedef /*implementation-defined*/ streamsize;

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.

[edit] Notes

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

[edit] Example
#include <iostream>
#include <type_traits>
 
static_assert(std::is_signed_v<std::streamsize>);
 
int main()
{
    std::cout << sizeof(std::streamsize) << '\n';
}

Possible output:

[edit] See also returns number of characters extracted by last unformatted input operation
(public member function of std::basic_istream<CharT,Traits>) [edit] extracts and discards characters until the given character is found
(public member function of std::basic_istream<CharT,Traits>) [edit] extracts blocks of characters
(public member function of std::basic_istream<CharT,Traits>) [edit] inserts blocks of characters
(public member function of std::basic_ostream<CharT,Traits>) [edit]

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4