Skip to content

Commit 161f15d

Browse files
committed
Added TypeTraits reference.
1 parent 9dd3736 commit 161f15d

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

reference/TypeTraits.h/index.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,40 @@ groups:
55
- {name: Home, url: ''}
66
- {name: Reference , url: 'reference/'}
77
---
8-
Todo
8+
Contains traits for compile-time type inspection and transformation.
9+
10+
## Header
11+
{% highlight C++ %}
12+
#include "react/Signal.h"
13+
{% endhighlight %}
14+
15+
## Synopsis
16+
17+
### Classes
18+
19+
{% highlight C++ %}
20+
// True, if T is any signal type
21+
bool IsSignal<T>::value
22+
23+
// True, if T is any event stream type
24+
bool IsEvent<T>::value
25+
26+
// True, if T is any observer type
27+
bool IsObserver<T>::value
28+
29+
// True, if T is any continuation type
30+
bool IsContinuation<T>::value
31+
32+
// True, if T supports Observe()
33+
bool IsObservable<T>::value
34+
35+
// True, if T is any reactive type,
36+
// including signals, event streams, observers and continutations
37+
bool IsReactive<T>::value
38+
39+
// Decays VarSignal/EventSource to Signal/Events, respectively
40+
struct DecayInput<T>
41+
{
42+
using Type = /* ... */
43+
}
44+
{% endhighlight %}

0 commit comments

Comments
 (0)