explicit failure(const string& msg, const error_code& ec = io_errc::stream);
explicit failure(const char* msg, const error_code& ec = io_errc::stream);
using fmtflags = T1;
Element | Effect(s) if set | |
boolalpha | insert and extract bool type in alphabetic format | |
dec | converts integer input or generates integer output in decimal base | |
fixed | generate floating-point output in fixed-point notation | |
hex | converts integer input or generates integer output in hexadecimal base | |
internal | adds fill characters at a designated internal point in certain generated output,
or identical to right if no such point is designated | |
left | adds fill characters on the right (final positions) of certain generated output | |
oct | converts integer input or generates integer output in octal base | |
right | adds fill characters on the left (initial positions) of certain generated output | |
scientific | generates floating-point output in scientific notation | |
showbase | generates a prefix indicating the numeric base of generated integer output | |
showpoint | generates a decimal-point character unconditionally in generated floating-point output | |
showpos | generates a + sign in non-negative generated numeric output | |
skipws | skips leading whitespace before certain input operations | |
unitbuf | flushes output after each output operation | |
uppercase | replaces certain lowercase letters with their uppercase equivalents in generated output |
using iostate = T2;
Element | Effect(s) if set | |
badbit | indicates a loss of integrity in an input or output sequence
(such as an irrecoverable read error from a file); | |
eofbit | indicates that an input operation reached the end of an input sequence; | |
failbit | indicates that an input operation failed to read the expected characters,
or that an output operation failed to generate the desired characters. |
using openmode = T3;
Element | Effect(s) if set | |
app | seek to end before each write | |
ate | open and seek to end immediately after opening | |
binary | perform input and output in binary mode (as opposed to text mode) | |
in | open for input | |
out | open for output | |
trunc | truncate an existing stream when opening |
using seekdir = T4;
Init();
~Init();
fmtflags flags() const;
fmtflags flags(fmtflags fmtfl);
fmtflags setf(fmtflags fmtfl);
fmtflags setf(fmtflags fmtfl, fmtflags mask);
void unsetf(fmtflags mask);
streamsize precision() const;
streamsize precision(streamsize prec);
streamsize width() const;
streamsize width(streamsize wide);
locale imbue(const locale& loc);
locale getloc() const;
static bool sync_with_stdio(bool sync = true);
static int xalloc();
long& iword(int idx);
void*& pword(int idx);
void register_callback(event_callback fn, int idx);
ios_base();
~ios_base();