2007-11-06 12:13:52 +00:00
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=ISO-8859-1" >
< title > fold< / title >
Merged revisions 40861-40888 via svnmerge from
https://svn.boost.org/svn/boost/trunk
........
r40862 | dave | 2007-11-06 15:39:09 -0800 (Tue, 06 Nov 2007) | 2 lines
Added missing copyright/license
........
r40863 | djowel | 2007-11-06 18:12:28 -0800 (Tue, 06 Nov 2007) | 1 line
added copyright and license info for each page.
........
r40864 | aaron_windsor | 2007-11-06 18:30:38 -0800 (Tue, 06 Nov 2007) | 1 line
Shortening file name of a graph test to < 32 characters
........
r40865 | djowel | 2007-11-06 18:34:18 -0800 (Tue, 06 Nov 2007) | 1 line
added license info in copyright notice at the footer
........
r40866 | djowel | 2007-11-06 19:06:23 -0800 (Tue, 06 Nov 2007) | 1 line
added license info in copyright notice at the footer
........
r40867 | djowel | 2007-11-06 19:23:31 -0800 (Tue, 06 Nov 2007) | 1 line
added license info in copyright notice at the footer
........
r40868 | djowel | 2007-11-06 19:25:59 -0800 (Tue, 06 Nov 2007) | 1 line
added copyright and license info for each page.
........
r40869 | djowel | 2007-11-06 19:27:38 -0800 (Tue, 06 Nov 2007) | 1 line
added license info in copyright notice at the footer
........
r40870 | djowel | 2007-11-06 19:30:01 -0800 (Tue, 06 Nov 2007) | 1 line
added copyright and license info for each page.
........
r40871 | djowel | 2007-11-06 19:35:49 -0800 (Tue, 06 Nov 2007) | 1 line
added copyright and license info for each page.
........
r40872 | djowel | 2007-11-06 19:37:51 -0800 (Tue, 06 Nov 2007) | 1 line
added copyright and license info for each page.
........
r40873 | djowel | 2007-11-06 19:46:23 -0800 (Tue, 06 Nov 2007) | 1 line
added copyright and license info for each page.
........
r40874 | chris_kohlhoff | 2007-11-06 22:49:36 -0800 (Tue, 06 Nov 2007) | 2 lines
Add copyright notice.
........
r40875 | chris_kohlhoff | 2007-11-06 22:53:17 -0800 (Tue, 06 Nov 2007) | 2 lines
Add myself as asio maintainer.
........
r40876 | chris_kohlhoff | 2007-11-06 23:23:53 -0800 (Tue, 06 Nov 2007) | 2 lines
Add asio.
........
r40877 | joaquin | 2007-11-07 00:45:27 -0800 (Wed, 07 Nov 2007) | 1 line
reapplied change at rev 40284
........
r40878 | johnmaddock | 2007-11-07 02:07:08 -0800 (Wed, 07 Nov 2007) | 1 line
Ooops, got the pp-logic wrong and disable long double support for all Unix platforms, instead of just Intel on Linux prior to version 10.
........
r40879 | johnmaddock | 2007-11-07 02:09:50 -0800 (Wed, 07 Nov 2007) | 1 line
Fix calls to fpclassify so they don't trigger macro expansion when fpclassify is a macro.
........
r40880 | t_schwinger | 2007-11-07 02:14:42 -0800 (Wed, 07 Nov 2007) | 3 lines
adds FunctionTypes
........
r40881 | johnmaddock | 2007-11-07 03:50:02 -0800 (Wed, 07 Nov 2007) | 1 line
Change test (again) so that the range of values tested matches original test: last change started testing more extreme input values, which caused regressions on Mac OS X.
........
r40882 | johnmaddock | 2007-11-07 03:59:39 -0800 (Wed, 07 Nov 2007) | 3 lines
Disabled use of long double when BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS is defined.
Disabled special-double precision error rates when BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS is defined.
........
r40883 | johnmaddock | 2007-11-07 04:04:01 -0800 (Wed, 07 Nov 2007) | 1 line
Oops get the name of test right!
........
r40884 | anthonyw | 2007-11-07 04:10:17 -0800 (Wed, 07 Nov 2007) | 1 line
Added missing licence and copyright
........
r40885 | garcia | 2007-11-07 04:25:16 -0800 (Wed, 07 Nov 2007) | 2 lines
added logging library.
........
r40886 | garcia | 2007-11-07 05:38:53 -0800 (Wed, 07 Nov 2007) | 2 lines
Exception was accepted.
........
r40887 | fcacciola | 2007-11-07 06:12:15 -0800 (Wed, 07 Nov 2007) | 1 line
Added explicit failures for newly discovered GCC const ref binding bug (see Ticket #1301)
........
[SVN r40891]
2007-11-07 16:22:38 +00:00
< link rel = "stylesheet" href = "../../../../../../../../doc/html/boostbook.css" type = "text/css" >
2007-11-06 12:13:52 +00:00
< meta name = "generator" content = "DocBook XSL Stylesheets V1.66.1" >
< link rel = "start" href = "../../../../index.html" title = "Chapter<65> 1.<2E> Fusion 2.0" >
< link rel = "up" href = "../functions.html" title = "Functions" >
< link rel = "prev" href = "../functions.html" title = "Functions" >
< link rel = "next" href = "accumulate.html" title = "accumulate" >
< / head >
< body bgcolor = "white" text = "black" link = "#0000FF" vlink = "#840084" alink = "#0000FF" >
< table cellpadding = "2" width = "100%" > < tr >
< td valign = "top" > < img alt = "Boost C++ Libraries" width = "277" height = "86" src = "../../../../../../../../boost.png" > < / td >
< td align = "center" > < a href = "../../../../../../../../index.htm" > Home< / a > < / td >
< td align = "center" > < a href = "../../../../../../../libraries.htm" > Libraries< / a > < / td >
< td align = "center" > < a href = "../../../../../../../../people/people.htm" > People< / a > < / td >
< td align = "center" > < a href = "../../../../../../../../more/faq.htm" > FAQ< / a > < / td >
< td align = "center" > < a href = "../../../../../../../../more/index.htm" > More< / a > < / td >
< / tr > < / table >
< hr >
< div class = "spirit-nav" >
< a accesskey = "p" href = "../functions.html" > < img src = "../../../../../../../../doc/html/images/prev.png" alt = "Prev" > < / a > < a accesskey = "u" href = "../functions.html" > < img src = "../../../../../../../../doc/html/images/up.png" alt = "Up" > < / a > < a accesskey = "h" href = "../../../../index.html" > < img src = "../../../../../../../../doc/html/images/home.png" alt = "Home" > < / a > < a accesskey = "n" href = "accumulate.html" > < img src = "../../../../../../../../doc/html/images/next.png" alt = "Next" > < / a >
< / div >
< div class = "section" lang = "en" >
< div class = "titlepage" > < div > < div > < h5 class = "title" >
< a name = "fusion.algorithm.iteration.functions.fold" > < / a > < a href = "fold.html" title = "fold" > fold< / a > < / h5 > < / div > < / div > < / div >
< a name = "fusion.algorithm.iteration.functions.fold.description" > < / a > < h6 >
Merged revisions 42067-42179 via svnmerge from
https://svn.boost.org/svn/boost/trunk
........
r42067 | johnmaddock | 2007-12-15 04:32:18 -0800 (Sat, 15 Dec 2007) | 1 line
MSVC warning suppression.
........
r42069 | bemandawes | 2007-12-15 06:26:16 -0800 (Sat, 15 Dec 2007) | 1 line
Correct misspelling of library name
........
r42074 | johnmaddock | 2007-12-15 09:10:03 -0800 (Sat, 15 Dec 2007) | 1 line
Fix error messages so they work with Boost.Format.
........
r42076 | johnmaddock | 2007-12-15 09:36:31 -0800 (Sat, 15 Dec 2007) | 1 line
Trivial patches to silence MSVC warnings.
........
r42078 | johnmaddock | 2007-12-15 10:29:29 -0800 (Sat, 15 Dec 2007) | 1 line
Disable long double tests if there's no long double support.
........
r42080 | johnmaddock | 2007-12-15 10:49:13 -0800 (Sat, 15 Dec 2007) | 1 line
Yet another MSVC warning suppression.
........
r42082 | bgubenko | 2007-12-15 10:53:01 -0800 (Sat, 15 Dec 2007) | 1 line
mark up Boost.Test tests for Linux ia64 gcc; make Boost.Interprocess unsupported on Linux ia64 gcc and PA-RISC
........
r42086 | anthonyw | 2007-12-15 14:34:30 -0800 (Sat, 15 Dec 2007) | 1 line
added timed_wait overloads that take a duration
........
r42087 | anthonyw | 2007-12-15 14:36:43 -0800 (Sat, 15 Dec 2007) | 1 line
explicit move functions for threads, with a test
........
r42105 | andreas_huber69 | 2007-12-16 06:58:24 -0800 (Sun, 16 Dec 2007) | 1 line
Removed markup for now passing Sandia tests.
........
r42112 | bemandawes | 2007-12-16 14:39:32 -0800 (Sun, 16 Dec 2007) | 1 line
Add intel-win-10.0 as required
........
r42116 | djowel | 2007-12-17 01:27:42 -0800 (Mon, 17 Dec 2007) | 1 line
fixed documentation bug
........
r42117 | anthonyw | 2007-12-17 03:24:13 -0800 (Mon, 17 Dec 2007) | 1 line
Updated move function test to be fair to Borland
........
r42118 | anthonyw | 2007-12-17 04:52:50 -0800 (Mon, 17 Dec 2007) | 1 line
boost::move support for locks
........
r42119 | chris_kohlhoff | 2007-12-17 05:04:30 -0800 (Mon, 17 Dec 2007) | 2 lines
Fixes for older HP-UX.
........
r42120 | chris_kohlhoff | 2007-12-17 05:08:10 -0800 (Mon, 17 Dec 2007) | 2 lines
Bump version number.
........
r42121 | chris_kohlhoff | 2007-12-17 05:17:46 -0800 (Mon, 17 Dec 2007) | 2 lines
Documentation fixes.
........
r42127 | bgubenko | 2007-12-17 10:06:11 -0800 (Mon, 17 Dec 2007) | 1 line
markup test library test prg_exec_fail2 for PA-RISC
........
r42138 | johnmaddock | 2007-12-18 08:37:23 -0800 (Tue, 18 Dec 2007) | 1 line
Fixes #1525.
........
r42141 | marshall | 2007-12-18 10:33:55 -0800 (Tue, 18 Dec 2007) | 1 line
Patches to fixe #1423 and #1473
........
r42145 | fmhess | 2007-12-18 12:14:01 -0800 (Tue, 18 Dec 2007) | 4 lines
Prevented "classname"/"methodname"/etc. elements inside "type" elements
inside "static-constant" elements from getting dropped.
........
r42164 | djowel | 2007-12-19 02:33:14 -0800 (Wed, 19 Dec 2007) | 1 line
bug fix for end_impl.
........
r42165 | djowel | 2007-12-19 02:33:39 -0800 (Wed, 19 Dec 2007) | 1 line
bug fix for end_impl. (test)
........
r42166 | anthonyw | 2007-12-19 02:39:45 -0800 (Wed, 19 Dec 2007) | 1 line
Updated thread ID, and added tests
........
r42167 | djowel | 2007-12-19 02:42:04 -0800 (Wed, 19 Dec 2007) | 1 line
tweakbug fix for end_impl (tweak).
........
r42168 | anthonyw | 2007-12-19 02:45:01 -0800 (Wed, 19 Dec 2007) | 1 line
Implement hardware_concurrency for pthread
........
r42169 | johnmaddock | 2007-12-19 08:41:54 -0800 (Wed, 19 Dec 2007) | 1 line
Fix graph title.
........
[SVN r42185]
2007-12-19 22:46:16 +00:00
< a name = "id578538" > < / a >
2007-11-06 12:13:52 +00:00
< a href = "fold.html#fusion.algorithm.iteration.functions.fold.description" > Description< / a >
< / h6 >
< p >
For a sequence < tt class = "computeroutput" > < span class = "identifier" > Seq< / span > < / tt > , initial
state, and binary function object or function pointer < tt class = "computeroutput" > < span class = "identifier" > f< / span > < / tt > ,
fold repeatedly applies binary < tt class = "computeroutput" > < span class = "identifier" > f< / span > < / tt >
to each element of < tt class = "computeroutput" > < span class = "identifier" > Seq< / span > < / tt >
and the previous state.
< / p >
< a name = "fusion.algorithm.iteration.functions.fold.synopsis" > < / a > < h6 >
Merged revisions 42067-42179 via svnmerge from
https://svn.boost.org/svn/boost/trunk
........
r42067 | johnmaddock | 2007-12-15 04:32:18 -0800 (Sat, 15 Dec 2007) | 1 line
MSVC warning suppression.
........
r42069 | bemandawes | 2007-12-15 06:26:16 -0800 (Sat, 15 Dec 2007) | 1 line
Correct misspelling of library name
........
r42074 | johnmaddock | 2007-12-15 09:10:03 -0800 (Sat, 15 Dec 2007) | 1 line
Fix error messages so they work with Boost.Format.
........
r42076 | johnmaddock | 2007-12-15 09:36:31 -0800 (Sat, 15 Dec 2007) | 1 line
Trivial patches to silence MSVC warnings.
........
r42078 | johnmaddock | 2007-12-15 10:29:29 -0800 (Sat, 15 Dec 2007) | 1 line
Disable long double tests if there's no long double support.
........
r42080 | johnmaddock | 2007-12-15 10:49:13 -0800 (Sat, 15 Dec 2007) | 1 line
Yet another MSVC warning suppression.
........
r42082 | bgubenko | 2007-12-15 10:53:01 -0800 (Sat, 15 Dec 2007) | 1 line
mark up Boost.Test tests for Linux ia64 gcc; make Boost.Interprocess unsupported on Linux ia64 gcc and PA-RISC
........
r42086 | anthonyw | 2007-12-15 14:34:30 -0800 (Sat, 15 Dec 2007) | 1 line
added timed_wait overloads that take a duration
........
r42087 | anthonyw | 2007-12-15 14:36:43 -0800 (Sat, 15 Dec 2007) | 1 line
explicit move functions for threads, with a test
........
r42105 | andreas_huber69 | 2007-12-16 06:58:24 -0800 (Sun, 16 Dec 2007) | 1 line
Removed markup for now passing Sandia tests.
........
r42112 | bemandawes | 2007-12-16 14:39:32 -0800 (Sun, 16 Dec 2007) | 1 line
Add intel-win-10.0 as required
........
r42116 | djowel | 2007-12-17 01:27:42 -0800 (Mon, 17 Dec 2007) | 1 line
fixed documentation bug
........
r42117 | anthonyw | 2007-12-17 03:24:13 -0800 (Mon, 17 Dec 2007) | 1 line
Updated move function test to be fair to Borland
........
r42118 | anthonyw | 2007-12-17 04:52:50 -0800 (Mon, 17 Dec 2007) | 1 line
boost::move support for locks
........
r42119 | chris_kohlhoff | 2007-12-17 05:04:30 -0800 (Mon, 17 Dec 2007) | 2 lines
Fixes for older HP-UX.
........
r42120 | chris_kohlhoff | 2007-12-17 05:08:10 -0800 (Mon, 17 Dec 2007) | 2 lines
Bump version number.
........
r42121 | chris_kohlhoff | 2007-12-17 05:17:46 -0800 (Mon, 17 Dec 2007) | 2 lines
Documentation fixes.
........
r42127 | bgubenko | 2007-12-17 10:06:11 -0800 (Mon, 17 Dec 2007) | 1 line
markup test library test prg_exec_fail2 for PA-RISC
........
r42138 | johnmaddock | 2007-12-18 08:37:23 -0800 (Tue, 18 Dec 2007) | 1 line
Fixes #1525.
........
r42141 | marshall | 2007-12-18 10:33:55 -0800 (Tue, 18 Dec 2007) | 1 line
Patches to fixe #1423 and #1473
........
r42145 | fmhess | 2007-12-18 12:14:01 -0800 (Tue, 18 Dec 2007) | 4 lines
Prevented "classname"/"methodname"/etc. elements inside "type" elements
inside "static-constant" elements from getting dropped.
........
r42164 | djowel | 2007-12-19 02:33:14 -0800 (Wed, 19 Dec 2007) | 1 line
bug fix for end_impl.
........
r42165 | djowel | 2007-12-19 02:33:39 -0800 (Wed, 19 Dec 2007) | 1 line
bug fix for end_impl. (test)
........
r42166 | anthonyw | 2007-12-19 02:39:45 -0800 (Wed, 19 Dec 2007) | 1 line
Updated thread ID, and added tests
........
r42167 | djowel | 2007-12-19 02:42:04 -0800 (Wed, 19 Dec 2007) | 1 line
tweakbug fix for end_impl (tweak).
........
r42168 | anthonyw | 2007-12-19 02:45:01 -0800 (Wed, 19 Dec 2007) | 1 line
Implement hardware_concurrency for pthread
........
r42169 | johnmaddock | 2007-12-19 08:41:54 -0800 (Wed, 19 Dec 2007) | 1 line
Fix graph title.
........
[SVN r42185]
2007-12-19 22:46:16 +00:00
< a name = "id578618" > < / a >
2007-11-06 12:13:52 +00:00
< a href = "fold.html#fusion.algorithm.iteration.functions.fold.synopsis" > Synopsis< / a >
< / h6 >
< pre class = "programlisting" >
< span class = "keyword" > template< / span > < span class = "special" > < < / span >
< span class = "keyword" > typename< / span > < span class = "identifier" > Sequence< / span > < span class = "special" > ,< / span >
< span class = "keyword" > typename< / span > < span class = "identifier" > State< / span > < span class = "special" > ,< / span >
< span class = "keyword" > typename< / span > < span class = "identifier" > F< / span >
< span class = "special" > > < / span >
< span class = "keyword" > typename< / span > < a href = "../metafunctions/fold.html" title = "fold" > < tt class = "computeroutput" > < span class = "identifier" > result_of< / span > < span class = "special" > ::< / span > < span class = "identifier" > fold< / span > < / tt > < / a > < span class = "special" > < < / span > < span class = "identifier" > Sequence< / span > < span class = "special" > ,< / span > < span class = "identifier" > State< / span > < span class = "special" > ,< / span > < span class = "identifier" > F< / span > < span class = "special" > > ::< / span > < span class = "identifier" > type< / span > < span class = "identifier" > fold< / span > < span class = "special" > (< / span >
< span class = "identifier" > Sequence< / span > < span class = "special" > & < / span > < span class = "identifier" > seq< / span > < span class = "special" > ,< / span > < span class = "identifier" > State< / span > < span class = "keyword" > const< / span > < span class = "special" > & < / span > < span class = "identifier" > initial_state< / span > < span class = "special" > ,< / span > < span class = "identifier" > F< / span > < span class = "keyword" > const< / span > < span class = "special" > & < / span > < span class = "identifier" > f< / span > < span class = "special" > );< / span >
< / pre >
< div class = "table" >
Merged revisions 42067-42179 via svnmerge from
https://svn.boost.org/svn/boost/trunk
........
r42067 | johnmaddock | 2007-12-15 04:32:18 -0800 (Sat, 15 Dec 2007) | 1 line
MSVC warning suppression.
........
r42069 | bemandawes | 2007-12-15 06:26:16 -0800 (Sat, 15 Dec 2007) | 1 line
Correct misspelling of library name
........
r42074 | johnmaddock | 2007-12-15 09:10:03 -0800 (Sat, 15 Dec 2007) | 1 line
Fix error messages so they work with Boost.Format.
........
r42076 | johnmaddock | 2007-12-15 09:36:31 -0800 (Sat, 15 Dec 2007) | 1 line
Trivial patches to silence MSVC warnings.
........
r42078 | johnmaddock | 2007-12-15 10:29:29 -0800 (Sat, 15 Dec 2007) | 1 line
Disable long double tests if there's no long double support.
........
r42080 | johnmaddock | 2007-12-15 10:49:13 -0800 (Sat, 15 Dec 2007) | 1 line
Yet another MSVC warning suppression.
........
r42082 | bgubenko | 2007-12-15 10:53:01 -0800 (Sat, 15 Dec 2007) | 1 line
mark up Boost.Test tests for Linux ia64 gcc; make Boost.Interprocess unsupported on Linux ia64 gcc and PA-RISC
........
r42086 | anthonyw | 2007-12-15 14:34:30 -0800 (Sat, 15 Dec 2007) | 1 line
added timed_wait overloads that take a duration
........
r42087 | anthonyw | 2007-12-15 14:36:43 -0800 (Sat, 15 Dec 2007) | 1 line
explicit move functions for threads, with a test
........
r42105 | andreas_huber69 | 2007-12-16 06:58:24 -0800 (Sun, 16 Dec 2007) | 1 line
Removed markup for now passing Sandia tests.
........
r42112 | bemandawes | 2007-12-16 14:39:32 -0800 (Sun, 16 Dec 2007) | 1 line
Add intel-win-10.0 as required
........
r42116 | djowel | 2007-12-17 01:27:42 -0800 (Mon, 17 Dec 2007) | 1 line
fixed documentation bug
........
r42117 | anthonyw | 2007-12-17 03:24:13 -0800 (Mon, 17 Dec 2007) | 1 line
Updated move function test to be fair to Borland
........
r42118 | anthonyw | 2007-12-17 04:52:50 -0800 (Mon, 17 Dec 2007) | 1 line
boost::move support for locks
........
r42119 | chris_kohlhoff | 2007-12-17 05:04:30 -0800 (Mon, 17 Dec 2007) | 2 lines
Fixes for older HP-UX.
........
r42120 | chris_kohlhoff | 2007-12-17 05:08:10 -0800 (Mon, 17 Dec 2007) | 2 lines
Bump version number.
........
r42121 | chris_kohlhoff | 2007-12-17 05:17:46 -0800 (Mon, 17 Dec 2007) | 2 lines
Documentation fixes.
........
r42127 | bgubenko | 2007-12-17 10:06:11 -0800 (Mon, 17 Dec 2007) | 1 line
markup test library test prg_exec_fail2 for PA-RISC
........
r42138 | johnmaddock | 2007-12-18 08:37:23 -0800 (Tue, 18 Dec 2007) | 1 line
Fixes #1525.
........
r42141 | marshall | 2007-12-18 10:33:55 -0800 (Tue, 18 Dec 2007) | 1 line
Patches to fixe #1423 and #1473
........
r42145 | fmhess | 2007-12-18 12:14:01 -0800 (Tue, 18 Dec 2007) | 4 lines
Prevented "classname"/"methodname"/etc. elements inside "type" elements
inside "static-constant" elements from getting dropped.
........
r42164 | djowel | 2007-12-19 02:33:14 -0800 (Wed, 19 Dec 2007) | 1 line
bug fix for end_impl.
........
r42165 | djowel | 2007-12-19 02:33:39 -0800 (Wed, 19 Dec 2007) | 1 line
bug fix for end_impl. (test)
........
r42166 | anthonyw | 2007-12-19 02:39:45 -0800 (Wed, 19 Dec 2007) | 1 line
Updated thread ID, and added tests
........
r42167 | djowel | 2007-12-19 02:42:04 -0800 (Wed, 19 Dec 2007) | 1 line
tweakbug fix for end_impl (tweak).
........
r42168 | anthonyw | 2007-12-19 02:45:01 -0800 (Wed, 19 Dec 2007) | 1 line
Implement hardware_concurrency for pthread
........
r42169 | johnmaddock | 2007-12-19 08:41:54 -0800 (Wed, 19 Dec 2007) | 1 line
Fix graph title.
........
[SVN r42185]
2007-12-19 22:46:16 +00:00
< a name = "id578877" > < / a > < p class = "title" > < b > Table<EFBFBD> 1.33.<2E> Parameters< / b > < / p >
2007-11-06 12:13:52 +00:00
< table class = "table" summary = "Parameters" >
< colgroup >
< col >
< col >
< col >
< / colgroup >
< thead > < tr >
< th >
< p >
Parameter
< / p >
< / th >
< th >
< p >
Requirement
< / p >
< / th >
< th >
< p >
Description
< / p >
< / th >
< / tr > < / thead >
< tbody >
< tr >
< td >
< p >
< tt class = "computeroutput" > < span class = "identifier" > seq< / span > < / tt >
< / p >
< / td >
< td >
< p >
A model of < a href = "../../../sequence/concepts/forward_sequence.html" title = "Forward
Sequence">Forward
Sequence< / a > ,< tt class = "computeroutput" > < span class = "identifier" > f< / span > < span class = "special" > (< / span > < span class = "identifier" > e< / span > < span class = "special" > ,< / span > < span class = "identifier" > s< / span > < span class = "special" > )< / span > < / tt > must be a valid expression for
each element < tt class = "computeroutput" > < span class = "identifier" > e< / span > < / tt >
in < tt class = "computeroutput" > < span class = "identifier" > seq< / span > < / tt > , and current
state < tt class = "computeroutput" > < span class = "identifier" > s< / span > < / tt >
< / p >
< / td >
< td >
< p >
Operation's argument
< / p >
< / td >
< / tr >
< tr >
< td >
< p >
< tt class = "computeroutput" > < span class = "identifier" > initial_state< / span > < / tt >
< / p >
< / td >
< td >
< p >
Any type
< / p >
< / td >
< td >
< p >
Initial state
< / p >
< / td >
< / tr >
< tr >
< td >
< p >
< tt class = "computeroutput" > < span class = "identifier" > f< / span > < / tt >
< / p >
< / td >
< td >
< p >
< tt class = "computeroutput" > < a href = "http://www.boost.org/libs/utility/utility.htm#result_of" target = "_top" > < tt class = "computeroutput" > < span class = "identifier" > boost< / span > < span class = "special" > ::< / span > < span class = "identifier" > result_of< / span > < / tt > < / a > < span class = "special" > < < / span > < span class = "identifier" > F< / span > < span class = "special" > (< / span > < span class = "identifier" > E< / span > < span class = "special" > ,< / span > < span class = "identifier" > S< / span > < span class = "special" > )> ::< / span > < span class = "identifier" > type< / span > < / tt > is the return type of < tt class = "computeroutput" > < span class = "identifier" > f< / span > < span class = "special" > (< / span > < span class = "identifier" > e< / span > < span class = "special" > ,< / span > < span class = "identifier" > s< / span > < span class = "special" > )< / span > < / tt >
for each element < tt class = "computeroutput" > < span class = "identifier" > e< / span > < / tt >
of type < tt class = "computeroutput" > < span class = "identifier" > E< / span > < / tt > in < tt class = "computeroutput" > < span class = "identifier" > seq< / span > < / tt > , and current state < tt class = "computeroutput" > < span class = "identifier" > s< / span > < / tt > of type < tt class = "computeroutput" > < span class = "identifier" > S< / span > < / tt >
< / p >
< / td >
< td >
< p >
Operation's argument
< / p >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
< a name = "fusion.algorithm.iteration.functions.fold.expression_semantics" > < / a > < h6 >
Merged revisions 42067-42179 via svnmerge from
https://svn.boost.org/svn/boost/trunk
........
r42067 | johnmaddock | 2007-12-15 04:32:18 -0800 (Sat, 15 Dec 2007) | 1 line
MSVC warning suppression.
........
r42069 | bemandawes | 2007-12-15 06:26:16 -0800 (Sat, 15 Dec 2007) | 1 line
Correct misspelling of library name
........
r42074 | johnmaddock | 2007-12-15 09:10:03 -0800 (Sat, 15 Dec 2007) | 1 line
Fix error messages so they work with Boost.Format.
........
r42076 | johnmaddock | 2007-12-15 09:36:31 -0800 (Sat, 15 Dec 2007) | 1 line
Trivial patches to silence MSVC warnings.
........
r42078 | johnmaddock | 2007-12-15 10:29:29 -0800 (Sat, 15 Dec 2007) | 1 line
Disable long double tests if there's no long double support.
........
r42080 | johnmaddock | 2007-12-15 10:49:13 -0800 (Sat, 15 Dec 2007) | 1 line
Yet another MSVC warning suppression.
........
r42082 | bgubenko | 2007-12-15 10:53:01 -0800 (Sat, 15 Dec 2007) | 1 line
mark up Boost.Test tests for Linux ia64 gcc; make Boost.Interprocess unsupported on Linux ia64 gcc and PA-RISC
........
r42086 | anthonyw | 2007-12-15 14:34:30 -0800 (Sat, 15 Dec 2007) | 1 line
added timed_wait overloads that take a duration
........
r42087 | anthonyw | 2007-12-15 14:36:43 -0800 (Sat, 15 Dec 2007) | 1 line
explicit move functions for threads, with a test
........
r42105 | andreas_huber69 | 2007-12-16 06:58:24 -0800 (Sun, 16 Dec 2007) | 1 line
Removed markup for now passing Sandia tests.
........
r42112 | bemandawes | 2007-12-16 14:39:32 -0800 (Sun, 16 Dec 2007) | 1 line
Add intel-win-10.0 as required
........
r42116 | djowel | 2007-12-17 01:27:42 -0800 (Mon, 17 Dec 2007) | 1 line
fixed documentation bug
........
r42117 | anthonyw | 2007-12-17 03:24:13 -0800 (Mon, 17 Dec 2007) | 1 line
Updated move function test to be fair to Borland
........
r42118 | anthonyw | 2007-12-17 04:52:50 -0800 (Mon, 17 Dec 2007) | 1 line
boost::move support for locks
........
r42119 | chris_kohlhoff | 2007-12-17 05:04:30 -0800 (Mon, 17 Dec 2007) | 2 lines
Fixes for older HP-UX.
........
r42120 | chris_kohlhoff | 2007-12-17 05:08:10 -0800 (Mon, 17 Dec 2007) | 2 lines
Bump version number.
........
r42121 | chris_kohlhoff | 2007-12-17 05:17:46 -0800 (Mon, 17 Dec 2007) | 2 lines
Documentation fixes.
........
r42127 | bgubenko | 2007-12-17 10:06:11 -0800 (Mon, 17 Dec 2007) | 1 line
markup test library test prg_exec_fail2 for PA-RISC
........
r42138 | johnmaddock | 2007-12-18 08:37:23 -0800 (Tue, 18 Dec 2007) | 1 line
Fixes #1525.
........
r42141 | marshall | 2007-12-18 10:33:55 -0800 (Tue, 18 Dec 2007) | 1 line
Patches to fixe #1423 and #1473
........
r42145 | fmhess | 2007-12-18 12:14:01 -0800 (Tue, 18 Dec 2007) | 4 lines
Prevented "classname"/"methodname"/etc. elements inside "type" elements
inside "static-constant" elements from getting dropped.
........
r42164 | djowel | 2007-12-19 02:33:14 -0800 (Wed, 19 Dec 2007) | 1 line
bug fix for end_impl.
........
r42165 | djowel | 2007-12-19 02:33:39 -0800 (Wed, 19 Dec 2007) | 1 line
bug fix for end_impl. (test)
........
r42166 | anthonyw | 2007-12-19 02:39:45 -0800 (Wed, 19 Dec 2007) | 1 line
Updated thread ID, and added tests
........
r42167 | djowel | 2007-12-19 02:42:04 -0800 (Wed, 19 Dec 2007) | 1 line
tweakbug fix for end_impl (tweak).
........
r42168 | anthonyw | 2007-12-19 02:45:01 -0800 (Wed, 19 Dec 2007) | 1 line
Implement hardware_concurrency for pthread
........
r42169 | johnmaddock | 2007-12-19 08:41:54 -0800 (Wed, 19 Dec 2007) | 1 line
Fix graph title.
........
[SVN r42185]
2007-12-19 22:46:16 +00:00
< a name = "id579286" > < / a >
2007-11-06 12:13:52 +00:00
< a href = "fold.html#fusion.algorithm.iteration.functions.fold.expression_semantics" > Expression
Semantics< / a >
< / h6 >
< pre class = "programlisting" >
< span class = "identifier" > fold< / span > < span class = "special" > (< / span > < span class = "identifier" > seq< / span > < span class = "special" > ,< / span > < span class = "identifier" > initial_state< / span > < span class = "special" > ,< / span > < span class = "identifier" > f< / span > < span class = "special" > );< / span >
< / pre >
< p >
< span class = "bold" > < b > Return type< / b > < / span > : Any type
< / p >
< p >
< span class = "bold" > < b > Semantics< / b > < / span > : Equivalent to < tt class = "computeroutput" > < span class = "identifier" > f< / span > < span class = "special" > (< / span > < span class = "identifier" > eN< / span > < span class = "special" > ....< / span > < span class = "identifier" > f< / span > < span class = "special" > (< / span > < span class = "identifier" > e2< / span > < span class = "special" > ,< / span > < span class = "identifier" > f< / span > < span class = "special" > (< / span > < span class = "identifier" > e1< / span > < span class = "special" > ,< / span > < span class = "identifier" > initial_state< / span > < span class = "special" > )))< / span > < / tt >
where < tt class = "computeroutput" > < span class = "identifier" > e1< / span > < span class = "special" > ...< / span > < span class = "identifier" > eN< / span > < / tt > are the elements of < tt class = "computeroutput" > < span class = "identifier" > seq< / span > < / tt > .
< / p >
< a name = "fusion.algorithm.iteration.functions.fold.complexity" > < / a > < h6 >
Merged revisions 42067-42179 via svnmerge from
https://svn.boost.org/svn/boost/trunk
........
r42067 | johnmaddock | 2007-12-15 04:32:18 -0800 (Sat, 15 Dec 2007) | 1 line
MSVC warning suppression.
........
r42069 | bemandawes | 2007-12-15 06:26:16 -0800 (Sat, 15 Dec 2007) | 1 line
Correct misspelling of library name
........
r42074 | johnmaddock | 2007-12-15 09:10:03 -0800 (Sat, 15 Dec 2007) | 1 line
Fix error messages so they work with Boost.Format.
........
r42076 | johnmaddock | 2007-12-15 09:36:31 -0800 (Sat, 15 Dec 2007) | 1 line
Trivial patches to silence MSVC warnings.
........
r42078 | johnmaddock | 2007-12-15 10:29:29 -0800 (Sat, 15 Dec 2007) | 1 line
Disable long double tests if there's no long double support.
........
r42080 | johnmaddock | 2007-12-15 10:49:13 -0800 (Sat, 15 Dec 2007) | 1 line
Yet another MSVC warning suppression.
........
r42082 | bgubenko | 2007-12-15 10:53:01 -0800 (Sat, 15 Dec 2007) | 1 line
mark up Boost.Test tests for Linux ia64 gcc; make Boost.Interprocess unsupported on Linux ia64 gcc and PA-RISC
........
r42086 | anthonyw | 2007-12-15 14:34:30 -0800 (Sat, 15 Dec 2007) | 1 line
added timed_wait overloads that take a duration
........
r42087 | anthonyw | 2007-12-15 14:36:43 -0800 (Sat, 15 Dec 2007) | 1 line
explicit move functions for threads, with a test
........
r42105 | andreas_huber69 | 2007-12-16 06:58:24 -0800 (Sun, 16 Dec 2007) | 1 line
Removed markup for now passing Sandia tests.
........
r42112 | bemandawes | 2007-12-16 14:39:32 -0800 (Sun, 16 Dec 2007) | 1 line
Add intel-win-10.0 as required
........
r42116 | djowel | 2007-12-17 01:27:42 -0800 (Mon, 17 Dec 2007) | 1 line
fixed documentation bug
........
r42117 | anthonyw | 2007-12-17 03:24:13 -0800 (Mon, 17 Dec 2007) | 1 line
Updated move function test to be fair to Borland
........
r42118 | anthonyw | 2007-12-17 04:52:50 -0800 (Mon, 17 Dec 2007) | 1 line
boost::move support for locks
........
r42119 | chris_kohlhoff | 2007-12-17 05:04:30 -0800 (Mon, 17 Dec 2007) | 2 lines
Fixes for older HP-UX.
........
r42120 | chris_kohlhoff | 2007-12-17 05:08:10 -0800 (Mon, 17 Dec 2007) | 2 lines
Bump version number.
........
r42121 | chris_kohlhoff | 2007-12-17 05:17:46 -0800 (Mon, 17 Dec 2007) | 2 lines
Documentation fixes.
........
r42127 | bgubenko | 2007-12-17 10:06:11 -0800 (Mon, 17 Dec 2007) | 1 line
markup test library test prg_exec_fail2 for PA-RISC
........
r42138 | johnmaddock | 2007-12-18 08:37:23 -0800 (Tue, 18 Dec 2007) | 1 line
Fixes #1525.
........
r42141 | marshall | 2007-12-18 10:33:55 -0800 (Tue, 18 Dec 2007) | 1 line
Patches to fixe #1423 and #1473
........
r42145 | fmhess | 2007-12-18 12:14:01 -0800 (Tue, 18 Dec 2007) | 4 lines
Prevented "classname"/"methodname"/etc. elements inside "type" elements
inside "static-constant" elements from getting dropped.
........
r42164 | djowel | 2007-12-19 02:33:14 -0800 (Wed, 19 Dec 2007) | 1 line
bug fix for end_impl.
........
r42165 | djowel | 2007-12-19 02:33:39 -0800 (Wed, 19 Dec 2007) | 1 line
bug fix for end_impl. (test)
........
r42166 | anthonyw | 2007-12-19 02:39:45 -0800 (Wed, 19 Dec 2007) | 1 line
Updated thread ID, and added tests
........
r42167 | djowel | 2007-12-19 02:42:04 -0800 (Wed, 19 Dec 2007) | 1 line
tweakbug fix for end_impl (tweak).
........
r42168 | anthonyw | 2007-12-19 02:45:01 -0800 (Wed, 19 Dec 2007) | 1 line
Implement hardware_concurrency for pthread
........
r42169 | johnmaddock | 2007-12-19 08:41:54 -0800 (Wed, 19 Dec 2007) | 1 line
Fix graph title.
........
[SVN r42185]
2007-12-19 22:46:16 +00:00
< a name = "id579497" > < / a >
2007-11-06 12:13:52 +00:00
< a href = "fold.html#fusion.algorithm.iteration.functions.fold.complexity" > Complexity< / a >
< / h6 >
< p >
Linear, exactly < tt class = "computeroutput" > < a href = "../../../sequence/intrinsic/metafunctions/size.html" title = "size" > < tt class = "computeroutput" > < span class = "identifier" > result_of< / span > < span class = "special" > ::< / span > < span class = "identifier" > size< / span > < / tt > < / a > < span class = "special" > < < / span > < span class = "identifier" > Sequence< / span > < span class = "special" > > ::< / span > < span class = "identifier" > value< / span > < / tt > applications of < tt class = "computeroutput" > < span class = "identifier" > f< / span > < / tt > .
< / p >
< a name = "fusion.algorithm.iteration.functions.fold.header" > < / a > < h6 >
Merged revisions 42067-42179 via svnmerge from
https://svn.boost.org/svn/boost/trunk
........
r42067 | johnmaddock | 2007-12-15 04:32:18 -0800 (Sat, 15 Dec 2007) | 1 line
MSVC warning suppression.
........
r42069 | bemandawes | 2007-12-15 06:26:16 -0800 (Sat, 15 Dec 2007) | 1 line
Correct misspelling of library name
........
r42074 | johnmaddock | 2007-12-15 09:10:03 -0800 (Sat, 15 Dec 2007) | 1 line
Fix error messages so they work with Boost.Format.
........
r42076 | johnmaddock | 2007-12-15 09:36:31 -0800 (Sat, 15 Dec 2007) | 1 line
Trivial patches to silence MSVC warnings.
........
r42078 | johnmaddock | 2007-12-15 10:29:29 -0800 (Sat, 15 Dec 2007) | 1 line
Disable long double tests if there's no long double support.
........
r42080 | johnmaddock | 2007-12-15 10:49:13 -0800 (Sat, 15 Dec 2007) | 1 line
Yet another MSVC warning suppression.
........
r42082 | bgubenko | 2007-12-15 10:53:01 -0800 (Sat, 15 Dec 2007) | 1 line
mark up Boost.Test tests for Linux ia64 gcc; make Boost.Interprocess unsupported on Linux ia64 gcc and PA-RISC
........
r42086 | anthonyw | 2007-12-15 14:34:30 -0800 (Sat, 15 Dec 2007) | 1 line
added timed_wait overloads that take a duration
........
r42087 | anthonyw | 2007-12-15 14:36:43 -0800 (Sat, 15 Dec 2007) | 1 line
explicit move functions for threads, with a test
........
r42105 | andreas_huber69 | 2007-12-16 06:58:24 -0800 (Sun, 16 Dec 2007) | 1 line
Removed markup for now passing Sandia tests.
........
r42112 | bemandawes | 2007-12-16 14:39:32 -0800 (Sun, 16 Dec 2007) | 1 line
Add intel-win-10.0 as required
........
r42116 | djowel | 2007-12-17 01:27:42 -0800 (Mon, 17 Dec 2007) | 1 line
fixed documentation bug
........
r42117 | anthonyw | 2007-12-17 03:24:13 -0800 (Mon, 17 Dec 2007) | 1 line
Updated move function test to be fair to Borland
........
r42118 | anthonyw | 2007-12-17 04:52:50 -0800 (Mon, 17 Dec 2007) | 1 line
boost::move support for locks
........
r42119 | chris_kohlhoff | 2007-12-17 05:04:30 -0800 (Mon, 17 Dec 2007) | 2 lines
Fixes for older HP-UX.
........
r42120 | chris_kohlhoff | 2007-12-17 05:08:10 -0800 (Mon, 17 Dec 2007) | 2 lines
Bump version number.
........
r42121 | chris_kohlhoff | 2007-12-17 05:17:46 -0800 (Mon, 17 Dec 2007) | 2 lines
Documentation fixes.
........
r42127 | bgubenko | 2007-12-17 10:06:11 -0800 (Mon, 17 Dec 2007) | 1 line
markup test library test prg_exec_fail2 for PA-RISC
........
r42138 | johnmaddock | 2007-12-18 08:37:23 -0800 (Tue, 18 Dec 2007) | 1 line
Fixes #1525.
........
r42141 | marshall | 2007-12-18 10:33:55 -0800 (Tue, 18 Dec 2007) | 1 line
Patches to fixe #1423 and #1473
........
r42145 | fmhess | 2007-12-18 12:14:01 -0800 (Tue, 18 Dec 2007) | 4 lines
Prevented "classname"/"methodname"/etc. elements inside "type" elements
inside "static-constant" elements from getting dropped.
........
r42164 | djowel | 2007-12-19 02:33:14 -0800 (Wed, 19 Dec 2007) | 1 line
bug fix for end_impl.
........
r42165 | djowel | 2007-12-19 02:33:39 -0800 (Wed, 19 Dec 2007) | 1 line
bug fix for end_impl. (test)
........
r42166 | anthonyw | 2007-12-19 02:39:45 -0800 (Wed, 19 Dec 2007) | 1 line
Updated thread ID, and added tests
........
r42167 | djowel | 2007-12-19 02:42:04 -0800 (Wed, 19 Dec 2007) | 1 line
tweakbug fix for end_impl (tweak).
........
r42168 | anthonyw | 2007-12-19 02:45:01 -0800 (Wed, 19 Dec 2007) | 1 line
Implement hardware_concurrency for pthread
........
r42169 | johnmaddock | 2007-12-19 08:41:54 -0800 (Wed, 19 Dec 2007) | 1 line
Fix graph title.
........
[SVN r42185]
2007-12-19 22:46:16 +00:00
< a name = "id579592" > < / a >
2007-11-06 12:13:52 +00:00
< a href = "fold.html#fusion.algorithm.iteration.functions.fold.header" > Header< / a >
< / h6 >
< pre class = "programlisting" >
< span class = "preprocessor" > #include< / span > < span class = "special" > < < / span > < span class = "identifier" > boost< / span > < span class = "special" > /< / span > < span class = "identifier" > fusion< / span > < span class = "special" > /< / span > < span class = "identifier" > algorithm< / span > < span class = "special" > /< / span > < span class = "identifier" > iteration< / span > < span class = "special" > /< / span > < span class = "identifier" > fold< / span > < span class = "special" > .< / span > < span class = "identifier" > hpp< / span > < span class = "special" > > < / span >
< span class = "preprocessor" > #include< / span > < span class = "special" > < < / span > < span class = "identifier" > boost< / span > < span class = "special" > /< / span > < span class = "identifier" > fusion< / span > < span class = "special" > /< / span > < span class = "identifier" > include< / span > < span class = "special" > /< / span > < span class = "identifier" > fold< / span > < span class = "special" > .< / span > < span class = "identifier" > hpp< / span > < span class = "special" > > < / span >
< / pre >
< a name = "fusion.algorithm.iteration.functions.fold.example" > < / a > < h6 >
Merged revisions 42067-42179 via svnmerge from
https://svn.boost.org/svn/boost/trunk
........
r42067 | johnmaddock | 2007-12-15 04:32:18 -0800 (Sat, 15 Dec 2007) | 1 line
MSVC warning suppression.
........
r42069 | bemandawes | 2007-12-15 06:26:16 -0800 (Sat, 15 Dec 2007) | 1 line
Correct misspelling of library name
........
r42074 | johnmaddock | 2007-12-15 09:10:03 -0800 (Sat, 15 Dec 2007) | 1 line
Fix error messages so they work with Boost.Format.
........
r42076 | johnmaddock | 2007-12-15 09:36:31 -0800 (Sat, 15 Dec 2007) | 1 line
Trivial patches to silence MSVC warnings.
........
r42078 | johnmaddock | 2007-12-15 10:29:29 -0800 (Sat, 15 Dec 2007) | 1 line
Disable long double tests if there's no long double support.
........
r42080 | johnmaddock | 2007-12-15 10:49:13 -0800 (Sat, 15 Dec 2007) | 1 line
Yet another MSVC warning suppression.
........
r42082 | bgubenko | 2007-12-15 10:53:01 -0800 (Sat, 15 Dec 2007) | 1 line
mark up Boost.Test tests for Linux ia64 gcc; make Boost.Interprocess unsupported on Linux ia64 gcc and PA-RISC
........
r42086 | anthonyw | 2007-12-15 14:34:30 -0800 (Sat, 15 Dec 2007) | 1 line
added timed_wait overloads that take a duration
........
r42087 | anthonyw | 2007-12-15 14:36:43 -0800 (Sat, 15 Dec 2007) | 1 line
explicit move functions for threads, with a test
........
r42105 | andreas_huber69 | 2007-12-16 06:58:24 -0800 (Sun, 16 Dec 2007) | 1 line
Removed markup for now passing Sandia tests.
........
r42112 | bemandawes | 2007-12-16 14:39:32 -0800 (Sun, 16 Dec 2007) | 1 line
Add intel-win-10.0 as required
........
r42116 | djowel | 2007-12-17 01:27:42 -0800 (Mon, 17 Dec 2007) | 1 line
fixed documentation bug
........
r42117 | anthonyw | 2007-12-17 03:24:13 -0800 (Mon, 17 Dec 2007) | 1 line
Updated move function test to be fair to Borland
........
r42118 | anthonyw | 2007-12-17 04:52:50 -0800 (Mon, 17 Dec 2007) | 1 line
boost::move support for locks
........
r42119 | chris_kohlhoff | 2007-12-17 05:04:30 -0800 (Mon, 17 Dec 2007) | 2 lines
Fixes for older HP-UX.
........
r42120 | chris_kohlhoff | 2007-12-17 05:08:10 -0800 (Mon, 17 Dec 2007) | 2 lines
Bump version number.
........
r42121 | chris_kohlhoff | 2007-12-17 05:17:46 -0800 (Mon, 17 Dec 2007) | 2 lines
Documentation fixes.
........
r42127 | bgubenko | 2007-12-17 10:06:11 -0800 (Mon, 17 Dec 2007) | 1 line
markup test library test prg_exec_fail2 for PA-RISC
........
r42138 | johnmaddock | 2007-12-18 08:37:23 -0800 (Tue, 18 Dec 2007) | 1 line
Fixes #1525.
........
r42141 | marshall | 2007-12-18 10:33:55 -0800 (Tue, 18 Dec 2007) | 1 line
Patches to fixe #1423 and #1473
........
r42145 | fmhess | 2007-12-18 12:14:01 -0800 (Tue, 18 Dec 2007) | 4 lines
Prevented "classname"/"methodname"/etc. elements inside "type" elements
inside "static-constant" elements from getting dropped.
........
r42164 | djowel | 2007-12-19 02:33:14 -0800 (Wed, 19 Dec 2007) | 1 line
bug fix for end_impl.
........
r42165 | djowel | 2007-12-19 02:33:39 -0800 (Wed, 19 Dec 2007) | 1 line
bug fix for end_impl. (test)
........
r42166 | anthonyw | 2007-12-19 02:39:45 -0800 (Wed, 19 Dec 2007) | 1 line
Updated thread ID, and added tests
........
r42167 | djowel | 2007-12-19 02:42:04 -0800 (Wed, 19 Dec 2007) | 1 line
tweakbug fix for end_impl (tweak).
........
r42168 | anthonyw | 2007-12-19 02:45:01 -0800 (Wed, 19 Dec 2007) | 1 line
Implement hardware_concurrency for pthread
........
r42169 | johnmaddock | 2007-12-19 08:41:54 -0800 (Wed, 19 Dec 2007) | 1 line
Fix graph title.
........
[SVN r42185]
2007-12-19 22:46:16 +00:00
< a name = "id579762" > < / a >
2007-11-06 12:13:52 +00:00
< a href = "fold.html#fusion.algorithm.iteration.functions.fold.example" > Example< / a >
< / h6 >
< pre class = "programlisting" >
< span class = "keyword" > struct< / span > < span class = "identifier" > make_string< / span >
< span class = "special" > {< / span >
< span class = "keyword" > typedef< / span > < span class = "identifier" > std< / span > < span class = "special" > ::< / span > < span class = "identifier" > string< / span > < span class = "identifier" > result_type< / span > < span class = "special" > ;< / span >
< span class = "keyword" > template< / span > < span class = "special" > < < / span > < span class = "keyword" > typename< / span > < span class = "identifier" > T< / span > < span class = "special" > > < / span >
< span class = "identifier" > std< / span > < span class = "special" > ::< / span > < span class = "identifier" > string< / span > < span class = "keyword" > operator< / span > < span class = "special" > ()(< / span > < span class = "keyword" > const< / span > < span class = "identifier" > T< / span > < span class = "special" > & < / span > < span class = "identifier" > t< / span > < span class = "special" > ,< / span > < span class = "keyword" > const< / span > < span class = "identifier" > std< / span > < span class = "special" > ::< / span > < span class = "identifier" > string< / span > < span class = "special" > & < / span > < span class = "identifier" > str< / span > < span class = "special" > )< / span > < span class = "keyword" > const< / span >
< span class = "special" > {< / span >
< span class = "keyword" > return< / span > < span class = "identifier" > str< / span > < span class = "special" > +< / span > < span class = "identifier" > boost< / span > < span class = "special" > ::< / span > < span class = "identifier" > lexical_cast< / span > < span class = "special" > < < / span > < span class = "identifier" > std< / span > < span class = "special" > ::< / span > < span class = "identifier" > string< / span > < span class = "special" > > (< / span > < span class = "identifier" > t< / span > < span class = "special" > );< / span >
< span class = "special" > }< / span >
< span class = "special" > };< / span >
< span class = "special" > ...< / span >
< span class = "keyword" > const< / span > < a href = "../../../container/vector.html" title = "vector" > < tt class = "computeroutput" > < span class = "identifier" > vector< / span > < / tt > < / a > < span class = "special" > < < / span > < span class = "keyword" > int< / span > < span class = "special" > ,< / span > < span class = "keyword" > int< / span > < span class = "special" > > < / span > < span class = "identifier" > vec< / span > < span class = "special" > (< / span > < span class = "number" > 1< / span > < span class = "special" > ,< / span > < span class = "number" > 2< / span > < span class = "special" > );< / span >
< span class = "identifier" > assert< / span > < span class = "special" > (< / span > < a href = "fold.html" title = "fold" > < tt class = "computeroutput" > < span class = "identifier" > fold< / span > < / tt > < / a > < span class = "special" > (< / span > < span class = "identifier" > vec< / span > < span class = "special" > ,< / span > < span class = "identifier" > std< / span > < span class = "special" > ::< / span > < span class = "identifier" > string< / span > < span class = "special" > (< / span > < span class = "string" > ""< / span > < span class = "special" > ),< / span > < span class = "identifier" > make_string< / span > < span class = "special" > ())< / span > < span class = "special" > ==< / span > < span class = "string" > "12"< / span > < span class = "special" > );< / span >
< / pre >
< / div >
< table xmlns:rev = "http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width = "100%" > < tr >
< td align = "left" > < / td >
Merged revisions 41072-41140 via svnmerge from
https://svn.boost.org/svn/boost/trunk
........
r41077 | troyer | 2007-11-13 23:00:02 -0800 (Tue, 13 Nov 2007) | 1 line
Added support for std::complex to serialization
........
r41078 | joaquin | 2007-11-13 23:09:29 -0800 (Tue, 13 Nov 2007) | 1 line
added missing include
........
r41079 | djowel | 2007-11-14 02:13:51 -0800 (Wed, 14 Nov 2007) | 1 line
adjust to compensate for lack of <small> tag.
........
r41080 | djowel | 2007-11-14 02:17:09 -0800 (Wed, 14 Nov 2007) | 1 line
refresh docs
........
r41081 | djowel | 2007-11-14 02:23:23 -0800 (Wed, 14 Nov 2007) | 1 line
refresh docs
........
r41082 | djowel | 2007-11-14 02:24:21 -0800 (Wed, 14 Nov 2007) | 1 line
refresh docs
........
r41083 | anthonyw | 2007-11-14 03:08:09 -0800 (Wed, 14 Nov 2007) | 1 line
ignore and join all threads in group on exception
........
r41084 | anthonyw | 2007-11-14 03:56:53 -0800 (Wed, 14 Nov 2007) | 1 line
interrupt and join all threads in a group if an exception is thrown during a test
........
r41086 | johnmaddock | 2007-11-14 04:14:19 -0800 (Wed, 14 Nov 2007) | 1 line
Merged changes from the Sandbox to Trunk.
........
r41087 | anthonyw | 2007-11-14 04:17:41 -0800 (Wed, 14 Nov 2007) | 1 line
interrupt and join all threads in a group if an exception is thrown during a test
........
r41088 | johnmaddock | 2007-11-14 04:41:32 -0800 (Wed, 14 Nov 2007) | 1 line
Added WinCE workaround.
........
r41089 | johnmaddock | 2007-11-14 05:03:15 -0800 (Wed, 14 Nov 2007) | 1 line
Catch exceptions thrown from thread creation.
........
r41090 | anthonyw | 2007-11-14 06:49:58 -0800 (Wed, 14 Nov 2007) | 1 line
fixes for pthread implementation
........
r41091 | bemandawes | 2007-11-14 07:50:43 -0800 (Wed, 14 Nov 2007) | 1 line
Replace old docs with excerpts from http://article.gmane.org/gmane.comp.lib.boost.testing/5020
........
r41093 | eric_niebler | 2007-11-14 08:36:15 -0800 (Wed, 14 Nov 2007) | 1 line
fix support for segmented iteration
........
r41094 | dave | 2007-11-14 09:37:55 -0800 (Wed, 14 Nov 2007) | 3 lines
Update command-prompt instructions per
http://news.gmane.org/find-root.php?message_id=%3cfhcrem%24c4%241%40ger.gmane.org%3e
........
r41095 | bemandawes | 2007-11-14 12:05:30 -0800 (Wed, 14 Nov 2007) | 1 line
Bring docs more in line with reality:-)
........
r41097 | hljin | 2007-11-14 18:07:53 -0800 (Wed, 14 Nov 2007) | 1 line
GIL: removed the example directory from the documentation as it is a duplication and re-directed the Doxygen documentation to a local copy (to be submitted next)
........
r41098 | hljin | 2007-11-14 18:30:13 -0800 (Wed, 14 Nov 2007) | 1 line
GIL: added a local copy of the Doxygen documentation
........
r41099 | hljin | 2007-11-14 18:32:04 -0800 (Wed, 14 Nov 2007) | 1 line
GIL: added a local copy of the Doxygen documentation (second batch)
........
r41100 | chris_kohlhoff | 2007-11-14 22:19:04 -0800 (Wed, 14 Nov 2007) | 6 lines
Try to fix an order-of-initialisation problem with error_category references.
The symptom, which only occurs in some applications, is a crash due to a
dereference of a null pointer. The exact conditions under which the problem
occurs are not fully understood, so this fix is probably more paranoid than
necessary.
........
r41102 | jhunold | 2007-11-14 23:04:24 -0800 (Wed, 14 Nov 2007) | 1 line
Suppress msvc "deprecated" warnings.
........
r41103 | johnmaddock | 2007-11-15 01:52:26 -0800 (Thu, 15 Nov 2007) | 1 line
Fix some compiler warnings when building with the Intel and aCC compilers.
........
r41104 | garcia | 2007-11-15 04:50:48 -0800 (Thu, 15 Nov 2007) | 2 lines
John Torjo is reviewing the X-files.
........
r41105 | hkaiser | 2007-11-15 05:27:24 -0800 (Thu, 15 Nov 2007) | 1 line
Suppressed more warnings during build of Wave.
........
r41106 | bemandawes | 2007-11-15 06:36:40 -0800 (Thu, 15 Nov 2007) | 1 line
GetUserDefaultUILanguage isn't present for Cygwin, so disable use
........
r41107 | bemandawes | 2007-11-15 07:20:27 -0800 (Thu, 15 Nov 2007) | 1 line
Get rid of .cvsignore files
........
r41108 | eric_niebler | 2007-11-15 08:06:22 -0800 (Thu, 15 Nov 2007) | 1 line
fix typo
........
r41110 | grafik | 2007-11-15 08:58:21 -0800 (Thu, 15 Nov 2007) | 1 line
Fix building of multiple regression tools at once.
........
r41111 | gmelquio | 2007-11-15 09:52:31 -0800 (Thu, 15 Nov 2007) | 1 line
Fixed documentation typo.
........
r41113 | grafik | 2007-11-15 10:56:43 -0800 (Thu, 15 Nov 2007) | 1 line
Switch intel-win32 to use static multi thread runtime since the single thread static runtime is no longer available. (fixes #1287)
........
r41114 | andreas_huber69 | 2007-11-15 11:22:12 -0800 (Thu, 15 Nov 2007) | 1 line
Added new FAQ item suggested by Chris Paulse.
........
r41116 | guwi17 | 2007-11-15 12:52:37 -0800 (Thu, 15 Nov 2007) | 4 lines
This patch now lets the Sun compiler work for most of uBLAS. 'test4' is now failing.
Too avoid other compilers complaining about missing return values in some functions where exceptions are thrown, code was added so an arbitatry were chosen.
........
r41117 | danmarsden | 2007-11-15 13:15:47 -0800 (Thu, 15 Nov 2007) | 1 line
removing failing test on EDG compilers
........
r41118 | grafik | 2007-11-15 14:05:15 -0800 (Thu, 15 Nov 2007) | 1 line
Remove redundant reference to system library. It causes double linking when used indirectly through filesystem. Which can lead to double linking incompatible variants when a specific filesystem variant is requested.
........
r41119 | grafik | 2007-11-15 14:05:22 -0800 (Thu, 15 Nov 2007) | 1 line
Oops, forgot we need to use the root boost project settings when building.
........
[SVN r41141]
2007-11-16 08:03:15 +00:00
< td align = "right" > < div class = "copyright-footer" > Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Merged revisions 40861-40888 via svnmerge from
https://svn.boost.org/svn/boost/trunk
........
r40862 | dave | 2007-11-06 15:39:09 -0800 (Tue, 06 Nov 2007) | 2 lines
Added missing copyright/license
........
r40863 | djowel | 2007-11-06 18:12:28 -0800 (Tue, 06 Nov 2007) | 1 line
added copyright and license info for each page.
........
r40864 | aaron_windsor | 2007-11-06 18:30:38 -0800 (Tue, 06 Nov 2007) | 1 line
Shortening file name of a graph test to < 32 characters
........
r40865 | djowel | 2007-11-06 18:34:18 -0800 (Tue, 06 Nov 2007) | 1 line
added license info in copyright notice at the footer
........
r40866 | djowel | 2007-11-06 19:06:23 -0800 (Tue, 06 Nov 2007) | 1 line
added license info in copyright notice at the footer
........
r40867 | djowel | 2007-11-06 19:23:31 -0800 (Tue, 06 Nov 2007) | 1 line
added license info in copyright notice at the footer
........
r40868 | djowel | 2007-11-06 19:25:59 -0800 (Tue, 06 Nov 2007) | 1 line
added copyright and license info for each page.
........
r40869 | djowel | 2007-11-06 19:27:38 -0800 (Tue, 06 Nov 2007) | 1 line
added license info in copyright notice at the footer
........
r40870 | djowel | 2007-11-06 19:30:01 -0800 (Tue, 06 Nov 2007) | 1 line
added copyright and license info for each page.
........
r40871 | djowel | 2007-11-06 19:35:49 -0800 (Tue, 06 Nov 2007) | 1 line
added copyright and license info for each page.
........
r40872 | djowel | 2007-11-06 19:37:51 -0800 (Tue, 06 Nov 2007) | 1 line
added copyright and license info for each page.
........
r40873 | djowel | 2007-11-06 19:46:23 -0800 (Tue, 06 Nov 2007) | 1 line
added copyright and license info for each page.
........
r40874 | chris_kohlhoff | 2007-11-06 22:49:36 -0800 (Tue, 06 Nov 2007) | 2 lines
Add copyright notice.
........
r40875 | chris_kohlhoff | 2007-11-06 22:53:17 -0800 (Tue, 06 Nov 2007) | 2 lines
Add myself as asio maintainer.
........
r40876 | chris_kohlhoff | 2007-11-06 23:23:53 -0800 (Tue, 06 Nov 2007) | 2 lines
Add asio.
........
r40877 | joaquin | 2007-11-07 00:45:27 -0800 (Wed, 07 Nov 2007) | 1 line
reapplied change at rev 40284
........
r40878 | johnmaddock | 2007-11-07 02:07:08 -0800 (Wed, 07 Nov 2007) | 1 line
Ooops, got the pp-logic wrong and disable long double support for all Unix platforms, instead of just Intel on Linux prior to version 10.
........
r40879 | johnmaddock | 2007-11-07 02:09:50 -0800 (Wed, 07 Nov 2007) | 1 line
Fix calls to fpclassify so they don't trigger macro expansion when fpclassify is a macro.
........
r40880 | t_schwinger | 2007-11-07 02:14:42 -0800 (Wed, 07 Nov 2007) | 3 lines
adds FunctionTypes
........
r40881 | johnmaddock | 2007-11-07 03:50:02 -0800 (Wed, 07 Nov 2007) | 1 line
Change test (again) so that the range of values tested matches original test: last change started testing more extreme input values, which caused regressions on Mac OS X.
........
r40882 | johnmaddock | 2007-11-07 03:59:39 -0800 (Wed, 07 Nov 2007) | 3 lines
Disabled use of long double when BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS is defined.
Disabled special-double precision error rates when BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS is defined.
........
r40883 | johnmaddock | 2007-11-07 04:04:01 -0800 (Wed, 07 Nov 2007) | 1 line
Oops get the name of test right!
........
r40884 | anthonyw | 2007-11-07 04:10:17 -0800 (Wed, 07 Nov 2007) | 1 line
Added missing licence and copyright
........
r40885 | garcia | 2007-11-07 04:25:16 -0800 (Wed, 07 Nov 2007) | 2 lines
added logging library.
........
r40886 | garcia | 2007-11-07 05:38:53 -0800 (Wed, 07 Nov 2007) | 2 lines
Exception was accepted.
........
r40887 | fcacciola | 2007-11-07 06:12:15 -0800 (Wed, 07 Nov 2007) | 1 line
Added explicit failures for newly discovered GCC const ref binding bug (see Ticket #1301)
........
[SVN r40891]
2007-11-07 16:22:38 +00:00
Schwinger< p >
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at < a href = "http://www.boost.org/LICENSE_1_0.txt" target = "_top" > http://www.boost.org/LICENSE_1_0.txt< / a > )
Merged revisions 41072-41140 via svnmerge from
https://svn.boost.org/svn/boost/trunk
........
r41077 | troyer | 2007-11-13 23:00:02 -0800 (Tue, 13 Nov 2007) | 1 line
Added support for std::complex to serialization
........
r41078 | joaquin | 2007-11-13 23:09:29 -0800 (Tue, 13 Nov 2007) | 1 line
added missing include
........
r41079 | djowel | 2007-11-14 02:13:51 -0800 (Wed, 14 Nov 2007) | 1 line
adjust to compensate for lack of <small> tag.
........
r41080 | djowel | 2007-11-14 02:17:09 -0800 (Wed, 14 Nov 2007) | 1 line
refresh docs
........
r41081 | djowel | 2007-11-14 02:23:23 -0800 (Wed, 14 Nov 2007) | 1 line
refresh docs
........
r41082 | djowel | 2007-11-14 02:24:21 -0800 (Wed, 14 Nov 2007) | 1 line
refresh docs
........
r41083 | anthonyw | 2007-11-14 03:08:09 -0800 (Wed, 14 Nov 2007) | 1 line
ignore and join all threads in group on exception
........
r41084 | anthonyw | 2007-11-14 03:56:53 -0800 (Wed, 14 Nov 2007) | 1 line
interrupt and join all threads in a group if an exception is thrown during a test
........
r41086 | johnmaddock | 2007-11-14 04:14:19 -0800 (Wed, 14 Nov 2007) | 1 line
Merged changes from the Sandbox to Trunk.
........
r41087 | anthonyw | 2007-11-14 04:17:41 -0800 (Wed, 14 Nov 2007) | 1 line
interrupt and join all threads in a group if an exception is thrown during a test
........
r41088 | johnmaddock | 2007-11-14 04:41:32 -0800 (Wed, 14 Nov 2007) | 1 line
Added WinCE workaround.
........
r41089 | johnmaddock | 2007-11-14 05:03:15 -0800 (Wed, 14 Nov 2007) | 1 line
Catch exceptions thrown from thread creation.
........
r41090 | anthonyw | 2007-11-14 06:49:58 -0800 (Wed, 14 Nov 2007) | 1 line
fixes for pthread implementation
........
r41091 | bemandawes | 2007-11-14 07:50:43 -0800 (Wed, 14 Nov 2007) | 1 line
Replace old docs with excerpts from http://article.gmane.org/gmane.comp.lib.boost.testing/5020
........
r41093 | eric_niebler | 2007-11-14 08:36:15 -0800 (Wed, 14 Nov 2007) | 1 line
fix support for segmented iteration
........
r41094 | dave | 2007-11-14 09:37:55 -0800 (Wed, 14 Nov 2007) | 3 lines
Update command-prompt instructions per
http://news.gmane.org/find-root.php?message_id=%3cfhcrem%24c4%241%40ger.gmane.org%3e
........
r41095 | bemandawes | 2007-11-14 12:05:30 -0800 (Wed, 14 Nov 2007) | 1 line
Bring docs more in line with reality:-)
........
r41097 | hljin | 2007-11-14 18:07:53 -0800 (Wed, 14 Nov 2007) | 1 line
GIL: removed the example directory from the documentation as it is a duplication and re-directed the Doxygen documentation to a local copy (to be submitted next)
........
r41098 | hljin | 2007-11-14 18:30:13 -0800 (Wed, 14 Nov 2007) | 1 line
GIL: added a local copy of the Doxygen documentation
........
r41099 | hljin | 2007-11-14 18:32:04 -0800 (Wed, 14 Nov 2007) | 1 line
GIL: added a local copy of the Doxygen documentation (second batch)
........
r41100 | chris_kohlhoff | 2007-11-14 22:19:04 -0800 (Wed, 14 Nov 2007) | 6 lines
Try to fix an order-of-initialisation problem with error_category references.
The symptom, which only occurs in some applications, is a crash due to a
dereference of a null pointer. The exact conditions under which the problem
occurs are not fully understood, so this fix is probably more paranoid than
necessary.
........
r41102 | jhunold | 2007-11-14 23:04:24 -0800 (Wed, 14 Nov 2007) | 1 line
Suppress msvc "deprecated" warnings.
........
r41103 | johnmaddock | 2007-11-15 01:52:26 -0800 (Thu, 15 Nov 2007) | 1 line
Fix some compiler warnings when building with the Intel and aCC compilers.
........
r41104 | garcia | 2007-11-15 04:50:48 -0800 (Thu, 15 Nov 2007) | 2 lines
John Torjo is reviewing the X-files.
........
r41105 | hkaiser | 2007-11-15 05:27:24 -0800 (Thu, 15 Nov 2007) | 1 line
Suppressed more warnings during build of Wave.
........
r41106 | bemandawes | 2007-11-15 06:36:40 -0800 (Thu, 15 Nov 2007) | 1 line
GetUserDefaultUILanguage isn't present for Cygwin, so disable use
........
r41107 | bemandawes | 2007-11-15 07:20:27 -0800 (Thu, 15 Nov 2007) | 1 line
Get rid of .cvsignore files
........
r41108 | eric_niebler | 2007-11-15 08:06:22 -0800 (Thu, 15 Nov 2007) | 1 line
fix typo
........
r41110 | grafik | 2007-11-15 08:58:21 -0800 (Thu, 15 Nov 2007) | 1 line
Fix building of multiple regression tools at once.
........
r41111 | gmelquio | 2007-11-15 09:52:31 -0800 (Thu, 15 Nov 2007) | 1 line
Fixed documentation typo.
........
r41113 | grafik | 2007-11-15 10:56:43 -0800 (Thu, 15 Nov 2007) | 1 line
Switch intel-win32 to use static multi thread runtime since the single thread static runtime is no longer available. (fixes #1287)
........
r41114 | andreas_huber69 | 2007-11-15 11:22:12 -0800 (Thu, 15 Nov 2007) | 1 line
Added new FAQ item suggested by Chris Paulse.
........
r41116 | guwi17 | 2007-11-15 12:52:37 -0800 (Thu, 15 Nov 2007) | 4 lines
This patch now lets the Sun compiler work for most of uBLAS. 'test4' is now failing.
Too avoid other compilers complaining about missing return values in some functions where exceptions are thrown, code was added so an arbitatry were chosen.
........
r41117 | danmarsden | 2007-11-15 13:15:47 -0800 (Thu, 15 Nov 2007) | 1 line
removing failing test on EDG compilers
........
r41118 | grafik | 2007-11-15 14:05:15 -0800 (Thu, 15 Nov 2007) | 1 line
Remove redundant reference to system library. It causes double linking when used indirectly through filesystem. Which can lead to double linking incompatible variants when a specific filesystem variant is requested.
........
r41119 | grafik | 2007-11-15 14:05:22 -0800 (Thu, 15 Nov 2007) | 1 line
Oops, forgot we need to use the root boost project settings when building.
........
[SVN r41141]
2007-11-16 08:03:15 +00:00
< / p >
< / div > < / td >
2007-11-06 12:13:52 +00:00
< / tr > < / table >
< hr >
< div class = "spirit-nav" >
< a accesskey = "p" href = "../functions.html" > < img src = "../../../../../../../../doc/html/images/prev.png" alt = "Prev" > < / a > < a accesskey = "u" href = "../functions.html" > < img src = "../../../../../../../../doc/html/images/up.png" alt = "Up" > < / a > < a accesskey = "h" href = "../../../../index.html" > < img src = "../../../../../../../../doc/html/images/home.png" alt = "Home" > < / a > < a accesskey = "n" href = "accumulate.html" > < img src = "../../../../../../../../doc/html/images/next.png" alt = "Next" > < / a >
< / div >
< / body >
< / html >