What is C++ Mixin-Style?

后端 未结 5 1119
后悔当初
后悔当初 2020-12-01 02:01

I have just come across this keyword C++ Mixin-Style, do anyone know what this is?

In this post, is has been answered as a design pattern. Is it the sam

5条回答
  •  心在旅途
    2020-12-01 02:47

    Mixins in C++ are expressed using the Curiously Recurring Template Pattern (CRTP). This post is an excellent breakdown of what they provide over other reuse techniques... compile-time polymorphism.

提交回复
热议问题