使用 whereis 命令可输出函数模板或类模板的函数或类实例的所有具体值列表。
对于类模板:
(dbx) whereis Array member function: `Array<int>::Array(int) member function: `Array<double>::Array(int) class template instance: `Array<int> class template instance: `Array<double> class template: `a.out`template_doc_2.cc`Array |
对于函数模板:
(dbx) whereis square function template instance: `square<int>(__type_0,__type_0*) function template instance: `square<double>(__type_0,__type_0*) |
__type_0 参数引用 0 号模板参数。__type_1 引用下一个模板参数。
有关更多信息,请参见whereis 命令。