Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Non type template argument
//clang 3.8.0 #include <iostream> using namespace std; template<class T,int S> T func(T a){ return a*S; } int main() { cout<<func<int,2>(20)<<endl; cout<<func<int,3>(30); }
run
|
edit
|
history
|
help
0
chakib
11/18
appliWall
Throttle Example (Send two requests every two seconds)
Tilted uniform distribution random number generator over min/max range
unordered graphs search
GreedyProblem1
AnnotateAttr templated test
C++ Standard Template Library
specialized template