15 lines
556 B
Markdown
15 lines
556 B
Markdown
# 你最喜欢的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)
|
||
|