TooN Algorithm Library - tag
0.2
|
Variables | |
static struct Internal::add_fill_s | tag::add_fill |
static struct Internal::like_print_s | tag::print |
static struct Internal::no_space_s | tag::no_space |
This group contains two sets of enhancements for using the output streams in the standard library.
The first is a set of additional modifiers for use with the standard << operator. See add_fill , no_space and print for more details.
The second set introduces a new syntax using the comma operator for streams. It creates simple statements similar to print in Python or other languages. The stream object and any values to be printed are written as a comma separated list. Between the values printed, the stream's fill character is output to delimit values. Some examples:
will result in the following output
endl is treated specially and no separator is produced before or after it. Other iomanips are not treated specially and produce a fill character before their position (if they are not the first in the list).
|
static |
Ostream modifier which puts spaces between elements using the fill character. endl is treated specially, so a space is not put after an endl
This will print:
|
static |
|
static |
Ostream modifier similar to add_fill, except that an endl is added at the end automatically
Will print:
Referenced by tag::vfPrintf().