PrevUpHomeNext

Class same_type_mutator

boost::mixin::same_type_mutator

Synopsis

// In header: <boost/mixin/same_type_mutator.hpp>


class same_type_mutator : public boost::mixin::internal::object_mutator {
public:
  // construct/copy/destruct
  same_type_mutator();
  same_type_mutator(const internal::object_type_info *);

  // public member functions
  void apply_to(object &);
};

Description

The same type object mutator mutates objects of the same type. Namely, it adds and removes mixins from objects that initially have the same mixins.

If you want to mutate many objects of the same type, using this class will make it much faster than using the single_object_mutator multiple times.

same_type_mutator public construct/copy/destruct

  1. same_type_mutator();
  2. same_type_mutator(const internal::object_type_info * info);

same_type_mutator public member functions

  1. void apply_to(object & o);

PrevUpHomeNext