Functional Programming in C++
How to improve your C++ programs using functional techniques
W
ell-written code is easier to test and reuse, simpler to
parallelize, and less error prone. Mastering the functional
style of programming can help you tackle the demands of
modern apps and will lead to simpler expression of complex program
logic, graceful error handling, and elegant concurrency. C++ supports
FP with templates, lambdas, and other core language features, along
with many parts of the STL.
Functional Programming in C++ helps you unleash the
functional side of your brain, as you gain a powerful new perspective
on C++ coding. You’ll discover dozens of examples, diagrams, and
illustrations that break down the functional concepts you can apply
in C++, including lazy evaluation, function objects and invokables,
algebraic data types, and more. As you read, you’ll match FP
techniques with practical scenarios where they offer the most benefit.
What’s inside
• Writing safer code with no performance penalties
• Explicitly handling errors through the type system
• Extending C++ with new control structures
• Composing tasks with DSLs
Written for developers with two or more years of experience
coding in C++.
is a core developer at KDE and has been coding in C++
since 1998. He teaches modern C++ and functional programming at
the Faculty of Mathematics at the University of Belgrade.
“ Offers precise, easy-to-
understand, and engaging
explanations of functional
concepts.”
—Sumant Tambe, LinkedIn
“ An excellent read. Comprehen-
sive code examples illustrate the
implementation of functional
programming patterns using
C
++14/C++17 constructs.”
— Keerthi Shetty
FactSet Research Systems
“ Provides elegant, easy-to-grasp,
ready-to-use examples that
will improve the way you think
about coding.”
— Nikos Athanasiou, BETA CAE Systems
“ Presents a new way of writing
quality software and a new way
of thinking.”
—Gian Lorenzo Meocci, CommProve
“ Particularly valuable for
intermediate/advanced C++
developers who want to embrace
reactive-style programming.”
—Marco Massenzio, Apple
To download their free eBook in PDF, ePub, and Kindle formats, owners of this book
should visit manning.com/books/functional-programming-in-c-plus-plus
US $49.99 / Can $65.99 [including eBook]
F
r
e
e
e
B
o
o
k
PROGRAMMING LANGUAGES/C++
Functional Programming in C++
SEE FIRST PAGE
MANNING
MANNING
MANNING