Using the Standard C++ Library in a Functional style. The standard C++ library offers a number of algorithms that have nearly exact analogues in functional languages, and are used in almost the same way. In particular std::accumulate and std::transform are powerful, and very general, algorithms. In functional programming literature, accumulate is usually referred to as […]

Functional Programming in C++ Part 1

Introduction C++ is known to be a multi-paradigmed language. This is often construedto mean you can program in both a procedural and and object orientedstyle. This is too limiting a view. C++, particularly with modernlibrary support, is more than capable of supporting programming inthe functional style. Even without modern libraries like boost, orstd::tr1, the Standard […]