Practical Uses for the “Curiously Recurring Template Pattern”

后端 未结 5 1555
孤街浪徒
孤街浪徒 2020-11-30 22:47

What are some practical uses for the \"Curiously Recurring Template Pattern\"? The \"counted class\" example commonly shown just isn\'t a convincing example to me.

5条回答
  •  爱一瞬间的悲伤
    2020-11-30 23:47

    Simulated dynamic binding. Avoiding the cost of virtual function calls while retaining some of the hierarchical benefits is an enormous win for the subsystems where it can be done in the project I am currently working on.

提交回复
热议问题