SHARE
TWEET

Untitled

a guest Jun 24th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. template<int N> struct F{
  3.     static const long v = N * F<N-1>::v;
  4. };
  5.  
  6. template<> struct F<0>{
  7.     static const long v = 1;
  8. };
  9.  
  10. which technique is used in this code snippet
  11.  
  12. 1 inheritance
  13. 2 meta programming
  14. 3 recursive function call
  15. 4 template specialization
  16. 5 Lambda
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top