std::basic_streambuf

From Cppreference

< cpp | io
Jump to: navigation, search
Defined in header <streambuf>

template<

    class CharT,
    class Traits = std::char_traits<CharT>,
    class Allocator = std::allocator<CharT>

> class basic_streambuf;

The class basic_streambuf abstracts the raw device used in input/output operations. This class is not meant to be copyable: one basic_streambuf object corresponds to one actual device.

Two specializations for common character types are also defined:

Defined in header <streambuf>
Type Definition
streambuf basic_streambuf<char>
wstreambuf basic_streambuf<wchar_t>


Contents

[edit] Member types

Member type Definition
char_type CharT
traits_type Traits
int_type Traits::int_type
pos_type Traits::pos_type
off_type Traits::off_type

[edit] Member functions

Template:cpp/io/basic streambuf/dcl list ~basic streambufTemplate:cpp/io/basic streambuf/dcl list pubimbueTemplate:cpp/io/basic streambuf/dcl list getlocTemplate:cpp/io/basic streambuf/dcl list pubsetbufTemplate:cpp/io/basic streambuf/dcl list pubseekoffTemplate:cpp/io/basic streambuf/dcl list pubseekposTemplate:cpp/io/basic streambuf/dcl list pubsyncTemplate:cpp/io/basic streambuf/dcl list in availTemplate:cpp/io/basic streambuf/dcl list snextcTemplate:cpp/io/basic streambuf/dcl list sbumpcTemplate:cpp/io/basic streambuf/dcl list sgetcTemplate:cpp/io/basic streambuf/dcl list sgetnTemplate:cpp/io/basic streambuf/dcl list sputcTemplate:cpp/io/basic streambuf/dcl list sputnTemplate:cpp/io/basic streambuf/dcl list sputbackcTemplate:cpp/io/basic streambuf/dcl list sungetcTemplate:cpp/io/basic streambuf/dcl list basic streambufTemplate:cpp/io/basic streambuf/dcl list imbueTemplate:cpp/io/basic streambuf/dcl list setbufTemplate:cpp/io/basic streambuf/dcl list seekoffTemplate:cpp/io/basic streambuf/dcl list seekposTemplate:cpp/io/basic streambuf/dcl list syncTemplate:cpp/io/basic streambuf/dcl list showmanycTemplate:cpp/io/basic streambuf/dcl list xsgetnTemplate:cpp/io/basic streambuf/dcl list underflowTemplate:cpp/io/basic streambuf/dcl list uflowTemplate:cpp/io/basic streambuf/dcl list xsputnTemplate:cpp/io/basic streambuf/dcl list overflowTemplate:cpp/io/basic streambuf/dcl list pbackfail
Locales
Positioning
Get arena
Put arena
Putback

Protected member functions

Locales
Positioning
Get arena
Put arena
Putback