- 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.
推薦閱讀
- Effective STL中文版:50條有效使用STL的經(jīng)驗(yàn)(雙色)
- 硬件產(chǎn)品經(jīng)理手冊(cè):手把手構(gòu)建智能硬件產(chǎn)品
- 單片機(jī)原理及應(yīng)用系統(tǒng)設(shè)計(jì)
- AMD FPGA設(shè)計(jì)優(yōu)化寶典:面向Vivado/SystemVerilog
- 分布式微服務(wù)架構(gòu):原理與實(shí)戰(zhàn)
- 微服務(wù)分布式架構(gòu)基礎(chǔ)與實(shí)戰(zhàn):基于Spring Boot + Spring Cloud
- 嵌入式系統(tǒng)中的模擬電路設(shè)計(jì)
- Rapid BeagleBoard Prototyping with MATLAB and Simulink
- BeagleBone Robotic Projects
- Hands-On Artificial Intelligence for Banking
- 單片機(jī)原理及應(yīng)用:基于C51+Proteus仿真
- FL Studio Cookbook
- The Artificial Intelligence Infrastructure Workshop
- Istio實(shí)戰(zhàn)指南
- 微服務(wù)實(shí)戰(zhàn)