mirror of
https://github.com/Light-City/CPlusPlusThings.git
synced 2026-04-15 11:00:18 +08:00
update
This commit is contained in:
14
codingStyleIdioms/README.md
Normal file
14
codingStyleIdioms/README.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# 你最喜欢的c++编程风格惯用法是什么?
|
||||
|
||||
在stackoverflow上找到了一篇文章,写的蛮好的,地址如下:
|
||||
|
||||
> https://stackoverflow.com/questions/276173/what-are-your-favorite-c-coding-style-idioms#comment60171463_2034439
|
||||
|
||||
由于是英文的,且比较重要,于是总结成下面几条!
|
||||
|
||||
- [1.类初始化列表](./1_classInitializers)
|
||||
- [2.枚举类替换命名空间](./2_enumclass_namespace)
|
||||
- [3.RAII(资源获取即初始化)](./3_RAII)
|
||||
- [4.copy and swap](./4_copy-swap)
|
||||
- [5.pImpl(指针指向具体实现)](./5_pImpl)
|
||||
|
||||
Reference in New Issue
Block a user