boost::mixin::combinators::sum
// In header: <boost/mixin/combinators.hpp> template<typename MessageReturnType> class sum { public: // types typedef MessageReturnType result_type; // construct/copy/destruct sum(); // public member functions bool add_result(const MessageReturnType &); const result_type & result() const; void reset(); };
A combinator for a sum operation. Sums all the return values of the multicast chain.
sum
public member functionsbool add_result(const MessageReturnType & r);The function used by the code generated for multicast messages.
const result_type & result() const;
The result of the operation if the multicast call has been made with an input/output parameter - an instance of sum
void reset();Resets the result, so the instance could be reused.