libycxx

class template

std::basic_osyncstream

Header
<syncstream> also in <iosfwd>
Scope
std

Synopsis

template<
    class charT,
    class traits = char_traits<charT>,
    class Allocator = allocator<charT>>
class basic_osyncstream
    : public basic_ostream<charT, traits>

Member types

NameDeclaration
Initclass · nestedclass Init
failureclass · nestedclass failure
sentryclass · nestedclass 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
streambuf_typetype alias · member type= basic_streambuf<charT, traits>
syncbuf_typetype alias · member type= basic_syncbuf<charT, traits, Allocator>
traits_typetype alias · member type= traits
eventenumerationenum event
fmtflagsenumerationenum fmtflags
iostateenumerationenum iostate
openmodeenumerationenum openmode
seekdirenumerationenum seekdir

Member functions

NameDeclaration
basic_osyncstreamconstructor · 5 overloadsbasic_osyncstream(basic_osyncstream&& other) +4 more
~basic_osyncstreamdestructor~basic_osyncstream()
operator=operator · 3 overloadsbasic_ios& operator=(const basic_ios& other) +2 more
badmember functionbool bad() const
clearmember functionvoid clear(iostate state)
copyfmtmember functionbasic_ios& copyfmt(const basic_ios& rhs)
emitmember functionvoid emit()
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
flushmember functionbasic_ostream<charT, traits>& flush()
get_wrappedmember functionstreambuf_type* get_wrapped() const
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
putmember functionbasic_ostream<charT, traits>& put(char_type c)
pwordmember functionvoid*& pword(int idx)
rdbufmember function · 2 overloadssyncbuf_type* rdbuf() const +1 more
rdstatemember functioniostate rdstate() const
register_callbackmember functionvoid register_callback(event_callback fn, int idx)
seekpmember function · 2 overloadsbasic_ostream<charT, traits>& seekp(pos_type pos) +1 more
setfmember function · 2 overloadsfmtflags setf(fmtflags fmtfl) +1 more
setstatemember functionvoid setstate(iostate state)
tellpmember functionbasic_ostream<charT, traits>::pos_type tellp()
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
writemember functionbasic_ostream<charT, traits>& write(const char_type* s, streamsize n)
operator boolconversion functionoperator bool() const
operator<<operator · 20 overloadsbasic_ostream& operator<<(long long n) +19 more
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
operator=operator · 2 overloadsbasic_ostream& operator=(const basic_ostream& other) +1 more
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 function · 2 overloadsvoid swap(basic_ios& rhs) +1 more