class template
std::basic_istringstream
- Scope
std- cppreference
- std::basic_istringstream
Synopsis
template<
class charT,
class traits = char_traits<charT>,
class Allocator = allocator<charT>>
class basic_istringstream
: public basic_istream<charT, traits>Member types
| Name | Declaration |
|---|---|
Initclass · nested | class Init |
failureclass · nested | class failure |
sentryclass · nested | class sentry |
allocator_typetype alias · member type | = Allocator |
char_typetype alias · member type | = charT |
event_callbacktype alias · member type | = void(*)(event, ios_base&, int) |
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 |
eventenumeration | enum event |
fmtflagsenumeration | enum fmtflags |
iostateenumeration | enum iostate |
openmodeenumeration | enum openmode |
seekdirenumeration | enum seekdir |
Member functions
| Name | Declaration |
|---|---|
basic_istringstreamconstructor · 13 overloads | basic_istringstream() +12 more |
operator=operator · 4 overloads | basic_ios& operator=(const basic_ios& other) +3 more |
badmember function | bool bad() const |
clearmember function | void clear(iostate state) |
copyfmtmember function | basic_ios& copyfmt(const basic_ios& rhs) |
eofmember function | bool eof() const |
exceptionsmember function · 2 overloads | iostate exceptions() const +1 more |
failmember function | bool fail() const |
fillmember function · 2 overloads | char_type fill() const +1 more |
flagsmember function · 2 overloads | fmtflags flags() const +1 more |
gcountmember function | streamsize gcount() const |
getmember function · 6 overloads | basic_istream<charT, traits>::int_type get() +5 more |
getlinemember function · 2 overloads | basic_istream& getline(char_type* s, streamsize n) +1 more |
getlocmember function | locale getloc() const |
goodmember function | bool good() const |
ignoremember function · 2 overloads | basic_istream<charT, traits>& ignore(streamsize n, int_type delim) +1 more |
imbuemember function | locale imbue(const locale& loc) |
iwordmember function | long& iword(int idx) |
narrowmember function | char narrow(char_type c, char dfault) const |
operator>>operator · 18 overloads | basic_istream& operator>>(bool& n) +17 more |
peekmember function | basic_istream<charT, traits>::int_type peek() |
precisionmember function · 2 overloads | streamsize precision() const +1 more |
putbackmember function | basic_istream<charT, traits>& putback(char_type c) |
pwordmember function | void*& pword(int idx) |
rdbufmember function · 2 overloads | buf_type* rdbuf() const +1 more |
rdstatemember function | iostate rdstate() const |
readmember function | basic_istream<charT, traits>& read(char_type* s, streamsize n) |
readsomemember function | streamsize readsome(char_type* s, streamsize n) |
register_callbackmember function | void register_callback(event_callback fn, int idx) |
seekgmember function · 2 overloads | basic_istream<charT, traits>& seekg(pos_type pos) +1 more |
setfmember function · 2 overloads | fmtflags setf(fmtflags fmtfl) +1 more |
setstatemember function | void setstate(iostate state) |
strmember function · 7 overloads | string_type str() const & +6 more |
swapmember function | void swap(basic_istringstream& rhs) |
syncmember function | int sync() |
tellgmember function | basic_istream<charT, traits>::pos_type tellg() |
tiemember function · 2 overloads | basic_ostream<charT, traits>* tie() const +1 more |
ungetmember function | basic_istream<charT, traits>& unget() |
unsetfmember function | void unsetf(fmtflags mask) |
viewmember function | basic_string_view<charT, traits> view() const |
widenmember function | char_type widen(char c) const |
widthmember function · 2 overloads | streamsize width() const +1 more |
operator boolconversion function | operator bool() const |
operator!operator | bool operator!() const |
Static member functions
| Name | Declaration |
|---|---|
sync_with_stdiostatic member function | bool sync_with_stdio(bool sync) |
xallocstatic member function | int xalloc() |
Static data members
| Name | Declaration |
|---|---|
adjustfieldstatic data member | fmtflags |
appstatic data member | openmode |
atestatic data member | openmode |
badbitstatic data member | iostate |
basefieldstatic data member | fmtflags |
begstatic data member | seekdir |
binarystatic data member | openmode |
boolalphastatic data member | fmtflags |
curstatic data member | seekdir |
decstatic data member | fmtflags |
endstatic data member | seekdir |
eofbitstatic data member | iostate |
failbitstatic data member | iostate |
fixedstatic data member | fmtflags |
floatfieldstatic data member | fmtflags |
goodbitstatic data member | iostate |
hexstatic data member | fmtflags |
instatic data member | openmode |
internalstatic data member | fmtflags |
leftstatic data member | fmtflags |
noreplacestatic data member | openmode |
octstatic data member | fmtflags |
outstatic data member | openmode |
rightstatic data member | fmtflags |
scientificstatic data member | fmtflags |
showbasestatic data member | fmtflags |
showpointstatic data member | fmtflags |
showposstatic data member | fmtflags |
skipwsstatic data member | fmtflags |
truncstatic data member | openmode |
unitbufstatic data member | fmtflags |
uppercasestatic data member | fmtflags |
Protected Member functions
| Name | Declaration |
|---|---|
operator=operator · 2 overloads | basic_istream& operator=(const basic_istream& other) +1 more |
initmember function | void init(basic_streambuf<charT, traits>* sb) |
movemember function · 2 overloads | void move(basic_ios& rhs) +1 more |
set_rdbufmember function | void set_rdbuf(basic_streambuf<charT, traits>* sb) |
swapmember function · 2 overloads | void swap(basic_ios& rhs) +1 more |