instantiate4.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 28 行
C
28 行
// Build then link:// Special g++ Options: -frepo -Werror// Submitted by Melissa O'Neill <oneill@cs.sfu.ca>// the vtable of Foo<int> wouldn't be generatedtemplate <typename A>struct Foo { virtual void foo() {}};template <typename A>struct Bar { void bar();};template <typename A> void Bar<A>::bar() { Foo<A> oof;}int main () { Bar<int> rab; rab.bar();}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?