Skip to content

Text writer

Raymond Chen edited this page Apr 1, 2019 · 5 revisions

The text_writer.h header file provides basic buffered text output.

All of the types reside in the xlang::text namespace.

The basic idea is as follows:

struct writer : xlang::text::writer_base<writer>
{
   // optional customizations
};

int main(int argc, char** argv)
{
    writer w;

    // Write a formatted message.
    w.write("%, world.\n", "Hello");

    w.flush_to_console();

    return 0;
}
Clone this wiki locally