template12.c
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 20 行
C
20 行
// { dg-do assemble }// Templates can be defined outside of the namespace if the have been declared// insidenamespace bar{ template <typename T> T const foo(T const &); template<> const int foo<int>(int const &);}template <typename T>T constbar::foo(T const &a){ return a;}template<> const int bar::foo<int>(int const &){return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?