@ayubsayyad/

YellowUntrueDatasets

C++11

No description

fork
loading
Files
  • main.cpp
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>

template <typename... Args>
auto addall(Args... args) 
{
  return (... + args);
}


int main() {
  std::cout << "Hello World!\n";
  addall(1,2,3,4,5); // returns 15.
}