add print_no_space function for use in first round

This commit is contained in:
Johannes Kapfhammer 2022-03-31 21:46:22 +02:00
parent 33bcd2f073
commit 19ddcef24e
Signed by: johannesk
GPG key ID: 565B82ED229ACA80
2 changed files with 11 additions and 0 deletions

View file

@ -97,4 +97,10 @@ void print() {
std::cout << '\n';
}
template <typename... Args>
void print_no_space(Args&&... args) {
using expander = bool[];
(void)expander{0, (soi::io::print(std::cout, std::forward<Args>(args)), false)...};
}
#endif // SOI_HEADER_IO