4.6.0
Freundlich's C++ toolkit
|
Used to implement a monad instance.
This class needs the following:
template<typename Type> struct constructor
with an inner typedef called type
. This applies the monad constructor to Type. template<typenameType> struct inner_type
with an inner typedef called type
. This extracts the type passed to a monad constructor. template<typename T> constructor<T> return_(T)
. template<typename T,typename U> constructor<U> bind(constructor<T>,constructor<U>(T))
.