Skip to content

Instantly share code, notes, and snippets.

@aGIToz
Forked from ilebedie/python_like_print.hpp
Created September 4, 2019 00:21
Show Gist options
  • Save aGIToz/eeeb7d24520945e0a36071ff1f1894fa to your computer and use it in GitHub Desktop.
Save aGIToz/eeeb7d24520945e0a36071ff1f1894fa to your computer and use it in GitHub Desktop.
Python-like print in c++
#include <iostream>
using namespace std;
void print(){cout<<'\n';}
template<typename T, typename ...TAIL>
void print(const T &t, TAIL... tail)
{
cout<<t<<' ';
print(tail...);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment