Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<int N> struct F{
- static const long v = N * F<N-1>::v;
- };
- template<> struct F<0>{
- static const long v = 1;
- };
- which technique is used in this code snippet
- 1 inheritance
- 2 meta programming
- 3 recursive function call
- 4 template specialization
- 5 Lambda
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement