Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0voice/cpp_new_features
/ main
Function
main
cpp_11/003_template_aliases.cpp:8–13 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6
using ptr=std::shared_ptr<T>;
7
8
int main()
9
{
10
//这里借助模板别名,用ptr<string> 来代替std::shared_ptr<string>
11
ptr<string> p=std::make_shared<std::string>();
12
return 0;
13
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected