class template
std::basic_stringbuf
- Draft
- [stringbuf.general]
- Scope
std- cppreference
- std::basic_stringbuf
Synopsis
template<
class charT,
class traits = char_traits<charT>,
class Allocator = allocator<charT>>
class basic_stringbuf
: public basic_streambuf<charT, traits>Member types
| Name | Declaration |
|---|---|
allocator_typetype alias · member type | = Allocator |
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_stringbufconstructor · 15 overloads | basic_stringbuf() +14 more |
operator=operator · 2 overloads | basic_stringbuf& operator=(const basic_stringbuf& other) +1 more |
get_allocatormember function | allocator_type get_allocator() const |
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) |
strmember function · 7 overloads | string_type str() const & +6 more |
sungetcmember function | int_type sungetc() |
swapmember function | void swap(basic_stringbuf& rhs) |
viewmember function | basic_string_view<charT, traits> view() const |
Protected Member functions
| Name | Declaration |
|---|---|
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 · 2 overloads | int_type overflow(int_type) +1 more |
pbackfailmember function · 2 overloads | int_type pbackfail(int_type) +1 more |
pbasemember function | char_type* pbase() const |
pbumpmember function | void pbump(int n) |
pptrmember function | char_type* pptr() const |
seekoffmember function · 2 overloads | pos_type seekoff(off_type, ios_base::seekdir, ios_base::openmode) +1 more |
seekposmember function · 2 overloads | pos_type seekpos(pos_type, ios_base::openmode) +1 more |
setbufmember function · 2 overloads | basic_streambuf<charT, traits>* setbuf(charT*, streamsize) +1 more |
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) |