daily pastebin goal
54%
SHARE
TWEET

Example for C++ non-type template parameters

a guest Feb 21st, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. template <int n>
  4. void print() {
  5.     std::cout << n << std::endl;
  6. }
  7.  
  8. int main() {
  9.     print<1>();
  10. }
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