add print_no_space function for use in first round
This commit is contained in:
parent
33bcd2f073
commit
19ddcef24e
2 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue