8月19号是什么星座| 梦见黑色的蛇是什么意思| 什么什么之财| 医学上是什么意思| 鸭屎香是什么茶| 7月15是什么星座的| 梦见床代表什么预兆| 老花眼是什么症状| 血糖高吃什么水果最好| 为什么会头痛| 沈阳六院主要治什么病| 身份证什么时候开始有的| 女人背心正中间疼是什么原因| 口腔白斑是什么病| 人参是什么味道| 脚踝浮肿是什么原因引起的| 啤酒不能和什么一起吃| 鲁迅是什么家| 医学上cr是什么意思| 嗔是什么意思| 减脂早餐吃什么| moncler是什么品牌| soleil是什么意思| 止咳化痰什么药最好| 承你吉言是什么意思| 孕妇口腔溃疡能用什么药| 千山鸟飞绝的绝是什么意思| 螃蟹用什么呼吸| 一直想大便是什么原因| 转氨酶高挂什么科| 艾灸灸出水泡是什么情况| 小孩手足口病吃什么食物好| 厘米为什么叫公分| 6月26号是什么星座| 什么清什么白| mario是什么意思| 正餐是什么意思| 革兰氏阳性菌是什么病| 湿热吃什么中药| 什么是什么| 甲状腺看什么门诊| 念珠菌和霉菌有什么区别| 什么年马月| 情志病是什么意思| 小孩吃什么提高免疫力| 桑葚和枸杞泡水喝有什么好处| 香槟酒属于什么酒| 荨麻疹是什么引起| 粉红是什么意思| 玉米什么时候种| 梅尼埃病是什么病| 9月24号什么星座| 口腔出血是什么病征兆| 睾丸扭转有什么症状| 受精卵着床的时候会有什么症状| 嘴唇周围长痘痘是什么原因导致| 肋间神经痛什么症状| 长情是什么意思| 仓鼠吃什么| 男人吃荔枝有什么好处| 异常白细胞形态检查是查什么病| 为什么缺钾| 甲钴胺片主要治什么病| 怎么查自己五行缺什么| 湿气重有什么表现症状| 早年晚岁总无长是什么意思| 羊水是什么颜色| 什么叫无氧运动| 感冒喉咙痛挂什么科| 不长毛的猫叫什么名字| 西瓜又什么又什么| 暑假什么时候结束| 涵五行属什么| 印度人信仰什么教| 茯苓有什么功效和作用| 蜘蛛吃什么| 孕妇前三个月吃什么对胎儿好| 扪及是什么意思| 嘴唇神经跳动是什么原因| 禹字五行属什么的| 贪狼是什么意思| 脂肪肝适合吃什么食物| 肠胃不好拉肚子吃什么药| 521是什么星座| 什么品牌的奶粉最好| 插入是什么感觉| 脆豆腐是什么做的| 酵素是什么| 庆帝为什么杀叶轻眉| 2月出生的是什么星座| 西安什么省| 鬼斧神工是什么意思| 舞蹈症是什么病| 湿气重看中医挂什么科| 高血压属于什么系统疾病| 高考都考什么| 脚肿什么病| 冲是什么意思| 肘是什么意思| oioi是什么牌子| 心动过速吃什么药| 一什么马| 听雨是什么意思| 翻什么越什么| 甲亢是什么原因引起的| 交运是什么意思| 南京鸡鸣寺求什么灵| 胆经不通吃什么中成药| 什么是认证| 酒不醉人人自醉是什么意思| 奶粉结块是什么原因| 鸡蛋和什么炒好吃| 孕晚期呕吐是什么原因| 直肠炎是什么原因引起| 魅惑是什么意思| 女生取什么名字好听| 最贵的烟是什么牌子| peg是什么意思| 睡眠时间短是什么原因| 走之底的字与什么有关| 打牌老是输是什么原因| 抗体高是什么意思| 银行卡为什么会被冻结| 地龙是什么东西| 月球表面的坑叫什么| 什么是脑白质病| 家徒四壁是什么生肖| 什么是abo文| 空调买什么品牌的好| 慢性胆囊炎是什么原因引起的| 深化是什么意思| 女人性冷淡是什么原因| 2002年出生属什么| 眼睛出血是什么原因| 尿白细胞弱阳性是什么意思| 国民党为什么会失败| 福不唐捐什么意思| 人突然晕倒是什么原因引起的| 七月有什么节| 什么动物最容易摔倒| 爿是什么意思| 宫颈炎用什么药| 血压高吃什么水果好| 麦冬不能和什么一起吃| 唇亡齿寒什么意思| 血肌酐是什么意思| 放疗后吃什么恢复的快| 支原体阳性什么意思| 山代表什么动物| 胆碱是什么| 肠炎吃什么食物调理| 脑袋痛什么原因| 缺铁性贫血有什么症状| 大便黑色是什么原因| 企鹅代表什么生肖| 巨蟹座是什么性格| 膝盖小腿酸软无力是什么原因| 高同型半胱氨酸血症是什么病| 腹泻吃什么食物好得快| 起薪是什么意思| 议论纷纷是什么意思| 牛郎织女是什么意思| 吃什么对皮肤好| 梦见吃苹果是什么意思| 阴阳怪气是什么意思| 早泄吃什么补| 晚上看见蛇预示着什么| 梦见拉屎是什么意思| 为什么有钱人不去植发| 尿变红色是什么原因| 牙龈长泡是什么原因| 老年人腿浮肿是什么原因引起的| 儿保科主要是检查什么| 本命佛是什么意思| 常喝红茶有什么好处| 早日康复送什么花| dmd是什么病| 为什么喝牛奶会拉肚子| 发烧为什么会浑身酸疼| 吃什么长胸| 多管闲事是什么意思| 肠胃炎有什么症状| 母仪天下是什么意思| 平动是什么意思| bcr是什么意思| 戒定真香是什么意思| 吃海参有什么好处| 血压过低有什么危害| 黄帝叫什么名字| 四月二十五是什么星座| 奶水不足是什么原因造成的| bgm是什么| 一什么浮萍| 耳廓有痣代表什么| 农历六月十八是什么星座| 霉菌性阴道炎用什么药效果好| 子宫出血是什么原因造成的| 作践自己是什么意思| 11月11号什么星座| 抄底什么意思| 老年人缺钾是什么原因引起的| 令郎是什么意思| 无名指和食指一样长代表什么| 拜复乐是什么药| 哔哩哔哩是什么| 低密度脂蛋白偏高吃什么食物| 吃什么能变白| 去心火吃什么药| aemape是什么牌子| 食管反流用什么药效果好| dostinex是什么药| 点读笔什么牌子好| fe是什么意思| 看鼻子挂什么科| 跑步的配速是什么意思| 轻浮的女人是什么意思| 新生儿喝什么奶粉好| 宝宝发烧手脚冰凉是什么原因| 霉菌性阴道炎是什么症状| 倒吊人是什么意思| 牙齿有黑线是什么原因| 梦见下雪是什么意思| 什么瓜不能吃脑筋急转弯| strong什么意思| 精英是什么意思| 诗经是什么朝代的| 处男是什么意思| 冷血动物是什么意思| 肝不好吃什么药最好| 为什么精子射不出来| 雪花鱼是什么鱼| 霉菌是什么病| 结肠炎有什么症状表现| 戒色是什么意思| 孕妇梦到被蛇咬是什么意思| 女人送男人打火机代表什么| 大手牵小手是什么菜| 男朋友有什么用| 梦见丧尸是什么预兆| 胃有灼热感是什么原因| 儿童看牙齿挂什么科| 糖尿病人能喝什么饮料| 尿中泡沫多是什么原因| 24号来月经什么时候是排卵期| 腹直肌分离是什么意思| 抗生素药对人体有什么危害| 梦见妯娌是什么意思| sp什么意思| 大专是什么意思| 梦见买鞋子是什么意思| 怀孕腿抽筋是因为什么原因引起的| 斗地主是什么意思| 英氏属于什么档次的| 人流后吃什么好| 什么是色弱| 独活主治什么病| 米黄配什么颜色好看| 钱丢了预示着什么| 口腔溃疡吃什么| kub是什么检查| 一什么阳光| 希思黎属于什么档次| 脚二拇指比大拇指长代表什么| 女性私下有苦味主要是什么原因| 百度Jump to content

工商部门提醒:“定金”“订金”大不同 预付消费要看清

75% developed
From Wikibooks, open books for an open world

Preface

[edit | edit source]
More C++ Idioms C++ has indeed become too "expert friendly" -- Bjarne Stroustrup, The Problem with Programming, Technology Review, Nov 2006.

Stroustrup's saying is true because experts are intimately familiar with the idioms in the language. With the increase in the idioms a programmer understands, the language becomes friendlier to them. The objective of this open-content book is to present modern C++ idioms to programmers who have moderate level of familiarity with C++, and help elevate their knowledge so that C++ feels much friendlier to them. It is designed to be an exhaustive catalog of reusable idioms that expert C++ programmers often use while programming or designing using C++. This is an effort to capture their techniques and vocabulary into a single work. This book describes the idioms in a regular format: Name-Intent-Motivation-Solution-References, which is succinct and helps speed learning. By their nature, idioms tend to have appeared in the C++ community and in published work many times. An effort has been made to refer to the original source(s) where possible; if you find a reference incomplete or incorrect, please feel free to suggest or make improvements.

The world is invited to catalog reusable pieces of C++ knowledge (similar to the book on design patterns by GoF). The goal here is to first build an exhaustive catalog of modern C++ idioms and later evolve it into an idiom language, just like a pattern language. Finally, the contents of this book can be redistributed under the terms of the GNU Free Documentation License.

Aimed toward: Anyone with an intermediate level of knowledge in C++ and supported language paradigms

More Information

[edit | edit source]

Authors | Praise | Guidelines for Authors | GNU Free Documentation License

RSS Logo

More C++ Idioms Recent Changes RSS 2.0




Table of Contents

[edit | edit source]

Note: synonyms for each idiom are listed in parentheses.

  1. Acyclic Visitor Pattern TODO
  2. Address Of 75% developed  as of 9 October 2011
  3. Algebraic Hierarchy 75% developed  as of 12 June 2008
  4. Attach by Initialization 75% developed  as of 22 October 2011
  5. Attorney-Client 75% developed  as of 9 October 2011
  6. Barton-Nackman trick 75% developed  as of 21 February 2011
  7. Base-from-Member 75% developed  as of 6 August 2007
  8. Boost mutant 75% developed  as of 9 May 2010
  9. Calling Virtuals During Initialization 75% developed  as of 6 August 2007
  10. Capability Query 100% developed  as of 21 February 2011
  11. Checked delete 75% developed  as of 15 August 2007
  12. Clear-and-minimize 75% developed  as of 10 August 2007
  13. Coercion by Member Template 100% developed  as of 14 August 2007
  14. Computational Constructor 75% developed  as of 9 October 2011
  15. Concrete Data Type 75% developed  as of 17 March 2008
  16. Construct On First Use 75% developed  as of 6 August 2007
  17. Construction Tracker 75% developed  as of 6 August 2007
  18. Copy-and-swap 75% developed  as of 10 August 2007
  19. Copy-on-write 100% developed  as of 20 May 2009
  20. Thread-safe Copy-on-write 100% developed  as of 20 May 2009
  21. Intrusive reference counting (Counted Body) 75% developed  as of 16 November 2007
  22. Covariant Return Types TODO
  23. Curiously Recurring Template Pattern (CRTP) 100% developed  as of 7 June 2024
  24. Deprecate and Delete TODO
  25. Empty Base Optimization (EBO) 75% developed  as of 9 October 2011
  26. enable-if 75% developed  as of 21 Feb 2011
  27. Erase-Remove 75% developed  as of 17 November 2007
  28. Execute-Around Pointer 75% developed  as of 6 August 2007
  29. Exploding Return Type TODO
  30. Export Guard Macro TODO
  31. Expression-template 75% developed  as of 6 August 2007
  32. Fake Vtable TODO
  33. Fast Pimpl 0% developed  as of 6 August 2007 TODO
  34. Final Class 75% developed  as of 10 May 2010
  35. Free Function Allocators75% developed  as of 18 June 2014
  36. Function Object TODO
  37. Function Poisoning TODO
  38. Generic Container Idioms 75% developed  as of 22 November 2007
  39. Hierarchy Generation TODO
  40. Implicit conversions TODO
  41. Include Guard Macro 75% developed  as of 3 November 2007
  42. Inline Guard Macro 75% developed  as of 3 November 2007
  43. Inner Class 75% developed  as of 31 August 2007
  44. Int-To-Type 75% developed  as of 21 September 2008
  45. Interface Class 75% developed  as of 6 January 2008
  46. Iterator Pair 100% developed  as of 28 October 2007
  47. Making New Friends 75% developed  as of 5 January 2008
  48. Metafunction 75% developed  as of 15 September 2008
  49. Move Constructor 100% developed  as of 13 August 2007
  50. Multi-statement Macro 75% developed  as of 16 February 2008
  51. Member Detector 75% developed  as of 10 May 2010
  52. Named Constructor 75% developed  as of 28 September 2008
  53. Named External Argument TODO
  54. Named Loop (labeled loop) 75% developed  as of 9 May 2010
  55. Named Parameter 75% developed  as of 11 May 2010
  56. Named Template Parameters TODO
  57. Nifty Counter (Schwarz Counter) 75% developed  as of 6 August 2007
  58. Non-copyable Mixin 75% developed  as of 6 August 2007
  59. Non-member Non-friend Function 0% developed  as of 10 March 2008 TODO
  60. Non-throwing swap 75% developed  as of 9 January 2008
  61. Non-Virtual Interface (NVI, Public Overloaded Non-Virtuals Call Protected Non-Overloaded Virtuals) 75% developed  as of 12 June 2008
  62. nullptr 75% developed  as of 3 November 2007
  63. Object Generator 75% developed  as of 14 September 2008
  64. Object Template TODO
  65. Parameterized Base Class (Parameterized Inheritance) 75% developed  as of 6 August 2007
  66. Pimpl (Handle Body, Compilation Firewall, Cheshire Cat) 0% developed  as of 2 March 2011
  67. Policy Clone (Metafunction wrapper) 100% developed  as of 14 August 2007
  68. Policy-based Design TODO
  69. Polymorphic Exception 75% developed  as of 28 September 2008
  70. Polymorphic Value Types 75% developed  as of 21 June 2024
  71. Recursive Type Composition TODO
  72. Requiring or Prohibiting Heap-based Objects
  73. Resource Acquisition Is Initialization (RAII, Execute-Around Object, Scoped Locking) 100% developed  as of 6 November 2007
  74. Resource Return 75% developed  as of 3 November 2007
  75. Return Type Resolver 75% developed  as of 10 May 2010
  76. Runtime Static Initialization Order Idioms 75% developed  as of 6 August 2007
  77. Safe bool 75% developed  as of 6 August 2007
  78. Scope Guard 100% developed  as of 14 August 2007
  79. Substitution Failure Is Not An Error (SFINAE) 75% developed  as of 12 May 2012
  80. Shortening Long Template Names TODO
  81. Shrink-to-fit 75% developed  as of 10 August 2007
  82. Small Object Optimization TODO
  83. Smart Pointer 75% developed  as of 17 November 2007
  84. Storage Class Tracker TODO
  85. Tag Dispatching 50% developed  as of 20 June 2024
  86. Temporary Base Class 75% developed  as of 6 August 2007
  87. Temporary Proxy 75% developed  as of 6 August 2007
  88. The result_of technique TODO
  89. Thin Template 75% developed  as of 6 August 2007
  90. Thread-Safe Interface TODO
  91. Traits 75% developed  as of 20 June 2024
  92. Type Erasure 75% developed  as of 4 February 2015
  93. Type Generator (Templated Typedef) 75% developed  as of 14 September 2008
  94. Type Safe Enum 75% developed  as of 11 May 2010
  95. Type Selection 75% developed  as of 9 May 2010
  96. Virtual Constructor 75% developed  as of 17 March 2008
  97. Virtual Friend Function 75% developed  as of 10 May 2010

Advanced idioms

[edit | edit source]

These are some more advanced C++ idioms.

  1. Envelope Letter 75% developed  as of 1 February 2008 TODO


Deprecated idioms

[edit | edit source]
  1. Const auto_ptr 75% developed  as of 15 August 2007


Wikibook Development Stages
Sparse text 0% Developing text 25% Maturing text 50% Developed text 75% Comprehensive text 100%
弱阳性和阳性有什么区别 总打哈欠是什么原因 做颈动脉彩超挂什么科 vans属于什么档次 感恩节为什么要吃火鸡
晕车吃什么能缓解 一什么永什么 花甲和什么不能一起吃 梦见老虎是什么意思 开方是什么意思
脚底板疼是什么原因 荔枝可以做什么 什么是生理期 exp是什么函数 中国最厉害的武器是什么
女人下面 什么味道 roa是什么 买房要看什么 输卵管发炎有什么症状表现 芦笋是什么植物
情绪什么意思hcv8jop6ns7r.cn 耳石症吃什么药最好hcv8jop0ns2r.cn ih医学上是什么意思0735v.com 鱼字五行属什么hcv7jop6ns3r.cn 铁为什么会生锈hcv9jop4ns0r.cn
大脑供血不足是什么原因引起的hcv8jop2ns7r.cn 子宫内膜厚有什么症状xscnpatent.com 吃什么下奶最快最多最有效hcv9jop8ns2r.cn 阳是什么意思hcv8jop7ns6r.cn 4月5日什么星座hcv8jop0ns5r.cn
翡翠都有什么颜色gysmod.com 荨麻疹什么样hcv9jop4ns2r.cn 埋头苦干是什么生肖hcv9jop1ns4r.cn 童话故事有什么hcv7jop6ns6r.cn 乳腺结节看什么科hcv8jop6ns8r.cn
口舌生疮是什么原因hcv9jop1ns0r.cn 什么鲸鱼最大hcv9jop0ns0r.cn 共工是什么神hcv7jop5ns0r.cn 孕妇地中海贫血对胎儿有什么影响bfb118.com 怀孕皮肤变差什么原因hcv8jop9ns2r.cn
百度