memtemp59.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 23 行

C
23
字号
// Build don't link:// GROUPS passed templates membertemplatestemplate <int N>struct IndexPlaceholder {};template <int N1, int N2, int N3>struct ArrayIndexMapping {};template <class T_numtype, int N_rank>struct Array{  template<int N0, int N1>  ArrayIndexMapping<N_rank, N0, N1>   f(IndexPlaceholder<N0>, IndexPlaceholder<N1>);};template <class T_numtype>void foo(T_numtype){  Array<T_numtype, 1> t;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?