Skip to content

Instantly share code, notes, and snippets.

@qiaohaijun
Last active June 14, 2017 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qiaohaijun/0e913ab3823dac32a72de86c8ebbd295 to your computer and use it in GitHub Desktop.
Save qiaohaijun/0e913ab3823dac32a72de86c8ebbd295 to your computer and use it in GitHub Desktop.
  1. ::Ant 表根命名空间,或匿名空间
  2. 同时存在 ::Ant::i::Ant::blas::i, Ant::detail::i 时,在 ::Ant::detail 中使用i时,默认调用 Ant::detail::i
  3. 平级namespace 调用用,要加相应的命名空间
  4. 域内命名空间可省
  5. 即使存在多个相同名字的命名空间,不会报错,按最局部分调用原则调用,如同全局变量与局部变量名字一样时,优先调用局部变量
@qiaohaijun
Copy link
Author

:: 表示根目录
/ 在linux中的文件系统表示根目录
// 在bazel的配置文件表示拥有WORKSPACE文件的根目录

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment