File: test17.cc

package info (click to toggle)
aspectc%2B%2B 1%3A2.3%2Bgit20241211-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 18,148 kB
  • sloc: cpp: 110,334; ansic: 7,644; sh: 2,262; makefile: 1,344; pascal: 634; python: 402; xml: 349
file content (12 lines) | stat: -rw-r--r-- 301 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
namespace N {
  template <typename T> int foo1(int);
  template <typename T> int foo2(T);
  template <int I> int foo3();
}
template <typename T> int foo4(int);

int res1 = N::foo1<int>(1);
int res2 = N::foo2<int>(1);
int res3 = N::foo3<1>();
int res4 = N::template foo3<1>();
int res5 = foo4<int>(1);