Is there a name for a class that simply acts as a holder for mixins?

A simple example in C++ would look like this:

template<typename... Mixins>
class WhatsMyName : Mixins... {
};

WhatsMyName doesn't have any functionality of its own, and is just a proxy for the mixins that it contains.

Container and Holder seem too generic, MixingBowl is too cute, and Cone is too obscure. I'm stumped!

有帮助吗?

解决方案

It's a Case, or Armor. Or if you want to be cute, a Katamari.

其他提示

It's just a regular class. Mixins are an implementation detail and should have no effect on the naming. It should be named for what it does, not what it contains.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top