Debian Codegraph @

cpptests/templates1.res

raw
1 template <typename T1, class T2=int, const int I1=27, T2 I2=1, const T2 I3=I1+I2>
2 int f(const T1 v1, const T2 v2)
3 {
4 return I1+I2+I3+v1+v2;
5 }
6 int main()
7 {
8 return f<int,int,27,1>(1,1) + f<int,int,-27,-1>(1,2) + f<int,int>(1,2) + f<int>(1,2) - 31;
9 }
10