class template
std::basic_osyncstream
- Header
<syncstream>also in<iosfwd>- Scope
std- cppreference
- std::basic_osyncstream
Synopsis
template<
class charT,
class traits = char_traits<charT>,
class Allocator = allocator<charT>>
class basic_osyncstream
: public basic_ostream<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 |
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 |
eventenumeration | enum event |
fmtflagsenumeration | enum fmtflags |
iostateenumeration | enum iostate |
openmodeenumeration | enum openmode |
seekdirenumeration | enum seekdir |
Member functions
| Name | Declaration |
|---|---|
basic_osyncstreamconstructor · 5 overloads | basic_osyncstream(basic_osyncstream&& other) +4 more |
~basic_osyncstreamdestructor | ~basic_osyncstream() |
operator=operator · 3 overloads | basic_ios& operator=(const basic_ios& other) +2 more |
badmember function | bool bad() const |
clearmember function | void clear(iostate state) |
copyfmtmember function | basic_ios& copyfmt(const basic_ios& rhs) |
emitmember function | void emit() |
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 |
flushmember function | basic_ostream<charT, traits>& flush() |
get_wrappedmember function | streambuf_type* get_wrapped() const |
getlocmember function | locale getloc() const |
goodmember function | bool good() const |
imbuemember function | locale imbue(const locale& loc) |
iwordmember function | long& iword(int idx) |
narrowmember function | char narrow(char_type c, char dfault) const |
precisionmember function · 2 overloads | streamsize precision() const +1 more |
putmember function | basic_ostream<charT, traits>& put(char_type c) |
pwordmember function | void*& pword(int idx) |
rdbufmember function · 2 overloads | syncbuf_type* rdbuf() const +1 more |
rdstatemember function | iostate rdstate() const |
register_callbackmember function | void register_callback(event_callback fn, int idx) |
seekpmember function · 2 overloads | basic_ostream<charT, traits>& seekp(pos_type pos) +1 more |
setfmember function · 2 overloads | fmtflags setf(fmtflags fmtfl) +1 more |
setstatemember function | void setstate(iostate state) |
tellpmember function | basic_ostream<charT, traits>::pos_type tellp() |
tiemember function · 2 overloads | basic_ostream<charT, traits>* tie() const +1 more |
unsetfmember function | void unsetf(fmtflags mask) |
widenmember function | char_type widen(char c) const |
widthmember function · 2 overloads | streamsize width() const +1 more |
writemember function | basic_ostream<charT, traits>& write(const char_type* s, streamsize n) |
operator boolconversion function | operator bool() const |
operator<<operator · 20 overloads | basic_ostream& operator<<(long long n) +19 more |
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_ostream& operator=(const basic_ostream& 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 |