boost::mixin::mutually_exclusive_mixins
// In header: <boost/mixin/common_mutation_rules.hpp> class mutually_exclusive_mixins : public boost::mixin::mutation_rule, private boost::mixin::mixin_collection { public: // public member functions void apply_to(object_type_mutation &); };
A mutation rule for mutually exclusive mixins.
If active, such rule will cause a mutation that adds one of the mutually exclusive mixins, to remove all others.
For example, if a
, b
, and c
are mutually exclusive mixins, any mutation that adds, say a
, to an object, will automatically remove b
and c
from it.
mutually_exclusive_mixins
public member functionsvoid apply_to(object_type_mutation & mutation);Applies the rule to a mutation.