xieite::dump()

Defined in header <xieite/io/dump.hpp>

Prints values separated by a delimiter.
Essentially just std::println() with its format string generated automatically.
Originally based on [P2879].


Declaration

#0
template<xieite::fixed_str delim = " ", bool newline = true>
void dump(std::FILE* file, auto&&... args) noexcept;
Prints to file.

#1
template<xieite::fixed_str delim = " ", bool newline = true>
void dump(auto&&... args) noexcept;
Prints to stdout.


Example

int main() {
	int x = 418;
	double y = 3.14159;

	xieite::dump(x, "test", y);
}
Output:
418 test 3.14159
[View in Compiler Explorer]