Skip to content

Instantly share code, notes, and snippets.

@mikeplavsky
Last active September 14, 2020 14:26
Show Gist options
  • Save mikeplavsky/d07ccc742d21352b92a64efed253bead to your computer and use it in GitHub Desktop.
Save mikeplavsky/d07ccc742d21352b92a64efed253bead to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
template <typename T, typename... Tail>
void print(T head, Tail... tail) {
cout << head << ' ';
print(tail...);
}
int main() {
print(1,2,3,"Done"s);
}
@mikeplavsky
Copy link
Author

mikeplavsky commented Aug 30, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment