Printer helper for printing containers or sequential generator elements as columns.
More...
template<typename... Args>
struct tgen::print_cols< Args >
Printer helper for printing containers or sequential generator elements as columns.
If you pass multiple parameters for the printer, it will print the i-th element of each on the i-th line.
- Warning
- When you have multiple columns, do not pass arguments that call for random generation directly in the same function call, e.g. print_cols(tgen::next(1, 10), tgen::next(1, 10)) or print_cols(tgen::list(5, 1, 10).gen(), tgen::list(5, 1, 10).gen()). Function arguments are evaluated in unspecified order, so which random draws appear in which column can vary between compilers. Evaluate each random value into a named variable first, then pass those variables to print_cols.
Examples
std::vector<int> a = {1, 2};
Printer helper for printing containers or sequential generator elements as columns.
Definition at line 612 of file tgen.h.