PrevUpHomeNext

utx::printnl

utx::printnl is a very simple and convenient cpp template function to print many different values without worrying about their types. The difference between utx::print and utx::printnl is that utx::printnl does not print a newline at the end.

template <utx::kspt::printable ... R>
void utx::printnl(const R & ... r);

Include

#include <utxcpp/core.hpp>

Notice

[Note] Note
  • It does not print a newline character at the end.
  • It separates each value by a space.
  • concept requirements:
    • Every value must satisfy utx::kspt::printable
    • Basic printable types satisfy utx::kspt::printable
    • Non-basic types must implement operator<< to satisfy utx::kspt::printable

Example

#include <utxcpp/core.hpp>

int main() {
	utx::printnl(true, ':', 3.14, "kg", "waters"); // Without newline end.
}

PrevUpHomeNext