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
MSVC bug in __fastcall implementation !!!
std::string
iota_30-Seconds-of-C++
Error with move capture of a const ref in a lambda function
#10.1
assaa
#22.2
MSVC14 <experimental/generator> header
ambiguity does not count as ambiguity
복소수 클래스 생성하기