📄 instantiate4.c
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -