Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EricPengShuai/Interview
/ compare
Function
compare
base_code/template.cpp:12–16 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
10
/*************** 函数模板 ***************/
11
template<typename T>
12
bool compare(T a, T b)
13
{
14
cout <<
"template compare"
<< endl;
15
return a > b;
16
}
17
18
// 模板特例化
19
template<>
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected