What is C++ Mixin-Style?

后端 未结 5 1112
后悔当初
后悔当初 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:40

    Usually mixins are referred to as small classes (often templated or crtp based) that you derive from to "mix in" some functionality; usually via multiple inheritance and in policy based designs (also see "Modern C++ Design" by Alexandrescu).

提交回复
热议问题