This commit is contained in:
Light-City
2019-12-12 16:09:55 +08:00
parent 3ae20ae621
commit 4f149eec72
38 changed files with 1770 additions and 9 deletions

View 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)