开发者

What is the scope of function within anonymous namespace in VC++?

开发者 https://www.devze.com 2023-04-09 06:33 出处:网络
If CPP file def开发者_运维技巧ines namespace { void Function() { ... } } what is the scope of Function?File Scope. In this case Function is accessible only within the file it is defined in.

If CPP file def开发者_运维技巧ines

namespace 
{
 void Function() { ... }
}

what is the scope of Function?


File Scope. In this case Function is accessible only within the file it is defined in.

0

精彩评论

暂无评论...
验证码 换一张
取 消