0.10.0
Adapting context
ownership scheme from master branch of cpp.react
- BREAKING!
context
is no longer a thing that user should guarantee to die last
after each ureact nodes using thiscontext
are destroyed.
Instead, now it has shared pointer semantic and each ureact node has a copy of it.
Socontext
dies only after all its owners diy. - BREAKING!
count_
andlift_
are renamed tocount_as
andlift_as
respectively. - BREAKING!
merge
adaptor is no longer selecting result type based on the type of
the first source event stream, but tries to determine result type usingstd::common_type
.
Additionallymerge_as
version is added to manually select the result type. - BREAKING!
equal_to
is replaced with the oppositehas_changed
.
All user overloads ofequal_to
are impacted. - New adaptor
monitor_change
is added. It emits (old value, new value) pairs on
monitored signal changes. - New adaptor
elements
and its specializationskeys
andvalues
are added.
They do exactly the same that analogs fromstd::ranges
do.
https://en.cppreference.com/w/cpp/ranges/elements_view - New adaptor
stride
is added.
It does exactly the same that analog fromstd::ranges
does.
https://en.cppreference.com/w/cpp/ranges/stride_view - New adaptor
slice
is added.
ureact::slice(M, N)
is equivalent toureact::drop(M) | ureact::take(N - M)
.