C++ monad library

Does anyone know of a good monad template library in C++. Perhaps, one that provides some of the common monads that you would see in Haskell like Maybe.


You may want to check out the "monad.h" header in FC++. You can read more about this in the "Monads" part of this page: http://people.cs.umass.edu/~yannis/fc++/New1.5/lambda.html#monad

However, this may not be suited to actual industrial use -- it's still a nice exercise to implement and use them in C++ though.


Boost.Optional中可以找到像Maybe这样的东西。

链接地址: http://www.djcxy.com/p/67322.html

上一篇: 在C ++中返回一个自定义字符串类的<<运算符函数的值

下一篇: C ++ monad库