You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// https://stackoverflow.com/questions/27375089/what-is-the-easiest-way-to-print-a-variadic-parameter-pack-using-stdostream -> accepted answer is WAY MORE complicated.
template<typename T, typename... Args>
void print(const T& t, const Args&... args)
{
if constexpr (sizeof...(args) == 0) {
// here parameter pack is drained and we have one last remaning item that has been just unpacked from the parameter pack and we have to print it, too.