libycxx

class template

std::basic_ios

Header
<ios> also in <iosfwd>
Scope
std
cppreference
std::basic_ios

Synopsis

template<class charT, class traits = char_traits<charT>>
class basic_ios
    : public ios_base

Member types

NameDeclaration
Initclass · nestedclass Init
failureclass · nestedclass failure
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
eventenumerationenum event
fmtflagsenumerationenum fmtflags
iostateenumerationenum iostate
openmodeenumerationenum openmode
seekdirenumerationenum seekdir

Member functions

NameDeclaration
basic_iosconstructor · 2 overloadsbasic_ios(const basic_ios& other) +1 more
~basic_iosdestructor~basic_ios()
operator=operator · 2 overloadsbasic_ios& operator=(const basic_ios& other) +1 more
badmember functionbool bad() const
clearmember functionvoid clear(iostate state)
copyfmtmember functionbasic_ios& copyfmt(const basic_ios& rhs)
eofmember functionbool eof() const
exceptionsmember function · 2 overloadsiostate exceptions() const +1 more
failmember functionbool fail() const
fillmember function · 2 overloadschar_type fill() const +1 more
flagsmember function · 2 overloadsfmtflags flags() const +1 more
getlocmember functionlocale getloc() const
goodmember functionbool good() const
imbuemember functionlocale imbue(const locale& loc)
iwordmember functionlong& iword(int idx)
narrowmember functionchar narrow(char_type c, char dfault) const
precisionmember function · 2 overloadsstreamsize precision() const +1 more
pwordmember functionvoid*& pword(int idx)
rdbufmember function · 2 overloadsbasic_streambuf<charT, traits>* rdbuf() const +1 more
rdstatemember functioniostate rdstate() const
register_callbackmember functionvoid register_callback(event_callback fn, int idx)
setfmember function · 2 overloadsfmtflags setf(fmtflags fmtfl) +1 more
setstatemember functionvoid setstate(iostate state)
tiemember function · 2 overloadsbasic_ostream<charT, traits>* tie() const +1 more
unsetfmember functionvoid unsetf(fmtflags mask)
widenmember functionchar_type widen(char c) const
widthmember function · 2 overloadsstreamsize width() const +1 more
operator boolconversion functionoperator bool() const
operator!operatorbool operator!() const

Static member functions

NameDeclaration
sync_with_stdiostatic member functionbool sync_with_stdio(bool sync)
xallocstatic member functionint xalloc()

Static data members

NameDeclaration
adjustfieldstatic data memberfmtflags
appstatic data memberopenmode
atestatic data memberopenmode
badbitstatic data memberiostate
basefieldstatic data memberfmtflags
begstatic data memberseekdir
binarystatic data memberopenmode
boolalphastatic data memberfmtflags
curstatic data memberseekdir
decstatic data memberfmtflags
endstatic data memberseekdir
eofbitstatic data memberiostate
failbitstatic data memberiostate
fixedstatic data memberfmtflags
floatfieldstatic data memberfmtflags
goodbitstatic data memberiostate
hexstatic data memberfmtflags
instatic data memberopenmode
internalstatic data memberfmtflags
leftstatic data memberfmtflags
noreplacestatic data memberopenmode
octstatic data memberfmtflags
outstatic data memberopenmode
rightstatic data memberfmtflags
scientificstatic data memberfmtflags
showbasestatic data memberfmtflags
showpointstatic data memberfmtflags
showposstatic data memberfmtflags
skipwsstatic data memberfmtflags
truncstatic data memberopenmode
unitbufstatic data memberfmtflags
uppercasestatic data memberfmtflags

Protected Member functions

NameDeclaration
basic_iosconstructorbasic_ios()
initmember functionvoid init(basic_streambuf<charT, traits>* sb)
movemember function · 2 overloadsvoid move(basic_ios& rhs) +1 more
set_rdbufmember functionvoid set_rdbuf(basic_streambuf<charT, traits>* sb)
swapmember functionvoid swap(basic_ios& rhs)

Derived classes