libostd
|
File streams and standard output/input/error manipulation. More...
Go to the source code of this file.
Classes | |
struct | ostd::file_stream |
A file stream. More... | |
Enumerations | |
enum | ostd::stream_mode { ostd::stream_mode::READ = 0, ostd::stream_mode::WRITE, ostd::stream_mode::APPEND, ostd::stream_mode::READ_U, ostd::stream_mode::WRITE_U, ostd::stream_mode::APPEND_U } |
The mode to open file streams with. More... | |
Functions | |
void | ostd::swap (file_stream &a, file_stream &b) |
Swaps two file streams including ownership. | |
template<typename ... A> | |
void | ostd::write (A const &...args) |
Writes all given values into standard output. More... | |
template<typename ... A> | |
void | ostd::writeln (A const &...args) |
Writes all given values into standard output followed by a newline. More... | |
template<typename ... A> | |
void | ostd::writef (string_range fmt, A const &...args) |
Writes a formatted string into standard output. More... | |
template<typename ... A> | |
void | ostd::writefln (string_range fmt, A const &...args) |
Writes a formatted string into standard output followed by a newline. More... | |
Variables | |
OSTD_EXPORT file_stream | ostd::cin |
Standard input file stream. | |
OSTD_EXPORT file_stream | ostd::cout |
Standard output file stream. | |
OSTD_EXPORT file_stream | ostd::cerr |
Standard error file stream. | |
File streams and standard output/input/error manipulation.
This file implements a file stream structure equivalent to the C FILE
as well as wrappers over standard input/output/error and global functions for formatted writing into standard output.
Some string examples:
And binary examples: