C ++程序员应该使用什么C ++成语? [英] What C++ idioms should C++ programmers use?

查看:213
本文介绍了C ++程序员应该使用什么C ++成语?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C ++程序员知道什么C ++成语?



通过C ++成语,我的意思是设计模式或做某些只适用于C ++或更多适用于C ++比大多数其他语言。



为什么要使用成语,成语怎么做?

解决方案

这是一个列表。如果我不得不选择一对,我可能会用奇怪的循环模板模式或虚拟构造函数。


What C++ idioms should C++ programmers know?

By C++ idioms, I mean design patterns or way of doing certain things that are only applicable for C++ or more applicable for C++ than most other languages.

Why one should use the idioms, and what do the idioms accomplish?

解决方案

Here is one list. If I had to pick a couple I might go with the Curiously Recurring Template Pattern or Virtual Contstructors.

这篇关于C ++程序员应该使用什么C ++成语?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆