diff --git a/doc/src/refmanual/fold.rst b/doc/src/refmanual/fold.rst index 01e576b..a1ef4df 100644 --- a/doc/src/refmanual/fold.rst +++ b/doc/src/refmanual/fold.rst @@ -75,8 +75,11 @@ For any |Forward Sequence| ``s``, binary |Lambda Expression| ``op``, and arbitra .. parsed-literal:: - typedef iter_fold< s,state,apply > >::type t; - + typedef iter_fold< + s + , state + , apply2< lambda::type, _1, deref<_2> > + >::type t; Complexity diff --git a/doc/src/refmanual/reverse_fold.rst b/doc/src/refmanual/reverse_fold.rst index eb47644..b913f3d 100644 --- a/doc/src/refmanual/reverse_fold.rst +++ b/doc/src/refmanual/reverse_fold.rst @@ -88,7 +88,7 @@ and arbitrary type ``state``: typedef reverse_iter_fold< s , state - , apply > + , apply2< lambda::type, _1, deref<_2> > >::type t;