- 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.
推薦閱讀
- 計(jì)算機(jī)組裝與系統(tǒng)配置
- 嵌入式系統(tǒng)設(shè)計(jì)教程
- micro:bit魔法修煉之Mpython初體驗(yàn)
- The Deep Learning with Keras Workshop
- 微軟互聯(lián)網(wǎng)信息服務(wù)(IIS)最佳實(shí)踐 (微軟技術(shù)開(kāi)發(fā)者叢書)
- Practical Machine Learning with R
- BeagleBone Robotic Projects
- 數(shù)字媒體專業(yè)英語(yǔ)(第2版)
- STM32自學(xué)筆記
- Intel FPGA權(quán)威設(shè)計(jì)指南:基于Quartus Prime Pro 19集成開(kāi)發(fā)環(huán)境
- Arduino項(xiàng)目開(kāi)發(fā):智能生活
- Corona SDK Mobile Game Development:Beginner's Guide
- 分布式存儲(chǔ)系統(tǒng):核心技術(shù)、系統(tǒng)實(shí)現(xiàn)與Go項(xiàng)目實(shí)戰(zhàn)
- 詳解FPGA:人工智能時(shí)代的驅(qū)動(dòng)引擎
- 施耐德M241/251可編程序控制器應(yīng)用技術(shù)