Joh*_*ohn 1 c++ static namespaces
考虑:
namespace JohnsLib { static bool foobar(); bool bar(); }
这static有什么含义?
static
Ben*_*igt 5
它将链接从"外部" 更改为"静态",使其对链接器不可见,并且无法从其他编译单元中使用.(好吧,如果其他编译单元也包含标题,他们会得到自己的单独副本)
归档时间:
14 年,4 月 前
查看次数:
898 次
最近记录: