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

Advantages of the Stream programming model

Traditional OOP programs model hierarchies well, and processing hierarchies is mostly a difficult process compared to processing a linear collection. In the case of the Stream programming model, we can treat the input as a stream of entities put into a container and the output as a bag of entities, without modifying the input data stream. Using C++ generic programming techniques, we can write container-agnostic code to process streams. Some advantages of this model are:

  • Stream programming simplifies program logic
  • Streams can support lazy evaluation and functional style transforms
  • Streams are better suited for the concurrent programming model (Source Streams are immutable)
  • We can compose functions ...
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