HomeReference ⇀ TypeTraits.h

TypeTraits.h

Contains traits for compile-time type inspection and transformation.

#include "react/TypeTraits.h"

Synopsis

Classes

// True, if T is any signal type
bool IsSignal<T>::value

// True, if T is any event stream type
bool IsEvent<T>::value

// True, if T is any observer type
bool IsObserver<T>::value

// True, if T is any continuation type
bool IsContinuation<T>::value

// True, if T supports Observe()
bool IsObservable<T>::value

// True, if T is any reactive type,
// including signals, event streams, observers and continutations
bool IsReactive<T>::value

// Decays VarSignal/EventSource to Signal/Events, respectively
struct DecayInput<T>
{ 
    using Type = /* ... */
}