Sun Studio 12:使用 dbx 调试程序

whereis name 命令

使用 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 命令