MulticastDelegate()

MulticastDelegate< ReturnType(ArgumentTypes…)>::MulticastDelegate() method

Constructs an empty collection.

System::MulticastDelegate<ReturnType(ArgumentTypes...)>::MulticastDelegate()

MulticastDelegate< ReturnType(ArgumentTypes…)>::MulticastDelegate(std::nullptr_t) method

Equivalent to defalt constructor.

System::MulticastDelegate<ReturnType(ArgumentTypes...)>::MulticastDelegate(std::nullptr_t)

MulticastDelegate< ReturnType(ArgumentTypes…)>::MulticastDelegate(const MulticastDelegate&) method

Performs a shallow copy of the delegate collection.

System::MulticastDelegate<ReturnType(ArgumentTypes...)>::MulticastDelegate(const MulticastDelegate &o)

Arguments

ParameterTypeDescription
oconst MulticastDelegate&An instance of MulticastDelegate class to copy the collection of delegates from.

MulticastDelegate< ReturnType(ArgumentTypes…)>::MulticastDelegate(MulticastDelegate&&) method

Moving constructor.

System::MulticastDelegate<ReturnType(ArgumentTypes...)>::MulticastDelegate(MulticastDelegate &&o) noexcept

Arguments

ParameterTypeDescription
oMulticastDelegate&&An instance of MulticastDelegate class to move the collection of delegates from.

MulticastDelegate< ReturnType(ArgumentTypes…)>::MulticastDelegate(Callback&&) method

Constructs an instance and puts the specified delegate to the delegates collection.

System::MulticastDelegate<ReturnType(ArgumentTypes...)>::MulticastDelegate(Callback &&initial)

Arguments

ParameterTypeDescription
initialCallback&&A delegate to put to the delegate collection

MulticastDelegate< ReturnType(ArgumentTypes…)>::MulticastDelegate(T) method

Constructs an instance and puts the specified value to the delegates collection.

template<class T,typename> System::MulticastDelegate<ReturnType(ArgumentTypes...)>::MulticastDelegate(T arg)

Template parameters

ParameterDescription
TType of the value to put to the delegate collection of the newly constructed instance; the type must be convertible to Callback type.

Arguments

ParameterTypeDescription
argTA value to put to the delegate collection

MulticastDelegate< ReturnType(ArgumentTypes…)>::MulticastDelegate(std::function<ReturnType(ArgumentTypes…)>) method

Constructs an instance and puts the specified value to the delegates collection.

System::MulticastDelegate<ReturnType(ArgumentTypes...)>::MulticastDelegate(std::function<ReturnType(ArgumentTypes...)> arg)

Arguments

ParameterTypeDescription
argstd::function<ReturnType(ArgumentTypes…)>A value to put to the delegate collection

See Also