class template
std::basic_streambuf
- Header
<streambuf>also in<iosfwd>- Draft
- [streambuf.general]
- Scope
std- cppreference
- std::basic_streambuf
Synopsis
template<class charT, class traits = char_traits<charT>>
class basic_streambuf;Member types
| Name | Declaration |
|---|---|
char_typetype alias · member type | = charT |
int_typetype alias · member type | = traits::int_type |
off_typetype alias · member type | = traits::off_type |
pos_typetype alias · member type | = traits::pos_type |
traits_typetype alias · member type | = traits |
Member functions
| Name | Declaration |
|---|---|
~basic_streambufdestructor | ~basic_streambuf() |
getlocmember function | locale getloc() const |
in_availmember function | streamsize in_avail() |
pubimbuemember function | locale pubimbue(const locale& loc) |
pubseekoffmember function | pos_type pubseekoff(off_type off, ios_base::seekdir way, ios_base::openmode which) |
pubseekposmember function | pos_type pubseekpos(pos_type sp, ios_base::openmode which) |
pubsetbufmember function | basic_streambuf* pubsetbuf(char_type* s, streamsize n) |
pubsyncmember function | int pubsync() |
sbumpcmember function | int_type sbumpc() |
sgetcmember function | int_type sgetc() |
sgetnmember function | streamsize sgetn(char_type* s, streamsize n) |
snextcmember function | int_type snextc() |
sputbackcmember function | int_type sputbackc(char_type c) |
sputcmember function | int_type sputc(char_type c) |
sputnmember function | streamsize sputn(const char_type* s, streamsize n) |
sungetcmember function | int_type sungetc() |
Protected Member functions
| Name | Declaration |
|---|---|
basic_streambufconstructor · 2 overloads | basic_streambuf() +1 more |
operator=operator | basic_streambuf& operator=(const basic_streambuf& rhs) |
ebackmember function | char_type* eback() const |
egptrmember function | char_type* egptr() const |
epptrmember function | char_type* epptr() const |
gbumpmember function | void gbump(int n) |
gptrmember function | char_type* gptr() const |
imbuemember function | void imbue(const locale&) |
overflowmember function | int_type overflow(int_type) |
pbackfailmember function | int_type pbackfail(int_type) |
pbasemember function | char_type* pbase() const |
pbumpmember function | void pbump(int n) |
pptrmember function | char_type* pptr() const |
seekoffmember function | pos_type seekoff(off_type, ios_base::seekdir, ios_base::openmode) |
seekposmember function | pos_type seekpos(pos_type, ios_base::openmode) |
setbufmember function | basic_streambuf* setbuf(char_type*, streamsize) |
setgmember function | void setg(char_type* gbeg, char_type* gnext, char_type* gend) |
setpmember function | void setp(char_type* pbeg, char_type* pend) |
showmanycmember function | streamsize showmanyc() |
swapmember function | void swap(basic_streambuf& rhs) |
syncmember function | int sync() |
uflowmember function | int_type uflow() |
underflowmember function | int_type underflow() |
xsgetnmember function | streamsize xsgetn(char_type* s, streamsize n) |
xsputnmember function | streamsize xsputn(const char_type* s, streamsize n) |