HomeReferenceSignal.h ⇀ MakeSignal

MakeSignal function

Syntax

template
<
    typename D,
    typename F,
    typename ... TValues,
    typename S = result_of<F(TValues...)>::type
>
TempSignal<D,S,/*unspecified*/>
    MakeSignal(F&& func, const Signal<D,TValues>& ... args);

Semantics

Creates a new signal node with value v = func(args.Value(), ...). This value is set on construction and updated when any args have changed.

The signature of func should be equivalent to:

Graph

Drawing