Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Iterate_Variac_Template
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x86 #include <iostream> #include <cstdint> void printi(int a, int b, int c) { std::cout << a << "," << b << "," << c << std::endl; } template<int... II> struct AA { void printargs(int* args) { printi(args[II+1]...); //Here II will iterate through the arguments } }; int main() { struct AA<2,0,1> a; int args[] = {1,2,0, 5,9}; a.printargs(args); }
run
|
edit
|
history
|
help
0
asock
Struct packing
Rounding in C++
#26.fix
student.h
лаб1
Ελλάδα !!!!
multiplie linked list numbers
c++functor
Thing