From 83f2c7a600ba89993987f5445b4ce4c65ae94b40 Mon Sep 17 00:00:00 2001 From: Aleksey Gurtovoy Date: Mon, 16 Mar 2009 06:28:47 +0000 Subject: [PATCH] Fix fold/reverse_fold docs (http://thread.gmane.org/gmane.comp.lib.boost.devel/187366) [SVN r51791] --- doc/src/refmanual/fold.rst | 7 +++++-- doc/src/refmanual/reverse_fold.rst | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) 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;