Evo C++ Library v0.5.1
|
Additional text formatting helpers, compatible with String, Stream, and StreamOut types.
FmtTable is used to setup table column information and FmtTableOut (or a helper that returns this) is used to format and write the table to a string or stream.
The easiest way to format a table is with fmt_table(), which caches the output internally in order to determine the best column alignment.
Output:
To avoid caching overhead use fmt_table_nocache() to write table output directly. To keep columns aligned, FmtTableAttribs is useful for updating column widths first.
Output: