Skip to Content
C++ Reactive Programming
book

C++ Reactive Programming

by Praseed Pai, Peter Abraham
June 2018
Intermediate to advanced
348 pages
8h 45m
English
Packt Publishing
Content preview from C++ Reactive Programming

Using the lift<t> operator to write a custom operator

The RxCpp library has an operator as part of the observable<T> implementation, called lift (lift<t>). In fact, it can be called a meta-operator as it has the capability to convert a unary function or functor that takes an ordinary variable (int, float, double, struct, and so on) to be compatible for processing observable<T> Streams. The RxCpp implementation of observable<T>::lift expects a Lambda that takes rxcpp::subscriber<T> as a parameter, and within the body of the Lambda, we can apply an action (a Lambda or a function). In this section, one can get an overview of the purpose of the lift<t> operator.

The lift operator takes any function or Lambda that will take a Subscriber for ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Functional Programming in C++

Functional Programming in C++

Ivan Cukic

Publisher Resources

ISBN: 9781788629775Supplemental Content