omni::event16::attach
NAME

omni::event16::attach

A member function of omni::event16

#include <omni/delegate/16.hpp>
void omni::event16::attach(const omni::delegate16< Ret, PT1, PT2, PT3, PT4, PT5, PT6, PT7, PT8, PT9, PT10, PT11, PT12, PT13, PT14, PT15, PT16 >& d)


OVERLOADS

template < class InputIterator > void omni::event16::attach(InputIterator begin, InputIterator end)
void omni::event16::attach(const event16< Ret, PT1, PT2, PT3, PT4, PT5, PT6, PT7, PT8, PT9, PT10, PT11, PT12, PT13, PT14, PT15, PT16 >& e)
template < ret_t (*fnptr)(PT1, PT2, PT3, PT4, PT5, PT6, PT7, PT8, PT9, PT10, PT11, PT12, PT13, PT14, PT15, PT16) > void omni::event16::attach()
template < class T, Ret (T::*fnptr)(PT1, PT2, PT3, PT4, PT5, PT6, PT7, PT8, PT9, PT10, PT11, PT12, PT13, PT14, PT15, PT16) > void omni::event16::attach(T& obj)
template < class T, Ret (T::*fnptr)(PT1, PT2, PT3, PT4, PT5, PT6, PT7, PT8, PT9, PT10, PT11, PT12, PT13, PT14, PT15, PT16) > void omni::event16::attach(const T& obj)
template < class T, Ret (T::*fnptr)(PT1, PT2, PT3, PT4, PT5, PT6, PT7, PT8, PT9, PT10, PT11, PT12, PT13, PT14, PT15, PT16) > void omni::event16::attach(const T *const obj)

SYNOPSIS

Add (attach) a member delegate to this event instance

top

DESCRIPTION

Adds a delegate to the end of this instances invocation list. See the notes below about race conditions.

top

PARAMETERS

d - The member delegate to attach

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 attach to an event from one thread while invoking from another.

top


COMPLEXITY



top