From 9df373af5f53cd6ca0e349d03ff306fbfc156714 Mon Sep 17 00:00:00 2001
From: Tobias Schwinger
@@ -67,7 +67,7 @@
as we want without incurring a high runtime penalty.
@@ -90,7 +90,7 @@
functions to convert back to the original sequence type.
-
+
Lazy Evaluation
-
+
Sequence Extension
-
+
Header
diff --git a/doc/html/fusion/algorithms/iteration.html b/doc/html/fusion/algorithms/iteration.html
index 31990fd7..49fd6ae5 100644
--- a/doc/html/fusion/algorithms/iteration.html
+++ b/doc/html/fusion/algorithms/iteration.html
@@ -34,7 +34,7 @@
a sequence repeatedly applying an operation to its elements.
diff --git a/doc/html/fusion/algorithms/iteration/functions/accumulate.html b/doc/html/fusion/algorithms/iteration/functions/accumulate.html index 7ed3e1ed..960351da 100644 --- a/doc/html/fusion/algorithms/iteration/functions/accumulate.html +++ b/doc/html/fusion/algorithms/iteration/functions/accumulate.html @@ -26,7 +26,7 @@- + Description
@@ -37,7 +37,7 @@
fold
.- + Synopsis
@@ -50,7 +50,7 @@ Sequence& seq, State const& initial_state, F const& f);-Table 1.33. Parameters
+Table 1.34. Parameters
@@ -58,42 +58,86 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence,
f(eN ....f(e2,f(e1,initial_state)))
must be a valid expression for - each elemente1
to -eN
inseq
-Operation's argument + Sequence,f(eN + ....f(e2,f(e1,initial_state)))
must be a valid expression for + each elemente1
+ toeN
inseq
+ + ++ + Operation's argument +
+- - initial_state
Any - type -Initial state ++ ++
+initial_state
++ ++ Any type +
++ + Initial state +
+- - f
A - model of binary f + + ++ -+ A model of binary Polymorphic - Function Object -
Operation's argument + Function Object + + ++ + Operation's argument +
+- + Expression Semantics
@@ -108,21 +152,21 @@ wheree1 ...eN
are the elements ofseq
.- + Complexity
Linear, exactly
applications of
result_of::size
<Sequence>::valuef
.- + Header
#include <boost/fusion/algorithm/iteration/accumulate.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/iteration/functions/fold.html b/doc/html/fusion/algorithms/iteration/functions/fold.html index 800e4803..a682962e 100644 --- a/doc/html/fusion/algorithms/iteration/functions/fold.html +++ b/doc/html/fusion/algorithms/iteration/functions/fold.html @@ -26,7 +26,7 @@- + Description
@@ -36,7 +36,7 @@ to each element of a sequence and the previous state.
- + Synopsis
@@ -49,7 +49,7 @@ Sequence& seq, State const& initial_state, F const& f);-Table 1.32. Parameters
+Table 1.33. Parameters
@@ -57,41 +57,85 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence,
f(e)
must be a valid expression for each - elemente
inseq
-Operation's argument + Sequence,f(e)
must be a valid expression for + each elemente
+ inseq
+ + ++ + Operation's argument +
+- - initial_state
Any - type -Initial state ++ ++
+initial_state
++ ++ Any type +
++ + Initial state +
+- - f
A - model of binary f + + ++ -+ A model of binary Polymorphic - Function Object -
Operation's argument + Function Object + + ++ + Operation's argument +
+- + Expression Semantics
@@ -106,21 +150,21 @@ wheree1 ...eN
are the elements ofseq
.- + Complexity
Linear, exactly
applications of
result_of::size
<Sequence>::valuef
.- + Header
#include <boost/fusion/algorithm/iteration/fold.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/iteration/functions/for_each.html b/doc/html/fusion/algorithms/iteration/functions/for_each.html index 863f7897..75854a61 100644 --- a/doc/html/fusion/algorithms/iteration/functions/for_each.html +++ b/doc/html/fusion/algorithms/iteration/functions/for_each.html @@ -26,14 +26,14 @@- + Description
Applies a unary function object to each element of a sequence.
- + Synopsis
@@ -45,7 +45,7 @@ Sequence& seq, F const& f);-Table 1.34. Parameters
+Table 1.35. Parameters
@@ -53,32 +53,68 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence,
f(e)
must be a valid expression for each - elemente
inseq
-Operation's argument + Sequence,f(e)
must be a valid expression for + each elemente
+ inseq
+ + ++ + Operation's argument +
+- - f
A - unary function object -Operation's argument ++ ++
+f
++ ++ A unary Regular + Callable Object +
++ + Operation's argument +
+- + Expression Semantics
@@ -93,21 +129,21 @@ inseq
.- + Complexity
Linear, exactly
applications of
result_of::size
<Sequence>::valuef
.- + Header
#include <boost/fusion/algorithm/iteration/for_each.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/iteration/metafunctions/accumulate.html b/doc/html/fusion/algorithms/iteration/metafunctions/accumulate.html index 49b016a9..02d9802b 100644 --- a/doc/html/fusion/algorithms/iteration/metafunctions/accumulate.html +++ b/doc/html/fusion/algorithms/iteration/metafunctions/accumulate.html @@ -26,14 +26,14 @@- + Description
Returns the result type of
accumulate
.- + Synopsis
@@ -47,7 +47,7 @@ };
-Table 1.36. Parameters
+Table 1.37. Parameters
@@ -55,43 +55,83 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
The sequence to iterate + Sequence + + ++ + The sequence to iterate +
+- - State
Any - type -The initial state for the first application of - +F
-+ ++
+State
++ ++ Any type +
++ + The initial state for the first application of
+F
+- - F
A - model of binary F + + ++ -+ A model of binary Polymorphic - Function Object -
The operation to be applied - on forward traversal + Function Object + + ++ + The operation to be applied on forward traversal +
+- + Expression Semantics
@@ -111,14 +151,14 @@ Function Object of typeF
.- + Complexity
Linear, exactly
applications of
result_of::size
<Sequence>::valueF
.- + Header
diff --git a/doc/html/fusion/algorithms/iteration/metafunctions/fold.html b/doc/html/fusion/algorithms/iteration/metafunctions/fold.html index c935dc93..23daef97 100644 --- a/doc/html/fusion/algorithms/iteration/metafunctions/fold.html +++ b/doc/html/fusion/algorithms/iteration/metafunctions/fold.html @@ -26,14 +26,14 @@- + Description
Returns the result type of
fold
.- + Synopsis
@@ -47,7 +47,7 @@ };
-Table 1.35. Parameters
+Table 1.36. Parameters
@@ -55,43 +55,83 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
The sequence to iterate + Sequence + + ++ + The sequence to iterate +
+- - State
Any - type -The initial state for the first application of - +F
-+ ++
+State
++ ++ Any type +
++ + The initial state for the first application of
+F
+- - F
A - model of binary F + + ++ -+ A model of binary Polymorphic - Function Object -
The operation to be applied - on forward traversal + Function Object + + ++ + The operation to be applied on forward traversal +
+- + Expression Semantics
@@ -111,14 +151,14 @@ Function Object of typeF
.- + Complexity
Linear, exactly
applications of
result_of::size
<Sequence>::valueF
.- + Header
diff --git a/doc/html/fusion/algorithms/iteration/metafunctions/for_each.html b/doc/html/fusion/algorithms/iteration/metafunctions/for_each.html index 8a0a3ba5..a6d600c2 100644 --- a/doc/html/fusion/algorithms/iteration/metafunctions/for_each.html +++ b/doc/html/fusion/algorithms/iteration/metafunctions/for_each.html @@ -30,11 +30,11 @@ return type offor_each
is alwaysvoid
.- + Description
- + Synopsis
@@ -48,7 +48,7 @@ };
-Table 1.37. Parameters
+Table 1.38. Parameters
@@ -56,31 +56,64 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - F
Any - type -Operation's argument ++ ++
+F
++ ++ Any type +
++ + Operation's argument +
+- + Expression Semantics
@@ -98,14 +131,14 @@ return type is alwaysvoid
.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/query.html b/doc/html/fusion/algorithms/query.html index 2d35022d..e55d91d0 100644 --- a/doc/html/fusion/algorithms/query.html +++ b/doc/html/fusion/algorithms/query.html @@ -33,7 +33,7 @@ The query algorithms provide support for searching and analyzing sequences.- + Header
diff --git a/doc/html/fusion/algorithms/query/functions/all.html b/doc/html/fusion/algorithms/query/functions/all.html index b060a62b..fa6ceda0 100644 --- a/doc/html/fusion/algorithms/query/functions/all.html +++ b/doc/html/fusion/algorithms/query/functions/all.html @@ -26,7 +26,7 @@- + Description
@@ -37,7 +37,7 @@ element of
seq
.- + Synopsis
@@ -49,7 +49,7 @@ Sequence const& seq, F f);-Table 1.39. Parameters
+Table 1.40. Parameters
@@ -57,34 +57,66 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence,
f(e)
is a valid expression, convertible - tobool
, for every element -e
inseq
-The sequence - to search + Sequence,f(e)
is a valid expression, convertible + tobool
, for every + elemente
inseq
+ + ++ + The sequence to search +
+- - f
A - unary function object -The search predicate ++ ++
+f
++ ++ A unary function object +
++ + The search predicate +
+- + Expression Semantics
@@ -101,21 +133,21 @@ elemente
inseq
.- + Complexity
Linear. At most
comparisons.
result_of::size
<Sequence>::value- + Header
#include <boost/fusion/algorithm/query/all.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/query/functions/any.html b/doc/html/fusion/algorithms/query/functions/any.html index b8f49487..b7d148d3 100644 --- a/doc/html/fusion/algorithms/query/functions/any.html +++ b/doc/html/fusion/algorithms/query/functions/any.html @@ -26,7 +26,7 @@- + Description
@@ -37,7 +37,7 @@ least one element of
seq
.- + Synopsis
@@ -49,7 +49,7 @@ Sequence const& seq, F f);-Table 1.38. Parameters
+Table 1.39. Parameters
@@ -57,34 +57,66 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence,
f(e)
must be a valid expression, convertible - tobool
, for each element -e
inseq
-The sequence - to search + Sequence,f(e)
must be a valid expression, convertible + tobool
, for each + elemente
inseq
+ + ++ + The sequence to search +
+- - f
A - unary function object -The search predicate ++ ++
+f
++ ++ A unary function object +
++ + The search predicate +
+- + Expression semantics
@@ -101,21 +133,21 @@ elemente
inseq
.- + Complexity
Linear. At most
comparisons.
result_of::size
<Sequence>::value- + Header
#include <boost/fusion/algorithm/query/any.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/query/functions/count.html b/doc/html/fusion/algorithms/query/functions/count.html index 2e508ff2..4cbb30d2 100644 --- a/doc/html/fusion/algorithms/query/functions/count.html +++ b/doc/html/fusion/algorithms/query/functions/count.html @@ -26,14 +26,14 @@- + Description
Returns the number of elements of a given type within a sequence.
- + Synopsis
@@ -45,7 +45,7 @@ Sequence const& seq, T const& t);-Table 1.43. Parameters
+Table 1.44. Parameters
@@ -53,35 +53,67 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence,
e == t
- must be a valid expression, convertible tobool
, - for each elemente
- inseq
-The - sequence to search + Sequence,e == t
+ must be a valid expression, convertible tobool
, + for each elemente
+ inseq
+ + ++ + The sequence to search +
+- - T
Any - type -The type to count ++ ++
+T
++ ++ Any type +
++ + The type to count +
+- + Expression Semantics
@@ -97,21 +129,21 @@t
inseq
.- + Complexity
Linear. At most
comparisons.
result_of::size
<Sequence>::value- + Header
#include <boost/fusion/algorithm/query/count.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/query/functions/count_if.html b/doc/html/fusion/algorithms/query/functions/count_if.html index 51f92335..87ab285c 100644 --- a/doc/html/fusion/algorithms/query/functions/count_if.html +++ b/doc/html/fusion/algorithms/query/functions/count_if.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ a given unary function object evaluates to
true
.- + Synopsis
@@ -46,7 +46,7 @@ Sequence const& seq, F f);-Table 1.44. Parameters
+Table 1.45. Parameters
@@ -54,34 +54,66 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence,
f(e)
is a valid expression, convertible - tobool
, for each element -e
inseq
-The sequence - to search + Sequence,f(e)
is a valid expression, convertible + tobool
, for each + elemente
inseq
+ + ++ + The sequence to search +
+- - f
A - unary function object -The search predicate ++ ++
+f
++ ++ A unary function object +
++ + The search predicate +
+- + Expression Semantics
@@ -96,21 +128,21 @@ inseq
wheref
evaluates totrue
.- + Complexity
Linear. At most
comparisons.
result_of::size
<Sequence>::value- + Header
#include <boost/fusion/algorithm/query/count_if.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/query/functions/find.html b/doc/html/fusion/algorithms/query/functions/find.html index b3a6b50e..c62dd9b5 100644 --- a/doc/html/fusion/algorithms/query/functions/find.html +++ b/doc/html/fusion/algorithms/query/functions/find.html @@ -26,14 +26,14 @@- + Description
Finds the first element of a given type within a sequence.
- + Synopsis
@@ -50,7 +50,7 @@ unspecified find(Sequence& seq);-Table 1.41. Parameters
+Table 1.42. Parameters
@@ -58,31 +58,64 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence -
The sequence to search + Sequence + + ++ + The sequence to search +
+- - T
Any - type -The type to search for ++ ++
+T
++ ++ Any type +
++ + The type to search for +
+- + Expression Semantics
@@ -100,21 +133,21 @@ to
find_if
<boost::is_same<_, T> >(seq)- + Complexity
Linear. At most
comparisons.
result_of::size
<Sequence>::value- + Header
#include <boost/fusion/algorithm/query/find.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/query/functions/find_if.html b/doc/html/fusion/algorithms/query/functions/find_if.html index 61f159a5..67e4e84b 100644 --- a/doc/html/fusion/algorithms/query/functions/find_if.html +++ b/doc/html/fusion/algorithms/query/functions/find_if.html @@ -31,11 +31,11 @@ Lambda Expression evaluates toboost::mpl::true_
.- + Description
- + Synopsis
@@ -52,7 +52,7 @@ unspecified find_if(Sequence& seq);-Table 1.42. Parameters
+Table 1.43. Parameters
@@ -60,33 +60,65 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence -
The sequence to search + Sequence + + ++ + The sequence to search +
+- - F
A - unary MPL - Lambda Expression - -The search predicate ++ ++
+F
++ ++ A unary MPL + Lambda Expression +
++ + The search predicate +
+- + Expression Semantics
@@ -105,21 +137,21 @@ if there is no such element.- + Complexity
Linear. At most
comparisons.
result_of::size
<Sequence>::value- + Header
#include <boost/fusion/algorithm/query/find_if.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/query/functions/none.html b/doc/html/fusion/algorithms/query/functions/none.html index fe64b207..b99a3660 100644 --- a/doc/html/fusion/algorithms/query/functions/none.html +++ b/doc/html/fusion/algorithms/query/functions/none.html @@ -26,7 +26,7 @@- + Description
@@ -37,7 +37,7 @@ element of
seq
.- + Synopsis
@@ -49,7 +49,7 @@ Sequence const& seq, F f);-Table 1.40. Parameters
+Table 1.41. Parameters
@@ -57,34 +57,66 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence,
f(e)
is a valid expression, convertible - tobool
, for every element -e
inseq
-The sequence - to search + Sequence,f(e)
is a valid expression, convertible + tobool
, for every + elemente
inseq
+ + ++ + The sequence to search +
+- - f
A - unary function object -The search predicate ++ ++
+f
++ ++ A unary function object +
++ + The search predicate +
+- + Expression Semantics
@@ -101,21 +133,21 @@ elemente
inseq
. Result equivalent to!any(seq, f)
.- + Complexity
Linear. At most
comparisons.
result_of::size
<Sequence>::value- + Header
#include <boost/fusion/algorithm/query/none.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/query/metafunctions/all.html b/doc/html/fusion/algorithms/query/metafunctions/all.html index e474eb54..5d463a4f 100644 --- a/doc/html/fusion/algorithms/query/metafunctions/all.html +++ b/doc/html/fusion/algorithms/query/metafunctions/all.html @@ -26,14 +26,14 @@- + Description
A metafunction returning the result type of
all
.- + Synopsis
@@ -47,7 +47,7 @@ };
-Table 1.46. Parameters
+Table 1.47. Parameters
@@ -55,34 +55,66 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - F
A - model of unary F + + ++ -+ A model of unary Polymorphic - Function Object -
Operation's argument + Function Object + + ++ + Operation's argument +
+- + Expression Semantics
@@ -102,14 +134,14 @@ The return type is alwaysbool
.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/query/metafunctions/any.html b/doc/html/fusion/algorithms/query/metafunctions/any.html index 1ec76401..0e097efe 100644 --- a/doc/html/fusion/algorithms/query/metafunctions/any.html +++ b/doc/html/fusion/algorithms/query/metafunctions/any.html @@ -26,14 +26,14 @@- + Description
A metafunction returning the result type of
any
.- + Synopsis
@@ -47,7 +47,7 @@ };
-Table 1.45. Parameters
+Table 1.46. Parameters
@@ -55,34 +55,66 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - F
A - model of unary F + + ++ -+ A model of unary Polymorphic - Function Object -
Operation's argument + Function Object + + ++ + Operation's argument +
+- + Expression Semantics
@@ -102,14 +134,14 @@ The return type is alwaysbool
.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/query/metafunctions/count.html b/doc/html/fusion/algorithms/query/metafunctions/count.html index fdc787b6..7a7d81a9 100644 --- a/doc/html/fusion/algorithms/query/metafunctions/count.html +++ b/doc/html/fusion/algorithms/query/metafunctions/count.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ given the sequence and search types.
- + Synopsis
@@ -48,7 +48,7 @@ };
-Table 1.50. Parameters
+Table 1.51. Parameters
@@ -56,32 +56,64 @@ - Parameter -Requirement -heading - Description ++ ++ Parameter +
++ ++ Requirement +
++ + heading Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - T
Any - type -Operation's argument ++ ++
+T
++ ++ Any type +
++ + Operation's argument +
+- + Expression Semantics
@@ -97,14 +129,14 @@int
.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/query/metafunctions/count_if.html b/doc/html/fusion/algorithms/query/metafunctions/count_if.html index 0c1e311b..2123dc67 100644 --- a/doc/html/fusion/algorithms/query/metafunctions/count_if.html +++ b/doc/html/fusion/algorithms/query/metafunctions/count_if.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ given the sequence and predicate types.
- + Synopsis
@@ -48,7 +48,7 @@ };
-Table 1.51. Parameters
+Table 1.52. Parameters
@@ -56,31 +56,64 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - Pred
A - unary function object -Operation's argument ++ ++
+Pred
++ ++ A unary function object +
++ + Operation's argument +
+- + Expression Semantics
@@ -96,14 +129,14 @@ alwaysint
.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/query/metafunctions/find.html b/doc/html/fusion/algorithms/query/metafunctions/find.html index 67d38802..e0f75b22 100644 --- a/doc/html/fusion/algorithms/query/metafunctions/find.html +++ b/doc/html/fusion/algorithms/query/metafunctions/find.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ given the sequence and search types.
- + Synopsis
@@ -48,7 +48,7 @@ };
-Table 1.48. Parameters
+Table 1.49. Parameters
@@ -56,31 +56,64 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
Model - of Sequence + + ++ -+ Model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - T
Any - type -Operation's argument ++ ++
+T
++ ++ Any type +
++ + Operation's argument +
+- + Expression Semantics
@@ -97,14 +130,14 @@ inSequence
, orif there is no such element.
result_of::end
<Sequence>::type- + Complexity
Linear, at most
comparisons.
result_of::size
<Sequence>::value- + Header
diff --git a/doc/html/fusion/algorithms/query/metafunctions/find_if.html b/doc/html/fusion/algorithms/query/metafunctions/find_if.html index 8bc4c672..a7efa889 100644 --- a/doc/html/fusion/algorithms/query/metafunctions/find_if.html +++ b/doc/html/fusion/algorithms/query/metafunctions/find_if.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ given the sequence and predicate types.
- + Synopsis
@@ -48,7 +48,7 @@ };
-Table 1.49. Parameters
+Table 1.50. Parameters
@@ -56,33 +56,65 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - Pred
A - model of MPL - Lambda Expression - -Operation's arguments ++ ++
+Pred
++ ++ A model of MPL + Lambda Expression +
++ + Operation's arguments +
+- + Expression Semantics
@@ -100,14 +132,14 @@ to true. Returnsif there is no such element.
result_of::end
<Sequence>::type- + Complexity
Linear. At most
comparisons.
result_of::size
<Sequence>::value- + Header
diff --git a/doc/html/fusion/algorithms/query/metafunctions/none.html b/doc/html/fusion/algorithms/query/metafunctions/none.html index abc2e587..dfd32b7a 100644 --- a/doc/html/fusion/algorithms/query/metafunctions/none.html +++ b/doc/html/fusion/algorithms/query/metafunctions/none.html @@ -26,14 +26,14 @@- + Description
A metafunction returning the result type of
none
.- + Synopsis
@@ -47,7 +47,7 @@ };
-Table 1.47. Parameters
+Table 1.48. Parameters
@@ -55,34 +55,66 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - F
A - model of unary F + + ++ -+ A model of unary Polymorphic - Function Object -
Operation's argument + Function Object + + ++ + Operation's argument +
+- + Expression Semantics
@@ -102,14 +134,14 @@ The return type is alwaysbool
.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/transformation.html b/doc/html/fusion/algorithms/transformation.html index 0a4d7fb9..81217b02 100644 --- a/doc/html/fusion/algorithms/transformation.html +++ b/doc/html/fusion/algorithms/transformation.html @@ -39,14 +39,20 @@Note -+ - As the transformation algorithms return views onto their input arguments, - it is important that the lifetime of the input arguments is greater than - the period during which you wish to use the results. -
+ +
++ As the transformation algorithms return views onto their input arguments, + it is important that the lifetime of the input arguments is greater than + the period during which you wish to use the results. +
++
+- + Header
diff --git a/doc/html/fusion/algorithms/transformation/functions/clear.html b/doc/html/fusion/algorithms/transformation/functions/clear.html index 13ae29d8..19eca3b1 100644 --- a/doc/html/fusion/algorithms/transformation/functions/clear.html +++ b/doc/html/fusion/algorithms/transformation/functions/clear.html @@ -26,14 +26,14 @@- + Description
clear
returns an empty sequence.- + Synposis
@@ -43,7 +43,7 @@ typenameresult_of::clear
<Sequence const>::type clear(Sequence const& seq);-Table 1.61. Parameters
+Table 1.62. Parameters
@@ -51,23 +51,45 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- + Expression Semantics
@@ -84,21 +106,21 @@ with no elements.- + Complexity
Constant.
- + Header
#include <boost/fusion/algorithm/transformation/clear.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/transformation/functions/erase.html b/doc/html/fusion/algorithms/transformation/functions/erase.html index ed861b89..c779e300 100644 --- a/doc/html/fusion/algorithms/transformation/functions/erase.html +++ b/doc/html/fusion/algorithms/transformation/functions/erase.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ those at a specified iterator, or between two iterators.
- + Synposis
@@ -54,7 +54,7 @@ Sequence const& seq, First const& it1, Last const& it2);-Table 1.62. Parameters
+Table 1.63. Parameters
@@ -62,46 +62,86 @@ - Parameters -Requirement -Description ++ ++ Parameters +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - it1
A - model of it1 + + ++ -+ A model of Forward - Iterator -
Iterator into + Iterator + + +seq
-+ + Iterator into
+seq
+- - it2
A - model of it2 + + ++ -+ A model of Forward - Iterator -
Iterator into + Iterator + + +seq
- afterit1
-+ + Iterator into
+seq
+ afterit1
+- + Expression Semantics
@@ -132,21 +172,21 @@ in their original order, except those in the range [first
,last
).- + Complexity
Constant. Returns a view which is lazily evaluated.
- + Header
#include <boost/fusion/algorithm/transformation/erase.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/transformation/functions/erase_key.html b/doc/html/fusion/algorithms/transformation/functions/erase_key.html index a340a57a..e0a5aeeb 100644 --- a/doc/html/fusion/algorithms/transformation/functions/erase_key.html +++ b/doc/html/fusion/algorithms/transformation/functions/erase_key.html @@ -26,7 +26,7 @@- + Description
@@ -39,7 +39,7 @@ with a given key.
- + Synposis
@@ -50,7 +50,7 @@ typename result_of::erase_key<Sequence const, Key>::type erase_key(Sequence const& seq);-Table 1.63. Parameters
+Table 1.64. Parameters
@@ -58,31 +58,64 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Associative - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - Key
Any - type -Key to erase ++ ++
+Key
++ ++ Any type +
++ + Key to erase +
+- + Expression Semantics
@@ -100,21 +133,21 @@ except those with keyKey
.- + Complexity
Constant. Returns a view which is lazily evaluated.
- + Header
#include <boost/fusion/algorithm/transformation/erase_key.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/transformation/functions/filter.html b/doc/html/fusion/algorithms/transformation/functions/filter.html index 533fc8ee..91f95064 100644 --- a/doc/html/fusion/algorithms/transformation/functions/filter.html +++ b/doc/html/fusion/algorithms/transformation/functions/filter.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ the elements of a specified type.
- + Synopsis
@@ -45,7 +45,7 @@ typenameresult_of::filter
<Sequence const, T>::type filter(Sequence const& seq);-Table 1.52. Parameters
+Table 1.53. Parameters
@@ -53,31 +53,64 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - T
Any - type -The type to retain ++ ++
+T
++ ++ Any type +
++ + The type to retain +
+- + Expression Semantics
@@ -96,21 +129,21 @@ to.
filter_if
<boost::same_type<_, T> >(seq)- + Complexity
Constant. Returns a view which is lazily evaluated.
- + Header
#include <boost/fusion/algorithm/transformation/filter.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/transformation/functions/filter_if.html b/doc/html/fusion/algorithms/transformation/functions/filter_if.html index ef3c3471..edf5d5c4 100644 --- a/doc/html/fusion/algorithms/transformation/functions/filter_if.html +++ b/doc/html/fusion/algorithms/transformation/functions/filter_if.html @@ -26,7 +26,7 @@- + Description
@@ -35,7 +35,7 @@ Lambda Expression evaluates to
boost::mpl::true_
.- + Synopsis
@@ -46,7 +46,7 @@ typenameresult_of::filter_if
<Sequence const, Pred>::type filter_if(Sequence const& seq);-Table 1.53. Parameters
+Table 1.54. Parameters
@@ -54,33 +54,65 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - Pred
A - unary MPL - Lambda Expression - -The predicate to filter by ++ ++
+Pred
++ ++ A unary MPL + Lambda Expression +
++ + The predicate to filter by +
+- + Expression Semantics
@@ -100,21 +132,21 @@ is the same as in the original sequence.- + Complexity
Constant. Returns a view which is lazily evaluated.
- + Header
#include <boost/fusion/algorithm/transformation/filter_if.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/transformation/functions/insert.html b/doc/html/fusion/algorithms/transformation/functions/insert.html index 51c96f3a..d7063c5c 100644 --- a/doc/html/fusion/algorithms/transformation/functions/insert.html +++ b/doc/html/fusion/algorithms/transformation/functions/insert.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ element inserted the position described by a given iterator.
- + Synposis
@@ -46,7 +46,7 @@ unspecified insert(Sequence const& seq, Pos const& pos, T const& t);-Table 1.64. Parameters
+Table 1.65. Parameters
@@ -54,40 +54,83 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - pos
A - model of pos + + ++ -+ A model of Forward - Iterator -
The position to insert at + Iterator + + ++ + The position to insert at +
+- - t
Any - type -The value to insert ++ ++
+t
++ ++ Any type +
++ + The value to insert +
+- + Expression Semantics
@@ -107,21 +150,21 @@pos
.- + Complexity
Constant. Returns a view which is lazily evaluated.
- + Header
#include <boost/fusion/algorithm/transformation/insert.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/transformation/functions/insert_range.html b/doc/html/fusion/algorithms/transformation/functions/insert_range.html index 116b91fd..6297295f 100644 --- a/doc/html/fusion/algorithms/transformation/functions/insert_range.html +++ b/doc/html/fusion/algorithms/transformation/functions/insert_range.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ iterator.
- + Synposis
@@ -47,7 +47,7 @@ Sequence const& seq, Pos const& pos, Range const& range);-Table 1.65. Parameters
+Table 1.66. Parameters
@@ -55,43 +55,85 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - pos
A - model of pos + + ++ -+ A model of Forward - Iterator -
The position to insert at + Iterator + + ++ + The position to insert at +
+- - range
A - model of range + + ++ -+ A model of Forward - Sequence -
Range to insert + Sequence + + ++ + Range to insert +
+- + Expression Semantics
@@ -111,21 +153,21 @@ All elements retaining their ordering from the orignal sequences.- + Complexity
Constant. Returns a view which is lazily evaluated.
- + Header
#include <boost/fusion/algorithm/transformation/insert_range.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/transformation/functions/join.html b/doc/html/fusion/algorithms/transformation/functions/join.html index 40f6810f..4be3106d 100644 --- a/doc/html/fusion/algorithms/transformation/functions/join.html +++ b/doc/html/fusion/algorithms/transformation/functions/join.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ first followed by the elements of the second.
- + Synopsis
@@ -44,7 +44,7 @@ typenameresult_of::join
<LhSequence, RhSequence>::type join(LhSequence const& lhs, RhSequence const& rhs);-Table 1.66. Parameters
+Table 1.67. Parameters
@@ -52,34 +52,66 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - lhs
A - model of lhs + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - rhs
A - model of rhs + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- + Expression Semantics
@@ -98,21 +130,21 @@ The order of th elements is preserved.- + Complexity
Constant. Returns a view which is lazily evaluated.
- + Header
#include <boost/fusion/algorithm/transformation/join.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/transformation/functions/pop_back.html b/doc/html/fusion/algorithms/transformation/functions/pop_back.html index beddbc62..f92701c8 100644 --- a/doc/html/fusion/algorithms/transformation/functions/pop_back.html +++ b/doc/html/fusion/algorithms/transformation/functions/pop_back.html @@ -26,14 +26,14 @@- + Description
Returns a new sequence, with the last element of the original removed.
- + Synopsis
@@ -43,7 +43,7 @@ typenameresult_of::pop_back
<Sequence const>::type pop_back(Sequence const& seq);-Table 1.68. Parameters
+Table 1.69. Parameters
@@ -51,23 +51,45 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- + Expression Semantics
@@ -86,21 +108,21 @@ same order as they were inseq
.- + Complexity
Constant. Returns a view which is lazily evaluated.
- + Header
#include <boost/fusion/algorithm/transformation/pop_back.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/transformation/functions/pop_front.html b/doc/html/fusion/algorithms/transformation/functions/pop_front.html index 4c0c76f1..79e797ad 100644 --- a/doc/html/fusion/algorithms/transformation/functions/pop_front.html +++ b/doc/html/fusion/algorithms/transformation/functions/pop_front.html @@ -26,14 +26,14 @@- + Description
Returns a new sequence, with the first element of the original removed.
- + Synopsis
@@ -43,7 +43,7 @@ typenameresult_of::pop_front
<Sequence const>::type pop_front(Sequence const& seq);-Table 1.69. Parameters
+Table 1.70. Parameters
@@ -51,23 +51,45 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- + Expression Semantics
@@ -86,21 +108,21 @@ same order as they were inseq
.- + Complexity
Constant. Returns a view which is lazily evaluated.
- + Header
#include <boost/fusion/algorithm/transformation/pop_front.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/transformation/functions/push_back.html b/doc/html/fusion/algorithms/transformation/functions/push_back.html index f4259325..903c48ca 100644 --- a/doc/html/fusion/algorithms/transformation/functions/push_back.html +++ b/doc/html/fusion/algorithms/transformation/functions/push_back.html @@ -26,14 +26,14 @@- + Description
Returns a new sequence with an element added at the end.
- + Synopsis
@@ -45,7 +45,7 @@ Sequence const& seq, T const& t);-Table 1.70. Parameters
+Table 1.71. Parameters
@@ -53,31 +53,64 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - t
Any - type -The value to add to the end ++ ++
+t
++ ++ Any type +
++ + The value to add to the end +
+- + Expression Semantics
@@ -96,21 +129,21 @@ to the end. The elements are in the same order as they were inseq
.- + Complexity
Constant. Returns a view which is lazily evaluated.
- + Header
#include <boost/fusion/algorithm/transformation/push_back.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/transformation/functions/push_front.html b/doc/html/fusion/algorithms/transformation/functions/push_front.html index 651f1172..d0aeb73d 100644 --- a/doc/html/fusion/algorithms/transformation/functions/push_front.html +++ b/doc/html/fusion/algorithms/transformation/functions/push_front.html @@ -26,14 +26,14 @@- + Description
Returns a new sequence with an element added at the beginning.
- + Synopsis
@@ -45,7 +45,7 @@ Sequence const& seq, T const& t);-Table 1.71. Parameters
+Table 1.72. Parameters
@@ -53,31 +53,64 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - t
Any - type -The value to add to the beginning ++ ++
+t
++ ++ Any type +
++ + The value to add to the beginning +
+- + Expression Semantics
@@ -97,21 +130,21 @@seq
.- + Complexity
Constant. Returns a view which is lazily evaluated.
- + Header
#include <boost/fusion/algorithm/transformation/push_front.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/transformation/functions/remove.html b/doc/html/fusion/algorithms/transformation/functions/remove.html index 6a5c1acb..4e35bf0c 100644 --- a/doc/html/fusion/algorithms/transformation/functions/remove.html +++ b/doc/html/fusion/algorithms/transformation/functions/remove.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ except those of a given type.
- + Synopsis
@@ -45,7 +45,7 @@ typenameresult_of::remove
<Sequence const, T>::type replace(Sequence const& seq);-Table 1.58. Parameters
+Table 1.59. Parameters
@@ -53,31 +53,64 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - T
Any - type -Type to remove ++ ++
+T
++ ++ Any type +
++ + Type to remove +
+- + Expression Semantics
@@ -96,21 +129,21 @@ Equivalent to.
remove_if
<boost::is_same<_,T> >(seq)- + Complexity
Constant. Returns a view which is lazily evaluated.
- + Header
#include <boost/fusion/algorithm/transformation/remove.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/transformation/functions/remove_if.html b/doc/html/fusion/algorithms/transformation/functions/remove_if.html index a1c1ac0d..89d4cb02 100644 --- a/doc/html/fusion/algorithms/transformation/functions/remove_if.html +++ b/doc/html/fusion/algorithms/transformation/functions/remove_if.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ those where a given unary function object evaluates to
true
.- + Synopsis
@@ -45,7 +45,7 @@ typenameresult_of::remove_if
<Sequence const, Pred>::type remove_if(Sequence const& seq);-Table 1.59. Parameters
+Table 1.60. Parameters
@@ -53,33 +53,65 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - Pred
A - model of unary MPL - Lambda Expression - -Removal predicate ++ ++
+Pred
++ ++ A model of unary MPL + Lambda Expression +
++ + Removal predicate +
+- + Expression Semantics
@@ -99,21 +131,21 @@ >(seq).- + Complexity
Constant. Returns a view which is lazily evaluated.
- + Header
#include <boost/fusion/algorithm/transformation/remove_if.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/transformation/functions/replace.html b/doc/html/fusion/algorithms/transformation/functions/replace.html index 9a7db88d..c0efe040 100644 --- a/doc/html/fusion/algorithms/transformation/functions/replace.html +++ b/doc/html/fusion/algorithms/transformation/functions/replace.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ a new value.
- + Synopsis
@@ -46,7 +46,7 @@ Sequence const& seq, T const& old_value, T const& new_value);-Table 1.56. Parameters
+Table 1.57. Parameters
@@ -54,42 +54,85 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence,
e == old_value
- is a valid expression, convertible tobool
, - for each elemente
- inseq
with type - convertible toT
-Operation's - argument + Sequence,e == old_value
+ is a valid expression, convertible tobool
, + for each elemente
+ inseq
with type + convertible toT
+ + ++ + Operation's argument +
+- - old_value
Any - type -Value to replace ++ ++
+old_value
++ ++ Any type +
++ + Value to replace +
+- - new_value
Any - type -Replacement value ++ ++
+new_value
++ ++ Any type +
++ + Replacement value +
+- + Expression Semantics
@@ -108,21 +151,21 @@ to elements with the same type and equal toold_value
.- + Complexity
Constant. Returns a view which is lazily evaluated.
- + Header
#include <boost/fusion/algorithm/transformation/replace.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/transformation/functions/replace_if.html b/doc/html/fusion/algorithms/transformation/functions/replace_if.html index 9cd48436..fe9d308d 100644 --- a/doc/html/fusion/algorithms/transformation/functions/replace_if.html +++ b/doc/html/fusion/algorithms/transformation/functions/replace_if.html @@ -26,7 +26,7 @@- + Description
@@ -35,7 +35,7 @@ replaced with a new value.
- + Synopsis
@@ -47,7 +47,7 @@ Sequence const& seq, F f, T const& new_value);-Table 1.57. Parameters
+Table 1.58. Parameters
@@ -55,40 +55,83 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - f
A - function object for which -f(e)
is a valid expression, convertible - tobool
, for each element -e
inseq
-Operation's argument ++ ++
+f
++ ++ A function object for which
+f(e)
is a valid expression, convertible + tobool
, for each + elemente
inseq
++ + Operation's argument +
+- - new_value
Any - type -Replacement value ++ ++
+new_value
++ ++ Any type +
++ + Replacement value +
+- + Expression Semantics
@@ -108,21 +151,21 @@ evaluates totrue
.- + Complexity
Constant. Returns a view which is lazily evaluated.
- + Header
#include <boost/fusion/algorithm/transformation/replace_if.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/transformation/functions/reverse.html b/doc/html/fusion/algorithms/transformation/functions/reverse.html index 4aa8b7fd..4133ff04 100644 --- a/doc/html/fusion/algorithms/transformation/functions/reverse.html +++ b/doc/html/fusion/algorithms/transformation/functions/reverse.html @@ -26,14 +26,14 @@- + Description
Returns a new sequence with the elements of the original in reverse order.
- + Synposis
@@ -43,7 +43,7 @@ typenameresult_of::reverse
<Sequence const>::type reverse(Sequence const& seq);-Table 1.60. Parameters
+Table 1.61. Parameters
@@ -51,23 +51,45 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Bidirectional - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- + Expression Semantics
@@ -85,21 +107,21 @@ in reverse order.- + Complexity
Constant. Returns a view which is lazily evaluated.
- + Header
#include <boost/fusion/algorithm/transformation/reverse.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/transformation/functions/transform.html b/doc/html/fusion/algorithms/transformation/functions/transform.html index b12116b2..bccc7f4f 100644 --- a/doc/html/fusion/algorithms/transformation/functions/transform.html +++ b/doc/html/fusion/algorithms/transformation/functions/transform.html @@ -26,7 +26,7 @@- + Description
@@ -38,7 +38,7 @@ to each element of
seq
.- + Unary version synopsis
@@ -51,7 +51,7 @@ Sequence const& seq, F f);-Table 1.54. Parameters
+Table 1.55. Parameters
@@ -59,36 +59,67 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq
A - model of seq + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - f
A - model of unary f + + ++ -+ A model of unary Polymorphic - Function Object where
f(e)
is a valid expression for each element -e
ofseq
-Transformation - function + Function Object wheref(e)
is a valid expression for each + elemente
ofseq
+ + ++ + Transformation function +
+- + Expression Semantics
@@ -106,7 +137,7 @@ withinseq
.- + Binary version synopsis
@@ -120,7 +151,7 @@ Sequence1 const& seq1, Sequence2 const& seq2, F f);-Table 1.55. Parameters
+Table 1.56. Parameters
@@ -176,21 +250,21 @@ within
@@ -128,39 +159,82 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - seq1
A - model of seq1 + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - seq2
A - model of seq2 + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - f
A - model of binary f + + ++ -+ A model of binary Polymorphic - Function Object where
f(e1, e2)
is a valid expression for each pair - of elementse1
and -e2
ofseq1
andseq2
- respectivelyTransformation function + Function Object wheref(e1, e2)
is a valid expression for each + pair of elementse1
+ ande2
ofseq1
andseq2
+ respectively + + ++ + Transformation function +
+seq1
andseq2
respectively.- + Complexity
Constant. Returns a view which is lazily evaluated.
- + Header
#include <boost/fusion/algorithm/transformation/transform.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/transformation/functions/zip.html b/doc/html/fusion/algorithms/transformation/functions/zip.html index a6a6737d..85f84acd 100644 --- a/doc/html/fusion/algorithms/transformation/functions/zip.html +++ b/doc/html/fusion/algorithms/transformation/functions/zip.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ of the members of the component sequences.
- + Synopsis
@@ -48,7 +48,7 @@ zip(Sequence1 const& seq1, Sequence2 const& seq2, ... SequenceN const& seqN);-Table 1.67. Parameters
+Table 1.68. Parameters
@@ -56,24 +56,45 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- -seq1
toseqN
-Each sequence - is a model of seq1 to +seqN
+ ++ -+ Each sequence is a model of Forward - Sequence.
Operation's argument + Sequence. + + ++ + Operation's argument +
+- + Expression Semantics
@@ -96,21 +117,21 @@ 'c'))- + Complexity
Constant. Returns a view which is lazily evaluated.
- + Header
#include <boost/fusion/algorithm/transformation/zip.hpp>- + Example
diff --git a/doc/html/fusion/algorithms/transformation/metafunctions/clear.html b/doc/html/fusion/algorithms/transformation/metafunctions/clear.html index 5c979962..03814118 100644 --- a/doc/html/fusion/algorithms/transformation/metafunctions/clear.html +++ b/doc/html/fusion/algorithms/transformation/metafunctions/clear.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ type.
- + Synopsis
@@ -47,7 +47,7 @@ };
-Table 1.80. Parameters
+Table 1.81. Parameters
@@ -55,20 +55,43 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
Any - type -Operation's argument ++ ++
+Sequence
++ ++ Any type +
++ + Operation's argument +
+- + Expression Semantics
@@ -84,14 +107,14 @@ Semantics: Returns an empty sequence.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/transformation/metafunctions/erase.html b/doc/html/fusion/algorithms/transformation/metafunctions/erase.html index 2b107e83..96a5b17e 100644 --- a/doc/html/fusion/algorithms/transformation/metafunctions/erase.html +++ b/doc/html/fusion/algorithms/transformation/metafunctions/erase.html @@ -30,11 +30,11 @@ and range delimiting iterator types.- + Description
- + Synopsis
@@ -48,7 +48,7 @@ };
-Table 1.81. Parameters
+Table 1.82. Parameters
@@ -56,43 +56,85 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - It1
A - model of It1 + + ++ -+ A model of Forward - Iterator -
Operation's argument + Iterator + + ++ + Operation's argument +
+- - It2
A - model of It2 + + ++ -+ A model of Forward - Iterator -
Operation's argument + Iterator + + ++ + Operation's argument +
+- + Expression Semantics
@@ -122,14 +164,14 @@ andIt2
removed.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/transformation/metafunctions/erase_key.html b/doc/html/fusion/algorithms/transformation/metafunctions/erase_key.html index dd4bae14..73d9f525 100644 --- a/doc/html/fusion/algorithms/transformation/metafunctions/erase_key.html +++ b/doc/html/fusion/algorithms/transformation/metafunctions/erase_key.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ and key types.
- + Synopsis
@@ -48,7 +48,7 @@ };
-Table 1.82. Parameters
+Table 1.83. Parameters
@@ -56,31 +56,64 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Associative - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - Key
Any - type -Key type ++ ++
+Key
++ ++ Any type +
++ + Key type +
+- + Expression Semantics
@@ -98,14 +131,14 @@ except those with keyKey
.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/transformation/metafunctions/filter.html b/doc/html/fusion/algorithms/transformation/metafunctions/filter.html index 95fc51b5..88495f1b 100644 --- a/doc/html/fusion/algorithms/transformation/metafunctions/filter.html +++ b/doc/html/fusion/algorithms/transformation/metafunctions/filter.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ and type to retain.
- + Synopsis
@@ -48,7 +48,7 @@ };
-Table 1.72. Parameter
+Table 1.73. Parameter
@@ -56,31 +56,64 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - T
Any - type -Type to retain ++ ++
+T
++ ++ Any type +
++ + Type to retain +
+- + Expression Semantics
@@ -100,14 +133,14 @@ boost::is_same<mpl::_, T> >::type.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/transformation/metafunctions/filter_if.html b/doc/html/fusion/algorithms/transformation/metafunctions/filter_if.html index f9668ecf..924d6d59 100644 --- a/doc/html/fusion/algorithms/transformation/metafunctions/filter_if.html +++ b/doc/html/fusion/algorithms/transformation/metafunctions/filter_if.html @@ -26,7 +26,7 @@- + Description
@@ -35,7 +35,7 @@ Lambda Expression predicate type.
- + Synopsis
@@ -49,7 +49,7 @@ };
-Table 1.73. Parameter
+Table 1.74. Parameter
@@ -57,33 +57,65 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - Pred
A - unary MPL - Lambda Expression - -Type to retain ++ ++
+Pred
++ ++ A unary MPL + Lambda Expression +
++ + Type to retain +
+- + Expression Semantics
@@ -102,14 +134,14 @@ toboost::mpl::true_
.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/transformation/metafunctions/insert.html b/doc/html/fusion/algorithms/transformation/metafunctions/insert.html index d6a8cb65..0be4e506 100644 --- a/doc/html/fusion/algorithms/transformation/metafunctions/insert.html +++ b/doc/html/fusion/algorithms/transformation/metafunctions/insert.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ position iterator and insertion types.
- + Synopsis
@@ -49,7 +49,7 @@ };
-Table 1.83. Parameters
+Table 1.84. Parameters
@@ -57,40 +57,83 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - Position
A - model of Position + + ++ -+ A model of Forward - Iterator -
Operation's argument + Iterator + + ++ + Operation's argument +
+- - T
Any - type -Operation's argument ++ ++
+T
++ ++ Any type +
++ + Operation's argument +
+- + Expression Semantics
@@ -109,14 +152,14 @@ inSequence
.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/transformation/metafunctions/insert_range.html b/doc/html/fusion/algorithms/transformation/metafunctions/insert_range.html index 55e5f007..f527f3bb 100644 --- a/doc/html/fusion/algorithms/transformation/metafunctions/insert_range.html +++ b/doc/html/fusion/algorithms/transformation/metafunctions/insert_range.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ sequence, position iterator and insertion range types.
- + Synopsis
@@ -49,7 +49,7 @@ };
-Table 1.84. Parameters
+Table 1.85. Parameters
@@ -57,43 +57,85 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - Position
A - model of Position + + ++ -+ A model of Forward - Iterator -
Operation's argument + Iterator + + ++ + Operation's argument +
+- - Range
A - model of Range + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- + Expression Semantics
@@ -112,14 +154,14 @@ intoSequence
.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/transformation/metafunctions/join.html b/doc/html/fusion/algorithms/transformation/metafunctions/join.html index 655a4037..fff63a5f 100644 --- a/doc/html/fusion/algorithms/transformation/metafunctions/join.html +++ b/doc/html/fusion/algorithms/transformation/metafunctions/join.html @@ -26,14 +26,14 @@- + Description
Returns the result of joining 2 sequences, given the sequence types.
- + Synopsis
@@ -47,7 +47,7 @@ };
- + Expression Semantics
@@ -66,14 +66,14 @@ The order of the elements in the 2 sequences is preserved.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/transformation/metafunctions/pop_back.html b/doc/html/fusion/algorithms/transformation/metafunctions/pop_back.html index 2ef4380d..1c00e9f1 100644 --- a/doc/html/fusion/algorithms/transformation/metafunctions/pop_back.html +++ b/doc/html/fusion/algorithms/transformation/metafunctions/pop_back.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ type.
- + Synopsis
@@ -47,7 +47,7 @@ };
-Table 1.85. Parameters
+Table 1.86. Parameters
@@ -55,23 +55,45 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- + Expression Semantics
@@ -89,14 +111,14 @@ except the last element.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/transformation/metafunctions/pop_front.html b/doc/html/fusion/algorithms/transformation/metafunctions/pop_front.html index 81153330..7d71fe88 100644 --- a/doc/html/fusion/algorithms/transformation/metafunctions/pop_front.html +++ b/doc/html/fusion/algorithms/transformation/metafunctions/pop_front.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ type.
- + Synopsis
@@ -47,7 +47,7 @@ };
-Table 1.86. Parameters
+Table 1.87. Parameters
@@ -55,23 +55,45 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- + Expression Semantics
@@ -89,14 +111,14 @@ except the first element.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/transformation/metafunctions/push_back.html b/doc/html/fusion/algorithms/transformation/metafunctions/push_back.html index 353e79e4..272a506b 100644 --- a/doc/html/fusion/algorithms/transformation/metafunctions/push_back.html +++ b/doc/html/fusion/algorithms/transformation/metafunctions/push_back.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ the input sequence and element to push.
- + Synopsis
@@ -48,7 +48,7 @@ };
-Table 1.87. Parameters
+Table 1.88. Parameters
@@ -56,31 +56,64 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - T
Any - type -Operation's argument ++ ++
+T
++ ++ Any type +
++ + Operation's argument +
+- + Expression Semantics
@@ -99,14 +132,14 @@ added to the end.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/transformation/metafunctions/push_front.html b/doc/html/fusion/algorithms/transformation/metafunctions/push_front.html index ec64efd3..a415378a 100644 --- a/doc/html/fusion/algorithms/transformation/metafunctions/push_front.html +++ b/doc/html/fusion/algorithms/transformation/metafunctions/push_front.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ of the input sequence and element to push.
- + Synopsis
@@ -48,7 +48,7 @@ };
-Table 1.88. Parameters
+Table 1.89. Parameters
@@ -56,31 +56,64 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - T
Any - type -Operation's argument ++ ++
+T
++ ++ Any type +
++ + Operation's argument +
+- + Expression Semantics
@@ -99,14 +132,14 @@ added to the beginning.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/transformation/metafunctions/remove.html b/doc/html/fusion/algorithms/transformation/metafunctions/remove.html index aebc4373..af5c8dde 100644 --- a/doc/html/fusion/algorithms/transformation/metafunctions/remove.html +++ b/doc/html/fusion/algorithms/transformation/metafunctions/remove.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ removal types.
- + Synopsis
@@ -48,7 +48,7 @@ };
-Table 1.77. Parameters
+Table 1.78. Parameters
@@ -56,31 +56,64 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - T
Any - type -Remove elements of this type ++ ++
+T
++ ++ Any type +
++ + Remove elements of this type +
+- + Expression Semantics
@@ -100,14 +133,14 @@ boost::is_same<mpl::_, T> >::type.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/transformation/metafunctions/remove_if.html b/doc/html/fusion/algorithms/transformation/metafunctions/remove_if.html index 72b3f0e5..2ddbba4f 100644 --- a/doc/html/fusion/algorithms/transformation/metafunctions/remove_if.html +++ b/doc/html/fusion/algorithms/transformation/metafunctions/remove_if.html @@ -26,7 +26,7 @@- + Description
@@ -35,7 +35,7 @@ Lambda Expression predicate types.
- + Synopsis
@@ -49,7 +49,7 @@ };
-Table 1.78. Parameters
+Table 1.79. Parameters
@@ -57,35 +57,65 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - Pred
A - model of unary MPL - Lambda Expression - -Remove elements which evaluate - to +boost::mpl::true_
-+ ++
+Pred
++ ++ A model of unary MPL + Lambda Expression +
++ + Remove elements which evaluate to
+boost::mpl::true_
+- + Expression Semantics
@@ -104,14 +134,14 @@ toboost::mpl::false_
.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/transformation/metafunctions/replace.html b/doc/html/fusion/algorithms/transformation/metafunctions/replace.html index 8efd0542..377e3fab 100644 --- a/doc/html/fusion/algorithms/transformation/metafunctions/replace.html +++ b/doc/html/fusion/algorithms/transformation/metafunctions/replace.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ the input sequence and element to replace.
- + Synopsis
@@ -48,7 +48,7 @@ };
-Table 1.75. Parameters
+Table 1.76. Parameters
@@ -56,31 +56,64 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - T
Any - type -The type of the search and replacement objects ++ ++
+T
++ ++ Any type +
++ + The type of the search and replacement objects +
+- + Expression Semantics
@@ -97,14 +130,14 @@replace
.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/transformation/metafunctions/replace_if.html b/doc/html/fusion/algorithms/transformation/metafunctions/replace_if.html index 05090b56..7c2bc12a 100644 --- a/doc/html/fusion/algorithms/transformation/metafunctions/replace_if.html +++ b/doc/html/fusion/algorithms/transformation/metafunctions/replace_if.html @@ -26,7 +26,7 @@- + Description
@@ -36,7 +36,7 @@ Function Object predicate and replacement object.
- + Synopsis
@@ -50,7 +50,7 @@ };
-Table 1.76. Parameters
+Table 1.77. Parameters
@@ -58,40 +58,83 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- - F
A - model of unary F + + ++ -+ A model of unary Polymorphic - Function Object -
Replacement predicate + Function Object + + ++ + Replacement predicate +
+- - T
Any - type -The type of the replacement object ++ ++
+T
++ ++ Any type +
++ + The type of the replacement object +
+- + Expression Semantics
@@ -108,14 +151,14 @@replace_if
.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/transformation/metafunctions/reverse.html b/doc/html/fusion/algorithms/transformation/metafunctions/reverse.html index d612bd22..611743f9 100644 --- a/doc/html/fusion/algorithms/transformation/metafunctions/reverse.html +++ b/doc/html/fusion/algorithms/transformation/metafunctions/reverse.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ type.
- + Synopsis
@@ -47,7 +47,7 @@ };
-Table 1.79. Parameters
+Table 1.80. Parameters
@@ -55,23 +55,45 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Bidirectional - Sequence -
Operation's argument + Sequence + + ++ + Operation's argument +
+- + Expression Semantics
@@ -88,14 +110,14 @@ elements in the reverse order toSequence
.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/transformation/metafunctions/transform.html b/doc/html/fusion/algorithms/transformation/metafunctions/transform.html index 35ff7a35..c540e017 100644 --- a/doc/html/fusion/algorithms/transformation/metafunctions/transform.html +++ b/doc/html/fusion/algorithms/transformation/metafunctions/transform.html @@ -26,7 +26,7 @@- + Description
@@ -36,7 +36,7 @@ Object types.
- + Synopsis
@@ -50,7 +50,7 @@ };
-Table 1.74. Parameters
+Table 1.75. Parameters
@@ -58,33 +58,66 @@ - Parameter -Requirement -Description ++ ++ Parameter +
++ ++ Requirement +
++ + Description +
+- - Sequence
A - model of Sequence + + ++ -+ A model of Forward - Sequence
Operation's argument + Sequence + + ++ + Operation's argument +
+- - F
A - model of unary F + + ++ -+ A model of unary Polymorphic - Function Object -
Transformation function object + Function Object + + ++ + Transformation function object +
+- + Expression Semantics
@@ -101,14 +134,14 @@F::result<E>::type
for each element typeE
inSequence
.- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/algorithms/transformation/metafunctions/zip.html b/doc/html/fusion/algorithms/transformation/metafunctions/zip.html index da7866ad..79584652 100644 --- a/doc/html/fusion/algorithms/transformation/metafunctions/zip.html +++ b/doc/html/fusion/algorithms/transformation/metafunctions/zip.html @@ -26,7 +26,7 @@- + Description
@@ -34,7 +34,7 @@ of the members of the component sequences.
- + Synopsis
@@ -50,7 +50,7 @@ };
- + Expression Semantics
@@ -73,14 +73,14 @@ 'c'))- + Complexity
Constant.
- + Header
diff --git a/doc/html/fusion/change_log.html b/doc/html/fusion/change_log.html index ca9b53e5..8a3fbe13 100644 --- a/doc/html/fusion/change_log.html +++ b/doc/html/fusion/change_log.html @@ -37,6 +37,9 @@ Nov 17, 2006: Addedboost::variant
support. ++ Feb 15, 2007: Added functional module. +
![]() |
Note |
---|---|
- Although there is a fair amount of left to do to produce a fully fledged
- Fusion sequence, | |
+ + +
+ Although there is a fair amount of left to do to produce a fully fledged
+ Fusion sequence, + + |
value_at_impl
and at_impl
.
is_associative_impl
.
diff --git a/doc/html/fusion/functional.html b/doc/html/fusion/functional.html index c0393988..ebea3b3c 100644 --- a/doc/html/fusion/functional.html +++ b/doc/html/fusion/functional.html @@ -29,10 +29,12 @@
#include <boost/fusion/functional.hpp>
- Alternatively it's possible to apply a simple transformation to f
+ Alternatively it is possible to apply a simple transformation to f
in order to achieve the same effect:
@@ -104,7 +106,7 @@ form off'
.- + Calling functions and function objects
@@ -132,7 +134,7 @@ instance for the given argument.- + Making Fusion code callable through a function object interface
diff --git a/doc/html/fusion/functional/adapters/fused.html b/doc/html/fusion/functional/adapters/fused.html index c5ddb931..07bf5f99 100644 --- a/doc/html/fusion/functional/adapters/fused.html +++ b/doc/html/fusion/functional/adapters/fused.html @@ -26,7 +26,7 @@- + Description
@@ -38,20 +38,14 @@ Sequence">Forward Sequence that contains the arguments for the target function.
-- The nested
result
metafunction - does not define atype
- member for target functions of non-class type whose arity is not satisfied - by the size of the sequence. -The type of the target function is allowed to be const qualified or a reference. Const qualification is preserved and propagated appropriately (in other words, only const versions of
operator()
can be used - for an target function object that is const or, if the target function - object is held by value, the adapter is const - these semantics have nothing - to do with the const qualification of a member function, which is referring - to the type of object pointed to bythis
, which is specified + for a target function object that is const or, if the target function object + is held by value, the adapter is const - these semantics have nothing to + do with the const qualification of a member function, which is referring + to the type of object pointed to bythis
which is specified with the first element in the sequence passed to the adapter).@@ -59,17 +53,17 @@ object can be specified as a reference, pointer, or smart pointer. In case of the latter, a freestanding
get_pointer
function must be defined (Boost provides this function forstd::auto_ptr
- andboost::shared_ptr
). + andboost::shared_ptr
).- + Header
#include <boost/fusion/functional/adapter/fused.hpp>- + Synopsis
@@ -77,7 +71,7 @@ class fused;- + Template parameters
@@ -88,22 +82,43 @@- Parameter -Description -Default ++ ++ Parameter +
++ ++ Description +
++ + Default +
+- - Function
A - Function + + ++ -+ Callable Object + + + + +
+- + Model of
@@ -139,7 +154,7 @@
- + Expression Semantics
@@ -149,31 +164,61 @@- Expression -Semantics ++ ++ Expression +
++ + Semantics +
+- - fused<R>(r)
Creates - a fused function as described above, initializes the target function - with +r
.+ ++
+fused<R>(r)
++ + Creates a fused function as described above, initializes the target + function with
+r
. +- - fused<R>()
Creates - a fused function as described above, attempts to use +R
's default constructor.+ ++
+fused<R>()
++ + Creates a fused function as described above, attempts to use
+R
's default constructor. +- - f(s)
Calls - +r
with the elements - ins
as its arguments.+ ++
+f(s)
++ + Calls
+r
with the + elements ins
as + its arguments. +- + Example
@@ -181,7 +226,7 @@ assert(f(make_vector
(1,2l)) == 3l);- + See also
diff --git a/doc/html/fusion/functional/adapters/fused_function_object.html b/doc/html/fusion/functional/adapters/fused_function_object.html index d64140a8..abf82ab0 100644 --- a/doc/html/fusion/functional/adapters/fused_function_object.html +++ b/doc/html/fusion/functional/adapters/fused_function_object.html @@ -26,7 +26,7 @@
- + Description
@@ -38,10 +38,6 @@ Sequence">Forward Sequence that contains the arguments for the target function.
-- The nested
result
metafunction - is inhertied from the target function. -The type of the target function is allowed to be const qualified or a reference. Const qualification is preserved and propagated appropriately (in other @@ -50,14 +46,14 @@ object is held by value, the adapter is const).
- + Header
#include <boost/fusion/functional/adapter/fused_function_object.hpp>- + Synopsis
@@ -65,7 +61,7 @@ class fused_function_object;- + Template parameters
@@ -76,21 +72,43 @@- Parameter -Description -Default ++ ++ Parameter +
++ ++ Description +
++ + Default +
+- Function
-Polymorphic Function Object - type -+ +
+ +Function
++ ++ Polymorphic Function + Object type +
++ +
+- + Model of
@@ -127,7 +145,7 @@
+ Expression +
++ Semantics +
+fused_function_object<R>(r)
r
.
+ fused_function_object<R>(r)
+
+ Creates a fused function as described above, initializes the target
+ function with r
.
+
fused_function_object<R>()
R
's
- default constructor.
+ fused_function_object<R>()
+
+ Creates a fused function as described above, attempts to use R
's default constructor.
+
f(s)
r
with the elements
- in s
as its arguments.
+ f(s)
+
+ Calls r
with the
+ elements in s
as
+ its arguments.
+
@@ -176,11 +224,12 @@ struct sub { - template<typename T, typename _> - struct result - { - typedef T type; - }; + template <typename Sig> + struct result; + + template <class Self, typename T> + struct result< Self(T,T) > + { typedef typename remove_reference<T>::type type; }; template<typename T> T operator()(T lhs, T rhs) const @@ -198,7 +247,7 @@ }
@@ -39,19 +39,15 @@
The result is discared and the adapter's return type is void
.
- The nested result
metafunction
- does not define a type
- member for target functions of non-class type whose arity is not satisfied
- by the size of the sequence.
The type of the target function is allowed to be const qualified or a reference.
Const qualification is preserved and propagated appropriately (in other
words, only const versions of operator()
can be used
- for an target function object that is const or, if the target function
- object is held by value, the adapter is const - these semantics have nothing
- to do with the const qualification of a member function, which is referring
- to the type of object pointed to by this
, which is specified
+ for a target function object that is const or, if the target function object
+ is held by value, the adapter is const - these semantics have nothing to
+ do with the const qualification of a member function, which is referring
+ to the type of object pointed to by this
which is specified
with the first element in the sequence passed to the adapter).
@@ -59,22 +55,22 @@
object can be specified as a reference, pointer, or smart pointer. In case
of the latter, a freestanding get_pointer
function must
be defined (Boost provides this function for std::auto_ptr
- and boost::shared_ptr
).
+ and boost::shared_ptr
).
The target function must not be a pointer to a member object (dereferencing - such a pointer without returning anything does not make sense, so it isn't - implemented). + such a pointer without returning anything does not make sense, so this + case is not implemented).
#include <boost/fusion/functional/adapter/fused_procedure.hpp>
@@ -82,7 +78,7 @@ class fused_procedure;
+ Parameter +
++ Description +
++ Default +
+Function
+ Function
+
+ Callable Object + type +
++
++ Expression +
++ Semantics +
+fused_procedure<R>(r)
r
.
+ fused_procedure<R>(r)
+
+ Creates a fused function as described above, initializes the target
+ function with r
.
+
fused_procedure<R>()
R
's
- default constructor.
+ fused_procedure<R>()
+
+ Creates a fused function as described above, attempts to use R
's default constructor.
+
f(s)
r
with the elements
- in s
as its arguments.
+ f(s)
+
+ Calls r
with the
+ elements in s
as
+ its arguments.
+
@@ -197,7 +245,7 @@
}
@@ -41,38 +41,12 @@ Non-const LValue arguments are transported as references to non-const, otherwise references to const are used.
-![]() |
-Tip | -
---|---|
- Detecting mutable LValues on a per-argument basis is currently a compile
- time expensive operation (see The
- Forwarding Problem for details). Therefore, there are two, lightweight
- and more restricted variants of this class template, |
- The overload set of the adapter's function call operator can be restricted
- by removing the type
member
- from the nested result metafunction of the Polymorphic
- Function Object (in this case the substitution-failure-is-not-an-error
- principle applies for non-nullary case and nullary calls are explicitly
- disabled by the library).
-
![]() |
-Caution | -
---|---|
- As the nullary call operator cannot be a template it will be instantiated - along with the class template, so it must be disabled (as described above) - in cases where it isn't instantiable. - |
The type of the target function is allowed to be const qualified or a reference. Const qualification is preserved and propagated appropriately (in other @@ -81,14 +55,14 @@ object is held by value, the adapter is const).
#include <boost/fusion/functional/adapter/unfused_generic.hpp>
@@ -96,7 +70,7 @@ class unfused_generic;
+ Parameter +
++ Description +
++ Default +
+Function
+ An unary Polymorphic - Function Object -
+
++ Expression +
++ Semantics +
+UG(f)
f
.UG()
F
's default constructor.
+ UG(f)
+
+ Creates a fused function as described above, initializes the target
+ function with f
.
+
ug(a0
...aN)
-f
with a Sequence
- that contains references to the arguments a0
...aN
.
+ UG()
+
+ Creates a fused function as described above, attempts to use F
's default constructor.
+
+ ug(a0
...aN)
+
+ Calls f
with a
+ Sequence that contains
+ references to the arguments a0
...aN
.
+
template <typename Function, typename T> class fused_bound_1st { - typename traits::deduce
<Function>::type fnc_deferred; - typename traits::deduce
<T>::type xxx_bound; + typename traits::deduce<Function>::type fnc_deferred; + typename traits::deduce<T>::type xxx_bound; public: fused_bound_1st(Function deferred, T bound) : fnc_deferred(deferred), xxx_bound(bound) { } - template <class Seq> - struct result - :result_of::invoke
< Function, - typenameresult_of::push_front
<Seq, T>::type > + template <typename Sig> + struct result; + + template <class Self, class Seq> + struct result< Self(Seq) > + : result_of::invoke< Function, typename result_of::push_front< + typename remove_reference<Seq>::type, T>::type > { }; template <class Seq> - typename result<Seq>::type operator()(Seq const & s) const + typename result< void(Seq) >::type operator()(Seq const & s) const { - returninvoke
(fnc_deferred, push_front(s,xxx_bound)); + return invoke(fnc_deferred, push_front(s,xxx_bound)); } }; @@ -242,11 +269,11 @@ void try_it() { assert(bind_1st(& test_func,3)(-2,-1) == 0); - assert(bind_1st(std::plus
<float>(), 1)(0.5f) == 1.5f); + assert(bind_1st(std::plus<float>(), 1)(0.5f) == 1.5f); }
@@ -40,26 +40,6 @@ Access Sequence of references that is passed to the target function object. Only LValue arguments are accepted.
-
- The overload set of the adapter's function call operator can be restricted
- by removing the type
member
- from the nested result metafunction of the Polymorphic
- Function Object (in this case the substitution-failure-is-not-an-error
- principle applies for non-nullary calls and nullary calls are explicitly
- disabled by the library).
-
![]() |
-Caution | -
---|---|
- As the nullary call operator cannot be a template it will be instantiated - along with the class template, so it must be disabled (as described above) - in cases where it isn't instantiable. - |
The type of the target function is allowed to be const qualified or a reference. Const qualification is preserved and propagated appropriately (in other @@ -68,14 +48,14 @@ object is held by value, the adapter is const).
#include <boost/fusion/functional/adapter/unfused_lvalue_args.hpp>
@@ -83,7 +63,7 @@ class unfused_lvalue_args;
+ Parameter +
++ Description +
++ Default +
+Function
+ A unary Polymorphic - Function Object -
+
++ Expression +
++ Semantics +
+UL(f)
f
.UL()
F
's default constructor.
+ UL(f)
+
+ Creates a fused function as described above, initializes the target
+ function with f
.
+
ul(a0
...aN)
-f
with a Sequence
- that contains references to the arguments a0
...aN
.
+ UL()
+
+ Creates a fused function as described above, attempts to use F
's default constructor.
+
+ ul(a0
...aN)
+
+ Calls f
with a
+ Sequence that contains
+ references to the arguments a0
...aN
.
+
@@ -213,7 +243,7 @@
}
@@ -40,26 +40,6 @@ Access Sequence of references that is passed to the target function object. All referenced objects in the sequence are const qualified.
-
- The overload set of the adapter's function call operator can be restricted
- by removing the type
member
- from the nested result metafunction of the Polymorphic
- Function Object (in this case the substitution-failure-is-not-an-error
- principle applies for non-nullary calls and nullary calls are explicitly
- disabled by the library).
-
![]() |
-Caution | -
---|---|
- As the nullary call operator cannot be a template it will be instantiated - along with the class template, so it must be disabled (as described above) - in cases where it isn't instantiable. - |
The type of the target function is allowed to be const qualified or a reference. Const qualification is preserved and propagated appropriately (in other @@ -68,14 +48,14 @@ object is held by value, the adapter is const).
#include <boost/fusion/functional/adapter/unfused_rvalue_args.hpp>
@@ -83,7 +63,7 @@ class unfused_rvalue_args;
+ Parameter +
++ Description +
++ Default +
+Function
+ A unary Polymorphic - Function Object -
+
++ Expression +
++ Semantics +
+UR(f)
f
.UR()
F
's default constructor.
+ UR(f)
+
+ Creates a fused function as described above, initializes the target
+ function with f
.
+
ur(a0
...aN)
-f
with a Sequence
- that contains references to the arguments a0
...aN
.
+ UR()
+
+ Creates a fused function as described above, attempts to use F
's default constructor.
+
+ ur(a0
...aN)
+
+ Calls f
with a
+ Sequence that contains
+ references to the arguments a0
...aN
.
+
@@ -211,7 +241,7 @@
}
@@ -46,26 +46,6 @@ where N is the size of the Sequence that specifies the types.
-
- The overload set of the adapter's function call operator can be restricted
- by removing the type
member
- from the nested result metafunction of the Polymorphic
- Function Object (in this case the substitution-failure-is-not-an-error
- principle applies for non-nullary calls and nullary calls are explicitly
- disabled by the library).
-
![]() |
-Caution | -
---|---|
- As the function call operators are not templates, they are instantiated - along with the class template, so they must be disabled (as described - above) in cases where they are not instantiable. - |
The type of the target function is allowed to be const qualified or a reference. Const qualification is preserved and propagated appropriately (in other @@ -73,26 +53,26 @@ if the target function object is const - or, in case the target function object is held by value, the adapter is const).
-![]() |
-Tip | -
---|---|
- If the type sequence passed to this template contains non-reference elements, - the element is copied only once - the call operator's signature is optimized - automatically to avoid by-value parameters. - |
#include <boost/fusion/functional/adapter/unfused_typed.hpp>
@@ -100,7 +80,7 @@ class unfused_typed;
+ Parameter +
++ Description +
++ Default +
+Function
+ A unary Polymorphic - Function Object -
+
+Sequence
+ Sequence
+
+ A Sequence +
++
++ Expression +
++ Semantics +
+UT(f)
f
.UT()
F
's default constructor.
+ UT(f)
+
+ Creates a fused function as described above, initializes the target
+ function with f
.
+
ut(a0
...aN)
-f
with an instance of S
(or a subsequence of S
starting at the first element,
- if fewer arguments are given and the overload hasn't been disabled)
- initialized with a0
...aN
.
+ UT()
+
+ Creates a fused function as described above, attempts to use F
's default constructor.
+
+ ut(a0
...aN)
+
+ Calls f
with an
+ instance of S
(or
+ a subsequence of S
+ starting at the first element, if fewer arguments are given and
+ the overload hasn't been disabled) initialized with a0
...aN
.
+
@@ -241,38 +281,40 @@ : tie_dest(dest) { } - template <class Seq> - struct result - { - typedef void type; - }; + typedef void result_type; template <class Seq> void operator()(Seq const & s) const { -for_each
(zip
(tie_dest,s),fused
<add_assign>() ); + for_each( zip(tie_dest,s), fused<add_assign>() ); } }; // accepts a tie and creates a typed function object from it struct fused_parallel_adder_maker { - template <class Seq> - struct result + template <typename Sig> + struct result; + + template <class Self, class Seq> + struct result< Self(Seq) > { - typedef unfused_typed<fused_parallel_adder<Seq>, - typename mpl::transform<Seq, remove_reference<_> >::type > type; + typedef typename remove_reference<Seq>::type seq; + + typedef unfused_typed< fused_parallel_adder<seq>, + typename mpl::transform<seq, remove_reference<_> >::type > type; }; template <class Seq> - typename result<Seq>::type operator()(Seq const & tie) + typename result< void(Seq) >::type operator()(Seq const & tie) { - return typename result<Seq>::type(fused_parallel_adder<Seq>(tie)); + return typename result< void(Seq) >::type( + fused_parallel_adder<Seq>(tie) ); } }; -unfused_lvalue_args
<fused_parallel_adder_maker> parallel_add; +unfused_lvalue_args<fused_parallel_adder_maker> parallel_add; -int main() +void try_it() { int a = 2; char b = 'X'; // the second call is strictly typed with the types deduced from the @@ -281,12 +323,10 @@ parallel_add(a,b)(3); parallel_add(a,b)(); assert(a == 8 && b == 'Z'); - - return 0; }
A pointer to a function, a pointer to member function, a pointer to member data, or a class type whose objects can appear immediately to the left of a function call operator. -
+@@ -40,7 +58,7 @@ |