- Hands-On Embedded Programming with C++17
- Maya Posch
- 86字
- 2021-08-20 10:20:45
Namespaces
Namespaces are a way to introduce additional levels of scope into an application. As we saw in the earlier section on classes, these are a compiler-level concept.
The main use lies in modularizing code, dividing it into logical segments in cases where classes are not the most obvious solution, or where you want to explicitly sort classes into a particular category using a namespace. This way, you can also avoid name and type collisions between similarly named classes, types, and enumerations.
推薦閱讀
- SDL Game Development
- Effective STL中文版:50條有效使用STL的經驗(雙色)
- 硬件產品經理成長手記(全彩)
- 硬件產品經理手冊:手把手構建智能硬件產品
- Manage Partitions with GParted How-to
- 筆記本電腦應用技巧
- 新編電腦組裝與硬件維修從入門到精通
- 筆記本電腦芯片級維修從入門到精通(圖解版)
- 單片機原理與技能訓練
- IP網絡視頻傳輸:技術、標準和應用
- 基于網絡化教學的項目化單片機應用技術
- USB應用分析精粹:從設備硬件、固件到主機端程序設計
- 基于S5PV210處理器的嵌入式開發完全攻略
- 現代多媒體技術及應用
- Hands-On One-shot Learning with Python