friend33.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 29 行
C
29 行
// Build don't run:// Special g++ Options: -gtemplate <class P1>struct S1{ struct SS1 { }; friend void Foo (const SS1& ss1) { }};template <class P1>void Foo(const S1<P1>& s1){ typedef typename S1<P1>::SS1 TYPE; TYPE t; Foo(t);}int main (){ S1<double> obj; Foo(obj);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?