omni::event2::operator+=
NAME

omni::event2::operator+=

A member operator of omni::event2

#include <omni/delegate/2.hpp>
event2< Ret, PT1, PT2 >& omni::event2::operator+=(const omni::delegate2< Ret, PT1, PT2 >& d)


OVERLOADS

event2< Ret, PT1, PT2 >& omni::event2::operator+=(const event2< Ret, PT1, PT2 >& e)

SYNOPSIS

The += operator is used to add delegates to this event instance

top

DESCRIPTION

This is similar to calling the attach method on this instance. Each delegate is added to the end of the list and called in that order.

top

RETURN VALUES

s A reference to this

top


PARAMETERS

d - The right most operand delegate to add

top


CONSIDERATIONS

If the OMNI_SAFE_EVENT defines are not enabled, it is undefined if this event is invoked and edited at the same time; i.e. a race condition can occur if you detach to an event from one thread while invoking from another.

top