Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EricPengShuai/Interview
/ Print
Function
Print
STL/list.cpp:8–15 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6
7
template<class T>
8
void Print(const list<T>& my)
9
{
10
typename list<T>::const_iterator it = my.begin();
11
for (; it != my.end(); it++) {
12
cout << *it <<
' '
;
13
}
14
cout << endl;
15
}
16
17
void Print_f(forward_list<int>& test)
18
{
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected