Using Monads in C++ to Solve Constraints: 2. The State Monad—Bartosz Milewski
Bartosz Milewski continues to explain how to use Monads in C++.
Using Monads in C++ to Solve Constraints: 2. The State Monad
by Bartosz Milewski
From the article:
We all like making plans, but they are often contingent on the state of our finances. Such plans can be described by functions. In general, a financial plan is a function that takes cash and returns the result paired with the new value of cash. It can be described generically using a template...

While we wait for CppCon 2015 in September, we’re featuring videos of some of the 100+ talks from CppCon 2014. Here is today’s feature:
While we wait for CppCon 2015 in September, we’re featuring videos of some of the 100+ talks from CppCon 2014. Here is today’s feature: