Logo
Explore Help
Register Sign In
backup/CPlusPlusThings
1
0
Fork 0
You've already forked CPlusPlusThings
mirror of https://github.com/Light-City/CPlusPlusThings.git synced 2026-02-03 02:24:11 +08:00
Code Issues Projects Releases Wiki Activity
Files
master
CPlusPlusThings/codingStyleIdioms
History
zhangxing 3c8a3f259b support bazel complie this project and format code.
2024-03-30 22:00:55 +08:00
..
1_classInitializers
support bazel complie this project and format code.
2024-03-30 22:00:55 +08:00
2_enumclass
support bazel complie this project and format code.
2024-03-30 22:00:55 +08:00
3_RAII
support bazel complie this project and format code.
2024-03-30 22:00:55 +08:00
4_copy-swap
support bazel complie this project and format code.
2024-03-30 22:00:55 +08:00
5_pImpl
support bazel complie this project and format code.
2024-03-30 22:00:55 +08:00
README.md
update
2019-12-12 16:09:55 +08:00

README.md

你最喜欢的c++编程风格惯用法是什么?

在stackoverflow上找到了一篇文章,写的蛮好的,地址如下:

https://stackoverflow.com/questions/276173/what-are-your-favorite-c-coding-style-idioms#comment60171463_2034439

由于是英文的,且比较重要,于是总结成下面几条!

  • 1.类初始化列表
  • 2.枚举类替换命名空间
  • 3.RAII(资源获取即初始化)
  • 4.copy and swap
  • 5.pImpl(指针指向具体实现)
Reference in New Issue View Git Blame Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 364ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API