Compare commits

..

1 Commits

Author SHA1 Message Date
e52b16bfc3 Created a branch from trunk
[SVN r38959]
2007-08-26 05:34:35 +00:00
845 changed files with 7028 additions and 9858 deletions

View File

@ -50,7 +50,7 @@ a sequence repeatedly applying an operation to its elements.
[section fold] [section fold]
[heading Description] [heading Description]
For a sequence `Seq`, initial state, and binary function object or function pointer `f`, fold repeatedly applies binary `f` to each element of `Seq` and the previous state. Repeatedly applies binary __poly_func_obj__ `f` to each element of a sequence and the previous state.
[heading Synopsis] [heading Synopsis]
template< template<
@ -63,9 +63,9 @@ For a sequence `Seq`, initial state, and binary function object or function poin
[table Parameters [table Parameters
[[Parameter][Requirement][Description]] [[Parameter][Requirement][Description]]
[[`seq`][A model of __forward_sequence__,`f(e,s)` must be a valid expression for each element `e` in `seq`, and current state `s`][Operation's argument]] [[`seq`][A model of __forward_sequence__,`f(e)` must be a valid expression for each element `e` in `seq`][Operation's argument]]
[[`initial_state`][Any type][Initial state]] [[`initial_state`][Any type][Initial state]]
[[`f`][`__boost_result_of_call__<F(E,S)>::type` is the return type of `f(e,s)` for each element `e` of type `E` in `seq`, and current state `s` of type `S`][Operation's argument]] [[`f`][A model of binary __poly_func_obj__][Operation's argument]]
] ]
[heading Expression Semantics] [heading Expression Semantics]
@ -84,7 +84,11 @@ Linear, exactly `__result_of_size__<Sequence>::value` applications of `f`.
[heading Example] [heading Example]
struct make_string struct make_string
{ {
typedef std::string result_type; template<typename T, typename State>
struct result
{
typedef std::string type;
};
template<typename T> template<typename T>
std::string operator()(const T& t, const std::string& str) const std::string operator()(const T& t, const std::string& str) const
@ -101,7 +105,8 @@ Linear, exactly `__result_of_size__<Sequence>::value` applications of `f`.
[section accumulate] [section accumulate]
[heading Description] [heading Description]
For a sequence `Seq`, initial state, and binary function object or function pointer `f`, accumulate repeatedly applies binary `f` to each element of `Seq` and the previous state. Repeatedly applies binary __poly_func_obj__ `f` to each element of a sequence and the previous state.
__accumulate__ is equivalent to __fold__.
[heading Synopsis] [heading Synopsis]
template< template<
@ -116,7 +121,7 @@ For a sequence `Seq`, initial state, and binary function object or function poin
[[Parameter][Requirement][Description]] [[Parameter][Requirement][Description]]
[[`seq`][A model of __forward_sequence__, `f(eN ....f(e2,f(e1,initial_state)))` must be a valid expression for each element `e1` to `eN` in `seq`][Operation's argument]] [[`seq`][A model of __forward_sequence__, `f(eN ....f(e2,f(e1,initial_state)))` must be a valid expression for each element `e1` to `eN` in `seq`][Operation's argument]]
[[`initial_state`][Any type][Initial state]] [[`initial_state`][Any type][Initial state]]
[[`f`][`__boost_result_of_call__<F(E,S)>::type` is the return type of `f(e,s)` for each element `e` of type `E` in `seq`, and current state `s` of type `S`][Operation's argument]] [[`f`][A model of binary __poly_func_obj__][Operation's argument]]
] ]
[heading Expression Semantics] [heading Expression Semantics]
@ -135,7 +140,11 @@ Linear, exactly `__result_of_size__<Sequence>::value` applications of `f`.
[heading Example] [heading Example]
struct make_string struct make_string
{ {
typedef std::string result_type; template<typename T, typename State>
struct result
{
typedef std::string type;
};
template<typename T> template<typename T>
std::string operator()(const T& t, const std::string& str) const std::string operator()(const T& t, const std::string& str) const
@ -220,7 +229,7 @@ Returns the result type of __fold__.
[[Parameter] [Requirement] [Description]] [[Parameter] [Requirement] [Description]]
[[`Sequence`] [A model of __forward_sequence__] [The sequence to iterate]] [[`Sequence`] [A model of __forward_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`] [`__boost_result_of_call__<F(E,S)>::type` is the return type of `f(e,s)` for each element `e` of type `E` in `seq`, and current state `s` of type `S`] [The operation to be applied on forward traversal]] [[`F`] [A model of binary __poly_func_obj__] [The operation to be applied on forward traversal]]
] ]
[heading Expression Semantics] [heading Expression Semantics]
@ -229,7 +238,7 @@ Returns the result type of __fold__.
[*Return type]: Any type [*Return type]: Any type
[*Semantics]: Returns the result of applying `fold` to a sequence of type `Sequence`, with an initial state of [*Semantics]: Returns the result of applying `fold` to a sequence of type `Sequence`, with an initial state of
type `State` and binary function object or function pointer of type `F`. type `State` and binary __poly_func_obj__ of type `F`.
[heading Complexity] [heading Complexity]
Linear, exactly `__result_of_size__<Sequence>::value` applications of `F`. Linear, exactly `__result_of_size__<Sequence>::value` applications of `F`.
@ -258,7 +267,7 @@ Returns the result type of __accumulate__.
[[Parameter] [Requirement] [Description]] [[Parameter] [Requirement] [Description]]
[[`Sequence`] [A model of __forward_sequence__] [The sequence to iterate]] [[`Sequence`] [A model of __forward_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`] [`__boost_result_of_call__<F(E,S)>::type` is the return type of `f(e,s)` for each element `e` of type `E` in `seq`, and current state `s` of type `S`] [The operation to be applied on forward traversal]] [[`F`] [A model of binary __poly_func_obj__] [The operation to be applied on forward traversal]]
] ]
[heading Expression Semantics] [heading Expression Semantics]
@ -267,7 +276,7 @@ Returns the result type of __accumulate__.
[*Return type]: Any type [*Return type]: Any type
[*Semantics]: Returns the result of applying `accumulate` to a sequence of type `Sequence`, with an initial state of [*Semantics]: Returns the result of applying `accumulate` to a sequence of type `Sequence`, with an initial state of
type `State` and binary function object or function pointer of type `F`. type `State` and binary __poly_func_obj__ of type `F`.
[heading Complexity] [heading Complexity]
Linear, exactly `__result_of_size__<Sequence>::value` applications of `F`. Linear, exactly `__result_of_size__<Sequence>::value` applications of `F`.
@ -988,8 +997,8 @@ Constant. Returns a view which is lazily evaluated.
[section transform] [section transform]
[heading Description] [heading Description]
For a sequence `seq` and function object or function pointer `f`, `transform` returns a new sequence For a sequence `seq` and __poly_func_obj__ `F`, `transform` returns a new sequence
with elements created by applying `f(e)` to each element of `e` of `seq`. with elements created by applying `F` to each element of `seq`.
[heading Unary version synopsis] [heading Unary version synopsis]
template< template<
@ -1002,7 +1011,7 @@ with elements created by applying `f(e)` to each element of `e` of `seq`.
[table Parameters [table Parameters
[[Parameter][Requirement][Description]] [[Parameter][Requirement][Description]]
[[`seq`][A model of __forward_sequence__][Operation's argument]] [[`seq`][A model of __forward_sequence__][Operation's argument]]
[[`f`][`f(e)` is a valid expression for each element `e` of `seq`. `__boost_result_of_call__<F(E)>::type` is the return type of `f` when called with a value of each element type `E`.][Transformation function]] [[`f`][A model of unary __poly_func_obj__ where `f(e)` is a valid expression for each element `e` of `seq`][Transformation function]]
] ]
[heading Expression Semantics] [heading Expression Semantics]
@ -1025,7 +1034,7 @@ with elements created by applying `f(e)` to each element of `e` of `seq`.
[[Parameter][Requirement][Description]] [[Parameter][Requirement][Description]]
[[`seq1`][A model of __forward_sequence__][Operation's argument]] [[`seq1`][A model of __forward_sequence__][Operation's argument]]
[[`seq2`][A model of __forward_sequence__][Operation's argument]] [[`seq2`][A model of __forward_sequence__][Operation's argument]]
[[`f`][`f(e1,e2)` is a valid expression for each pair of elements `e1` of `seq1` and `e2` of `seq2`. `__boost_result_of_call__<F(E1,E2)>::type` is the return type of `f` when called with elements of type `E1` and `E2`][Transformation function]] [[`f`][A model of binary __poly_func_obj__ where `f(e1, e2)` is a valid expression for each pair of elements `e1` and `e2` of `seq1` and `seq2` respectively][Transformation function]]
] ]
[*Return type]: A model of __forward_sequence__. [*Return type]: A model of __forward_sequence__.
@ -1041,9 +1050,14 @@ Constant. Returns a view which is lazily evaluated.
[heading Example] [heading Example]
struct triple struct triple
{ {
typedef int result_type; template<typename T>
struct result
{
typedef T type;
};
int operator()(int t) const template<typename T>
T operator()(T t) const
{ {
return t * 3; return t * 3;
}; };
@ -1760,69 +1774,37 @@ Constant.
[section transform] [section transform]
[heading Description] [heading Description]
For a sequence `seq` and function object or function pointer `f`, `transform` returns a new sequence Returns the result of type __transform__, given the sequence and __poly_func_obj__ types.
with elements created by applying `f(e)` to each element of `e` of `seq`.
[heading Unary version synopsis] [heading Synopsis]
template< template<
typename Sequence, typename Sequence,
typename F typename F
> >
typename __result_of_transform__<Sequence const, F>::type transform( struct transform
Sequence const& seq, F f); {
typedef __unspecified__ type;
};
[table Parameters [table Parameters
[[Parameter][Requirement][Description]] [[Parameter] [Requirement] [Description]]
[[`seq`][A model of __forward_sequence__][Operation's argument]] [[`Sequence`] [A model of __forward_sequence__ ][Operation's argument]]
[[`f`][`f(e)` is a valid expression for each element `e` of `seq`. `__boost_result_of_call__<F(E)>::type` is the return type of `f` when called with a value of each element type `E`.][Transformation function]] [[`F`] [A model of unary __poly_func_obj__][Transformation function object]]
] ]
[heading Expression Semantics] [heading Expression Semantics]
__transform__(seq, f); __result_of_transform__<Sequence, F>::type
[*Return type]: A model of __forward_sequence__
[*Semantics]: Returns a new sequence, containing the return values of `f(e)` for each element `e` within `seq`.
[heading Binary version synopsis]
template<
typename Sequence1,
typename Sequence2,
typename F
>
typename __result_of_transform__<Sequence1 const, Sequence2 const, F>::type transform(
Sequence1 const& seq1, Sequence2 const& seq2, F f);
[table Parameters
[[Parameter][Requirement][Description]]
[[`seq1`][A model of __forward_sequence__][Operation's argument]]
[[`seq2`][A model of __forward_sequence__][Operation's argument]]
[[`f`][`f(e1,e2)` is a valid expression for each pair of elements `e1` of `seq1` and `e2` of `seq2`. `__boost_result_of_call__<F(E1,E2)>::type` is the return type of `f` when called with elements of type `E1` and `E2`][Transformation function]]
]
[*Return type]: A model of __forward_sequence__. [*Return type]: A model of __forward_sequence__.
[*Semantics]: Returns a new sequence, containing the return values of `f(e1, e2)` for each pair of elements `e1` and `e2` within `seq1` and `seq2` respectively. [*Semantics]: Returns a sequence with values `F::result<E>::type` for each element type `E` in `Sequence`.
[heading Complexity] [heading Complexity]
Constant. Returns a view which is lazily evaluated. Constant.
[heading Header] [heading Header]
#include <boost/fusion/algorithm/transformation/transform.hpp> #include <boost/fusion/algorithm/transformation/transform.hpp>
[heading Example]
struct triple
{
typedef int result_type;
int operator()(int t) const
{
return t * 3;
};
};
...
assert(__transform__(__make_vector__(1,2,3), triple()) == __make_vector__(3,6,9));
[endsect] [endsect]
[section replace] [section replace]

View File

@ -1,7 +1,5 @@
[section Extension] [section Extension]
[section The Full Extension Mechanism]
The Fusion library is designed to be extensible, new sequences types can easily The Fusion library is designed to be extensible, new sequences types can easily
be added. In fact, the library support for `std::pair`, `boost::array` and __mpl__ be added. In fact, the library support for `std::pair`, `boost::array` and __mpl__
sequences is entirely provided using the extension mechanism. sequences is entirely provided using the extension mechanism.
@ -377,122 +375,3 @@ for a variety of types.
[endsect] [endsect]
[section Macros]
[section BOOST_FUSION_ADAPT_STRUCT]
[heading Description]
BOOST_FUSION_ADAPT_STRUCT is a macro that can be used to generate all the
necessary boilerplate to make an arbitrary struct into a __random_access_sequence__.
[heading Synopsis]
BOOST_FUSION_ADAPT_STRUCT(
struct_name
(member_type0, member_name0)
(member_type1, member_name1)
...
)
[heading Semantics]
BOOST_FUSION_ADAPT_STRUCT(
struct_name,
(member_type0, member_name0)
(member_type1, member_name1)
...
)
The above macro generates the necessary code to adapt `struct_name`
as a model of __random_access_sequence__. The sequence of `(member_typeN, member_nameN)`
pairs declare the type and names of each of the struct members that will be
part of the sequence.
The macro should be used at global scope, and `struct_name` should be the fully
namespace qualified name of the struct to be converted.
[heading Header]
#include <boost/fusion/adapted/struct/adapt_struct.hpp>
[heading Example]
namespace demo
{
struct employee
{
std::string name;
int age;
};
}
// demo::employee is now a Fusion sequence
BOOST_FUSION_ADAPT_STRUCT(
demo::employee
(std::string, name)
(int, age))
[endsect]
[section BOOST_FUSION_ADAPT_ASSOC_STRUCT]
[heading Description]
BOOST_FUSION_ADAPT_ASSOC_STRUCT is a macro that can be used to generate all the
necessary boilerplate to make an arbitrary struct into a model of __random_access_sequence__
and __associative_sequence__.
[heading Synopsis]
BOOST_FUSION_ADAPT_ASSOC_STRUCT(
struct_name
(member_type0, member_name0, key_type0)
(member_type1, member_name1, key_type1)
...
)
[heading Semantics]
BOOST_FUSION_ADAPT_ASSOC_STRUCT(
struct_name
(member_type0, member_name0, key_type0)
(member_type1, member_name1, key_type1)
...
)
The above macro generates the necessary code to adapt `struct_name`
as a model of __random_access_sequence__ and __associative_sequence__.
The sequence of `(member_typeN, member_nameN, key_typeN)`
triples declare the type, name and key type of each of the struct members
that will be part of the sequence.
The macro should be used at global scope, and `struct_name` should be the fully
namespace qualified name of the struct to be converted.
[heading Header]
#include <boost/fusion/adapted/struct/adapt_assoc_struct.hpp>
[heading Example]
namespace demo
{
struct employee
{
std::string name;
int age;
};
}
namespace keys
{
struct name;
struct age;
}
// demo::employee is now a Fusion sequence
// It is also an associative sequence with
// keys keys::name and keys::age present.
BOOST_FUSION_ADAPT_ASSOC_STRUCT(
demo::employee
(std::string, name, keys::name)
(int, age, keys::age))
[endsect]
[endsect]
[endsect]

View File

@ -80,19 +80,6 @@ function call operator.
* member (function or data) pointer types * member (function or data) pointer types
* all kinds of function objects * all kinds of function objects
[heading Examples]
& a_free_function
& a_class::a_static_member_function
& a_class::a_nonstatic_data_member
& a_class::a_nonstatic_member_function
std::less<int>()
// using namespace boost;
bind(std::less<int>(), _1, 5)
lambda::_1 += lambda::_2;
fusion::__make_fused_function_object__(std::less<int>())
[endsect] [endsect]
@ -124,16 +111,6 @@ type whose objects can appear immediately to the left of a function call operato
* function pointer types * function pointer types
* all kinds of function objects * all kinds of function objects
[heading Examples]
& a_free_function
& a_class::a_static_member_function
std::less<int>()
// using namespace boost;
bind(std::less<int>(), _1, 5)
lambda::_1 += lambda::_2;
fusion::__make_fused_function_object__(std::less<int>())
[endsect] [endsect]
@ -170,18 +147,6 @@ function objects won't need client-side support for `result_of`.
* __poly_func_obj__ types * __poly_func_obj__ types
* member (function or data) pointer types * member (function or data) pointer types
[heading Examples]
& a_free_function
& a_class::a_static_member_function
& a_class::a_nonstatic_data_member
& a_class::a_nonstatic_member_function
std::less<int>()
// using namespace boost;
bind(std::less<int>(), _1, 5)
// Note: Boost.Lambda expressions don't work with __boost_result_of__
fusion::__make_fused_function_object__(std::less<int>())
[endsect] [endsect]
@ -215,16 +180,6 @@ A non-member-pointer __def_callable_obj__ type.
* function objects of the Standard Library * function objects of the Standard Library
* all Fusion __functional_adapters__ * all Fusion __functional_adapters__
[heading Examples]
& a_free_function
& a_class::a_static_member_function
std::less<int>()
// using namespace boost;
bind(std::less<int>(), _1, 5)
// Note: Boost.Lambda expressions don't work with __boost_result_of__
fusion::__make_fused_function_object__(std::less<int>())
[endsect] [endsect]

View File

@ -3,24 +3,24 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Acknowledgements</title> <title>Acknowledgements</title>
<link rel="stylesheet" href="../boostbook.css" type="text/css"> <link rel="stylesheet" href="../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="prev" href="change_log.html" title="Change log"> <link rel="prev" href="change_log.html" title="Change log">
<link rel="next" href="references.html" title="References"> <link rel="next" href="references.html" title="References">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td> <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="../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../libraries.htm">Libraries</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="../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="change_log.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="references.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="change_log.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="references.html"><img src="../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both"> <div class="titlepage"><div><div><h2 class="title" style="clear: both">
@ -47,7 +47,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="change_log.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="references.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="change_log.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="references.html"><img src="../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Algorithms</title> <title>Algorithms</title>
<link rel="stylesheet" href="../boostbook.css" type="text/css"> <link rel="stylesheet" href="../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="prev" href="sequences/operators/comparison/greater_than_equal.html" title="greater <link rel="prev" href="sequences/operators/comparison/greater_than_equal.html" title="greater
@ -11,17 +11,17 @@
<link rel="next" href="algorithms/iteration.html" title="Iteration"> <link rel="next" href="algorithms/iteration.html" title="Iteration">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td> <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="../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../libraries.htm">Libraries</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="../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="sequences/operators/comparison/greater_than_equal.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="algorithms/iteration.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="sequences/operators/comparison/greater_than_equal.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="algorithms/iteration.html"><img src="../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both"> <div class="titlepage"><div><div><h2 class="title" style="clear: both">
@ -44,7 +44,7 @@
</dl></dd> </dl></dd>
</dl></div> </dl></div>
<a name="fusion.algorithms.lazy_evaluation"></a><h3> <a name="fusion.algorithms.lazy_evaluation"></a><h3>
<a name="id572828"></a> <a name="id1113801"></a>
<a href="algorithms.html#fusion.algorithms.lazy_evaluation">Lazy Evaluation</a> <a href="algorithms.html#fusion.algorithms.lazy_evaluation">Lazy Evaluation</a>
</h3> </h3>
<p> <p>
@ -58,39 +58,39 @@
fusion algorithms are functional in nature such that algorithms are non mutating fusion algorithms are functional in nature such that algorithms are non mutating
(no side effects). However, due to the high cost of returning full sequences (no side effects). However, due to the high cost of returning full sequences
such as vectors and lists, <span class="emphasis"><em>Views</em></span> are returned from Fusion such as vectors and lists, <span class="emphasis"><em>Views</em></span> are returned from Fusion
algorithms instead. For example, the <a href="algorithms/transformation/functions/transform.html" title="transform"><tt class="computeroutput"><span class="identifier">transform</span></tt></a> algorithm does not actually algorithms instead. For example, the <a href="algorithms/transformation/functions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">transform</span></code></a> algorithm does not actually
return a transformed version of the original sequence. <a href="algorithms/transformation/functions/transform.html" title="transform"><tt class="computeroutput"><span class="identifier">transform</span></tt></a> returns a <a href="sequences/views/transform_view.html" title="transform_view"><tt class="computeroutput"><span class="identifier">transform_view</span></tt></a>. This view holds a return a transformed version of the original sequence. <a href="algorithms/transformation/functions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">transform</span></code></a> returns a <a href="sequences/views/transform_view.html" title="transform_view"><code class="computeroutput"><span class="identifier">transform_view</span></code></a>. This view holds a
reference to the original sequence plus the transform function. Iteration over reference to the original sequence plus the transform function. Iteration over
the <a href="sequences/views/transform_view.html" title="transform_view"><tt class="computeroutput"><span class="identifier">transform_view</span></tt></a> the <a href="sequences/views/transform_view.html" title="transform_view"><code class="computeroutput"><span class="identifier">transform_view</span></code></a>
will apply the transform function over the sequence elements on demand. This will apply the transform function over the sequence elements on demand. This
<span class="emphasis"><em>lazy</em></span> evaluation scheme allows us to chain as many algorithms <span class="emphasis"><em>lazy</em></span> evaluation scheme allows us to chain as many algorithms
as we want without incurring a high runtime penalty. as we want without incurring a high runtime penalty.
</p> </p>
<a name="fusion.algorithms.sequence_extension"></a><h3> <a name="fusion.algorithms.sequence_extension"></a><h3>
<a name="id572975"></a> <a name="id1113934"></a>
<a href="algorithms.html#fusion.algorithms.sequence_extension">Sequence Extension</a> <a href="algorithms.html#fusion.algorithms.sequence_extension">Sequence Extension</a>
</h3> </h3>
<p> <p>
The <span class="emphasis"><em>lazy</em></span> evaluation scheme where <a href="algorithms.html" title="Algorithms">Algorithms</a> The <span class="emphasis"><em>lazy</em></span> evaluation scheme where <a href="algorithms.html" title="Algorithms">Algorithms</a>
return <a href="sequences/views.html" title="Views">Views</a> also allows operations return <a href="sequences/views.html" title="Views">Views</a> also allows operations
such as <a href="algorithms/transformation/functions/push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">push_back</span></tt></a> to be totally generic. In such as <a href="algorithms/transformation/functions/push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a> to be totally generic. In
Fusion, <a href="algorithms/transformation/functions/push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">push_back</span></tt></a> is actually a generic algorithm Fusion, <a href="algorithms/transformation/functions/push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a> is actually a generic algorithm
that works on all sequences. Given an input sequence <tt class="computeroutput"><span class="identifier">s</span></tt> that works on all sequences. Given an input sequence <code class="computeroutput"><span class="identifier">s</span></code>
and a value <tt class="computeroutput"><span class="identifier">x</span></tt>, Fusion's <a href="algorithms/transformation/functions/push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">push_back</span></tt></a> algorithm simply returns and a value <code class="computeroutput"><span class="identifier">x</span></code>, Fusion's <a href="algorithms/transformation/functions/push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a> algorithm simply returns
a <a href="sequences/views/joint_view.html" title="joint_view"><tt class="computeroutput"><span class="identifier">joint_view</span></tt></a>: a <a href="sequences/views/joint_view.html" title="joint_view"><code class="computeroutput"><span class="identifier">joint_view</span></code></a>:
a view that holds a reference to the original sequence <tt class="computeroutput"><span class="identifier">s</span></tt> a view that holds a reference to the original sequence <code class="computeroutput"><span class="identifier">s</span></code>
and the value <tt class="computeroutput"><span class="identifier">x</span></tt>. Functions and the value <code class="computeroutput"><span class="identifier">x</span></code>. Functions
that were once sequence specific and need to be implemented N times over N that were once sequence specific and need to be implemented N times over N
different sequences are now implemented only once. That is to say that Fusion different sequences are now implemented only once. That is to say that Fusion
sequences are cheaply extensible. However, an important caveat is that the sequences are cheaply extensible. However, an important caveat is that the
result of a sequence extending operation like <a href="algorithms/transformation/functions/push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">push_back</span></tt></a> does not retain the properties result of a sequence extending operation like <a href="algorithms/transformation/functions/push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a> does not retain the properties
of the original sequence such as associativity of <span class="underline">_set</span>_s. of the original sequence such as associativity of <span class="underline">_set</span>_s.
To regain the original sequence, <a href="sequences/conversion/functions.html" title="Functions">Conversion</a> To regain the original sequence, <a href="sequences/conversion/functions.html" title="Functions">Conversion</a>
functions are provided. You may use one of the <a href="sequences/conversion/functions.html" title="Functions">Conversion</a> functions are provided. You may use one of the <a href="sequences/conversion/functions.html" title="Functions">Conversion</a>
functions to convert back to the original sequence type. functions to convert back to the original sequence type.
</p> </p>
<a name="fusion.algorithms.header"></a><h3> <a name="fusion.algorithms.header"></a><h3>
<a name="id573200"></a> <a name="id1114134"></a>
<a href="algorithms.html#fusion.algorithms.header">Header</a> <a href="algorithms.html#fusion.algorithms.header">Header</a>
</h3> </h3>
<pre class="programlisting"> <pre class="programlisting">
@ -104,7 +104,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="sequences/operators/comparison/greater_than_equal.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="algorithms/iteration.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="sequences/operators/comparison/greater_than_equal.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="algorithms/iteration.html"><img src="../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,24 +3,24 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Iteration</title> <title>Iteration</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../algorithms.html" title="Algorithms"> <link rel="up" href="../algorithms.html" title="Algorithms">
<link rel="prev" href="../algorithms.html" title="Algorithms"> <link rel="prev" href="../algorithms.html" title="Algorithms">
<link rel="next" href="iteration/functions.html" title="Functions"> <link rel="next" href="iteration/functions.html" title="Functions">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td> <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="../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../libraries.htm">Libraries</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="../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../algorithms.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithms.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="iteration/functions.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../algorithms.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithms.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="iteration/functions.html"><img src="../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title"> <div class="titlepage"><div><div><h3 class="title">
@ -34,7 +34,7 @@
a sequence repeatedly applying an operation to its elements. a sequence repeatedly applying an operation to its elements.
</p> </p>
<a name="fusion.algorithms.iteration.header"></a><h4> <a name="fusion.algorithms.iteration.header"></a><h4>
<a name="id573309"></a> <a name="id1114231"></a>
<a href="iteration.html#fusion.algorithms.iteration.header">Header</a> <a href="iteration.html#fusion.algorithms.iteration.header">Header</a>
</h4> </h4>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../algorithms.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithms.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="iteration/functions.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../algorithms.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithms.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="iteration/functions.html"><img src="../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,24 +3,24 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Functions</title> <title>Functions</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../iteration.html" title="Iteration"> <link rel="up" href="../iteration.html" title="Iteration">
<link rel="prev" href="../iteration.html" title="Iteration"> <link rel="prev" href="../iteration.html" title="Iteration">
<link rel="next" href="functions/fold.html" title="fold"> <link rel="next" href="functions/fold.html" title="fold">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> <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="../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../libraries.htm">Libraries</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="../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../iteration.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../iteration.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="functions/fold.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../iteration.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../iteration.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="functions/fold.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
@ -38,7 +38,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../iteration.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../iteration.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="functions/fold.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../iteration.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../iteration.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="functions/fold.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,41 +3,41 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>accumulate</title> <title>accumulate</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="fold.html" title="fold"> <link rel="prev" href="fold.html" title="fold">
<link rel="next" href="for_each.html" title="for_each"> <link rel="next" href="for_each.html" title="for_each">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="fold.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="for_each.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="fold.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="for_each.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.iteration.functions.accumulate"></a><a href="accumulate.html" title="accumulate">accumulate</a></h5></div></div></div> <a name="fusion.algorithms.iteration.functions.accumulate"></a><a href="accumulate.html" title="accumulate">accumulate</a></h5></div></div></div>
<a name="fusion.algorithms.iteration.functions.accumulate.description"></a><h6> <a name="fusion.algorithms.iteration.functions.accumulate.description"></a><h6>
<a name="id575113"></a> <a name="id1115707"></a>
<a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.description">Description</a> <a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.description">Description</a>
</h6> </h6>
<p> <p>
For a sequence <tt class="computeroutput"><span class="identifier">Seq</span></tt>, initial Repeatedly applies binary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
state, and binary function object or function pointer <tt class="computeroutput"><span class="identifier">f</span></tt>, Object">Polymorphic
accumulate repeatedly applies binary <tt class="computeroutput"><span class="identifier">f</span></tt> Function Object</a> <code class="computeroutput"><span class="identifier">f</span></code>
to each element of <tt class="computeroutput"><span class="identifier">Seq</span></tt> to each element of a sequence and the previous state. <a href="accumulate.html" title="accumulate"><code class="computeroutput"><span class="identifier">accumulate</span></code></a> is equivalent to
and the previous state. <a href="fold.html" title="fold"><code class="computeroutput"><span class="identifier">fold</span></code></a>.
</p> </p>
<a name="fusion.algorithms.iteration.functions.accumulate.synopsis"></a><h6> <a name="fusion.algorithms.iteration.functions.accumulate.synopsis"></a><h6>
<a name="id575193"></a> <a name="id1115786"></a>
<a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.synopsis">Synopsis</a> <a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -46,11 +46,11 @@
<span class="keyword">typename</span> <span class="identifier">State</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="keyword">typename</span> <span class="identifier">F</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/accumulate.html" title="accumulate"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">accumulate</span></tt></a><span class="special">&lt;</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">&gt;::</span><span class="identifier">type</span> <span class="identifier">accumulate</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/accumulate.html" title="accumulate"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">accumulate</span></code></a><span class="special">&lt;</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">&gt;::</span><span class="identifier">type</span> <span class="identifier">accumulate</span><span class="special">(</span>
<span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">F</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">F</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id575454"></a><p class="title"><b>Table<EFBFBD>1.34.<2E>Parameters</b></p> <a name="id1116015"></a><p class="title"><b>Table<EFBFBD>1.34.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -78,17 +78,17 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>, <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">eN</span> Sequence</a>, <code 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> must be a valid expression for <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></code> must be a valid expression for
each element <tt class="computeroutput"><span class="identifier">e1</span></tt> each element <code class="computeroutput"><span class="identifier">e1</span></code>
to <tt class="computeroutput"><span class="identifier">eN</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt> to <code class="computeroutput"><span class="identifier">eN</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -100,7 +100,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">initial_state</span></tt> <code class="computeroutput"><span class="identifier">initial_state</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -117,14 +117,14 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <code class="computeroutput"><span class="identifier">f</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <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">&lt;</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">)&gt;::</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> A model of binary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
for each element <tt class="computeroutput"><span class="identifier">e</span></tt> Object">Polymorphic
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> Function Object</a>
</p> </p>
</td> </td>
<td> <td>
@ -137,7 +137,7 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.iteration.functions.accumulate.expression_semantics"></a><h6> <a name="fusion.algorithms.iteration.functions.accumulate.expression_semantics"></a><h6>
<a name="id575906"></a> <a name="id1116278"></a>
<a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.expression_semantics">Expression <a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
@ -145,34 +145,38 @@
<span class="identifier">accumulate</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> <span class="identifier">accumulate</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> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: Any type <span class="bold"><strong>Return type</strong></span>: Any type
</p> </p>
<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> <span class="bold"><strong>Semantics</strong></span>: Equivalent to <code 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></code>
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>. where <code class="computeroutput"><span class="identifier">e1</span> <span class="special">...</span><span class="identifier">eN</span></code> are the elements of <code class="computeroutput"><span class="identifier">seq</span></code>.
</p> </p>
<a name="fusion.algorithms.iteration.functions.accumulate.complexity"></a><h6> <a name="fusion.algorithms.iteration.functions.accumulate.complexity"></a><h6>
<a name="id576116"></a> <a name="id1116463"></a>
<a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.complexity">Complexity</a> <a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear, exactly <tt class="computeroutput"><a href="../../../sequences/intrinsics/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">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> applications of <tt class="computeroutput"><span class="identifier">f</span></tt>. Linear, exactly <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">f</span></code>.
</p> </p>
<a name="fusion.algorithms.iteration.functions.accumulate.header"></a><h6> <a name="fusion.algorithms.iteration.functions.accumulate.header"></a><h6>
<a name="id576212"></a> <a name="id1116547"></a>
<a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.header">Header</a> <a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">accumulate</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">accumulate</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.iteration.functions.accumulate.example"></a><h6> <a name="fusion.algorithms.iteration.functions.accumulate.example"></a><h6>
<a name="id576320"></a> <a name="id1116642"></a>
<a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.example">Example</a> <a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">struct</span> <span class="identifier">make_string</span> <span class="keyword">struct</span> <span class="identifier">make_string</span>
<span class="special">{</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">&lt;</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">State</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">result</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">type</span><span class="special">;</span>
<span class="special">};</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">&gt;</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">&amp;</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">&amp;</span> <span class="identifier">str</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="keyword">operator</span><span class="special">()(</span><span class="keyword">const</span> <span class="identifier">T</span><span class="special">&amp;</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">&amp;</span> <span class="identifier">str</span><span class="special">)</span> <span class="keyword">const</span>
@ -181,8 +185,8 @@
<span class="special">}</span> <span class="special">}</span>
<span class="special">};</span> <span class="special">};</span>
<span class="special">...</span> <span class="special">...</span>
<span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</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="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</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="accumulate.html" title="accumulate"><tt class="computeroutput"><span class="identifier">accumulate</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> <span class="identifier">assert</span><span class="special">(</span><a href="accumulate.html" title="accumulate"><code class="computeroutput"><span class="identifier">accumulate</span></code></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> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -192,7 +196,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="fold.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="for_each.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="fold.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="for_each.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,41 +3,40 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>fold</title> <title>fold</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="../functions.html" title="Functions"> <link rel="prev" href="../functions.html" title="Functions">
<link rel="next" href="accumulate.html" title="accumulate"> <link rel="next" href="accumulate.html" title="accumulate">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <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> <a accesskey="p" href="../functions.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="accumulate.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.iteration.functions.fold"></a><a href="fold.html" title="fold">fold</a></h5></div></div></div> <a name="fusion.algorithms.iteration.functions.fold"></a><a href="fold.html" title="fold">fold</a></h5></div></div></div>
<a name="fusion.algorithms.iteration.functions.fold.description"></a><h6> <a name="fusion.algorithms.iteration.functions.fold.description"></a><h6>
<a name="id573446"></a> <a name="id1114351"></a>
<a href="fold.html#fusion.algorithms.iteration.functions.fold.description">Description</a> <a href="fold.html#fusion.algorithms.iteration.functions.fold.description">Description</a>
</h6> </h6>
<p> <p>
For a sequence <tt class="computeroutput"><span class="identifier">Seq</span></tt>, initial Repeatedly applies binary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
state, and binary function object or function pointer <tt class="computeroutput"><span class="identifier">f</span></tt>, Object">Polymorphic
fold repeatedly applies binary <tt class="computeroutput"><span class="identifier">f</span></tt> Function Object</a> <code class="computeroutput"><span class="identifier">f</span></code>
to each element of <tt class="computeroutput"><span class="identifier">Seq</span></tt> to each element of a sequence and the previous state.
and the previous state.
</p> </p>
<a name="fusion.algorithms.iteration.functions.fold.synopsis"></a><h6> <a name="fusion.algorithms.iteration.functions.fold.synopsis"></a><h6>
<a name="id573525"></a> <a name="id1114398"></a>
<a href="fold.html#fusion.algorithms.iteration.functions.fold.synopsis">Synopsis</a> <a href="fold.html#fusion.algorithms.iteration.functions.fold.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -46,11 +45,11 @@
<span class="keyword">typename</span> <span class="identifier">State</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="keyword">typename</span> <span class="identifier">F</span>
<span class="special">&gt;</span> <span class="special">&gt;</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">&lt;</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">&gt;::</span><span class="identifier">type</span> <span class="identifier">fold</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/fold.html" title="fold"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">fold</span></code></a><span class="special">&lt;</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">&gt;::</span><span class="identifier">type</span> <span class="identifier">fold</span><span class="special">(</span>
<span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">F</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">F</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id573784"></a><p class="title"><b>Table<EFBFBD>1.33.<2E>Parameters</b></p> <a name="id1114626"></a><p class="title"><b>Table<EFBFBD>1.33.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -78,17 +77,16 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">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 Sequence</a>,<code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> must be a valid expression for
each element <tt class="computeroutput"><span class="identifier">e</span></tt> each element <code class="computeroutput"><span class="identifier">e</span></code>
in <tt class="computeroutput"><span class="identifier">seq</span></tt>, and current in <code class="computeroutput"><span class="identifier">seq</span></code>
state <tt class="computeroutput"><span class="identifier">s</span></tt>
</p> </p>
</td> </td>
<td> <td>
@ -100,7 +98,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">initial_state</span></tt> <code class="computeroutput"><span class="identifier">initial_state</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -117,14 +115,14 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <code class="computeroutput"><span class="identifier">f</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <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">&lt;</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">)&gt;::</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> A model of binary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
for each element <tt class="computeroutput"><span class="identifier">e</span></tt> Object">Polymorphic
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> Function Object</a>
</p> </p>
</td> </td>
<td> <td>
@ -137,7 +135,7 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.iteration.functions.fold.expression_semantics"></a><h6> <a name="fusion.algorithms.iteration.functions.fold.expression_semantics"></a><h6>
<a name="id574194"></a> <a name="id1114833"></a>
<a href="fold.html#fusion.algorithms.iteration.functions.fold.expression_semantics">Expression <a href="fold.html#fusion.algorithms.iteration.functions.fold.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
@ -145,34 +143,38 @@
<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> <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> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: Any type <span class="bold"><strong>Return type</strong></span>: Any type
</p> </p>
<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> <span class="bold"><strong>Semantics</strong></span>: Equivalent to <code 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></code>
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>. where <code class="computeroutput"><span class="identifier">e1</span> <span class="special">...</span><span class="identifier">eN</span></code> are the elements of <code class="computeroutput"><span class="identifier">seq</span></code>.
</p> </p>
<a name="fusion.algorithms.iteration.functions.fold.complexity"></a><h6> <a name="fusion.algorithms.iteration.functions.fold.complexity"></a><h6>
<a name="id574404"></a> <a name="id1115018"></a>
<a href="fold.html#fusion.algorithms.iteration.functions.fold.complexity">Complexity</a> <a href="fold.html#fusion.algorithms.iteration.functions.fold.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear, exactly <tt class="computeroutput"><a href="../../../sequences/intrinsics/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">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> applications of <tt class="computeroutput"><span class="identifier">f</span></tt>. Linear, exactly <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">f</span></code>.
</p> </p>
<a name="fusion.algorithms.iteration.functions.fold.header"></a><h6> <a name="fusion.algorithms.iteration.functions.fold.header"></a><h6>
<a name="id574499"></a> <a name="id1115102"></a>
<a href="fold.html#fusion.algorithms.iteration.functions.fold.header">Header</a> <a href="fold.html#fusion.algorithms.iteration.functions.fold.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.iteration.functions.fold.example"></a><h6> <a name="fusion.algorithms.iteration.functions.fold.example"></a><h6>
<a name="id574606"></a> <a name="id1115197"></a>
<a href="fold.html#fusion.algorithms.iteration.functions.fold.example">Example</a> <a href="fold.html#fusion.algorithms.iteration.functions.fold.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">struct</span> <span class="identifier">make_string</span> <span class="keyword">struct</span> <span class="identifier">make_string</span>
<span class="special">{</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">&lt;</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">State</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">result</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">type</span><span class="special">;</span>
<span class="special">};</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">&gt;</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">&amp;</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">&amp;</span> <span class="identifier">str</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="keyword">operator</span><span class="special">()(</span><span class="keyword">const</span> <span class="identifier">T</span><span class="special">&amp;</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">&amp;</span> <span class="identifier">str</span><span class="special">)</span> <span class="keyword">const</span>
@ -181,8 +183,8 @@
<span class="special">}</span> <span class="special">}</span>
<span class="special">};</span> <span class="special">};</span>
<span class="special">...</span> <span class="special">...</span>
<span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</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="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</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> <span class="identifier">assert</span><span class="special">(</span><a href="fold.html" title="fold"><code class="computeroutput"><span class="identifier">fold</span></code></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> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -192,7 +194,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <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> <a accesskey="p" href="../functions.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="accumulate.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,37 +3,37 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>for_each</title> <title>for_each</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="accumulate.html" title="accumulate"> <link rel="prev" href="accumulate.html" title="accumulate">
<link rel="next" href="../metafunctions.html" title="Metafunctions"> <link rel="next" href="../metafunctions.html" title="Metafunctions">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="accumulate.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="../metafunctions.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="accumulate.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="../metafunctions.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.iteration.functions.for_each"></a><a href="for_each.html" title="for_each">for_each</a></h5></div></div></div> <a name="fusion.algorithms.iteration.functions.for_each"></a><a href="for_each.html" title="for_each">for_each</a></h5></div></div></div>
<a name="fusion.algorithms.iteration.functions.for_each.description"></a><h6> <a name="fusion.algorithms.iteration.functions.for_each.description"></a><h6>
<a name="id576823"></a> <a name="id1117148"></a>
<a href="for_each.html#fusion.algorithms.iteration.functions.for_each.description">Description</a> <a href="for_each.html#fusion.algorithms.iteration.functions.for_each.description">Description</a>
</h6> </h6>
<p> <p>
Applies a unary function object to each element of a sequence. Applies a unary function object to each element of a sequence.
</p> </p>
<a name="fusion.algorithms.iteration.functions.for_each.synopsis"></a><h6> <a name="fusion.algorithms.iteration.functions.for_each.synopsis"></a><h6>
<a name="id576855"></a> <a name="id1117177"></a>
<a href="for_each.html#fusion.algorithms.iteration.functions.for_each.synopsis">Synopsis</a> <a href="for_each.html#fusion.algorithms.iteration.functions.for_each.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -41,11 +41,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</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">F</span> <span class="keyword">typename</span> <span class="identifier">F</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/for_each.html" title="for_each"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">for_each</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">for_each</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">for_each</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">for_each</span><span class="special">(</span>
<span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id577058"></a><p class="title"><b>Table<EFBFBD>1.35.<2E>Parameters</b></p> <a name="id1117355"></a><p class="title"><b>Table<EFBFBD>1.35.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -73,16 +73,16 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">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></tt> must be a valid expression for Sequence</a>, <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> must be a valid expression for
each element <tt class="computeroutput"><span class="identifier">e</span></tt> each element <code class="computeroutput"><span class="identifier">e</span></code>
in <tt class="computeroutput"><span class="identifier">seq</span></tt> in <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -94,7 +94,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <code class="computeroutput"><span class="identifier">f</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -114,36 +114,36 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.iteration.functions.for_each.expression_semantics"></a><h6> <a name="fusion.algorithms.iteration.functions.for_each.expression_semantics"></a><h6>
<a name="id577258"></a> <a name="id1117534"></a>
<a href="for_each.html#fusion.algorithms.iteration.functions.for_each.expression_semantics">Expression <a href="for_each.html#fusion.algorithms.iteration.functions.for_each.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="for_each.html" title="for_each"><tt class="computeroutput"><span class="identifier">for_each</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> <a href="for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">for_each</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">void</span></tt> <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">void</span></code>
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Calls <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> for each element <tt class="computeroutput"><span class="identifier">e</span></tt> <span class="bold"><strong>Semantics</strong></span>: Calls <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> for each element <code class="computeroutput"><span class="identifier">e</span></code>
in <tt class="computeroutput"><span class="identifier">seq</span></tt>. in <code class="computeroutput"><span class="identifier">seq</span></code>.
</p> </p>
<a name="fusion.algorithms.iteration.functions.for_each.complexity"></a><h6> <a name="fusion.algorithms.iteration.functions.for_each.complexity"></a><h6>
<a name="id577417"></a> <a name="id1117673"></a>
<a href="for_each.html#fusion.algorithms.iteration.functions.for_each.complexity">Complexity</a> <a href="for_each.html#fusion.algorithms.iteration.functions.for_each.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear, exactly <tt class="computeroutput"><a href="../../../sequences/intrinsics/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">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> applications of <tt class="computeroutput"><span class="identifier">f</span></tt>. Linear, exactly <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">f</span></code>.
</p> </p>
<a name="fusion.algorithms.iteration.functions.for_each.header"></a><h6> <a name="fusion.algorithms.iteration.functions.for_each.header"></a><h6>
<a name="id577512"></a> <a name="id1117757"></a>
<a href="for_each.html#fusion.algorithms.iteration.functions.for_each.header">Header</a> <a href="for_each.html#fusion.algorithms.iteration.functions.for_each.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">for_each</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">for_each</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.iteration.functions.for_each.example"></a><h6> <a name="fusion.algorithms.iteration.functions.for_each.example"></a><h6>
<a name="id577619"></a> <a name="id1117852"></a>
<a href="for_each.html#fusion.algorithms.iteration.functions.for_each.example">Example</a> <a href="for_each.html#fusion.algorithms.iteration.functions.for_each.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -156,9 +156,9 @@
<span class="special">}</span> <span class="special">}</span>
<span class="special">};</span> <span class="special">};</span>
<span class="special">...</span> <span class="special">...</span>
<a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</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> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</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>
<a href="for_each.html" title="for_each"><tt class="computeroutput"><span class="identifier">for_each</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <span class="identifier">increment</span><span class="special">());</span> <a href="for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">for_each</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <span class="identifier">increment</span><span class="special">());</span>
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">vec</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><span class="identifier">vec</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -168,7 +168,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="accumulate.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="../metafunctions.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="accumulate.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="../metafunctions.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,24 +3,24 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Metafunctions</title> <title>Metafunctions</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../iteration.html" title="Iteration"> <link rel="up" href="../iteration.html" title="Iteration">
<link rel="prev" href="functions/for_each.html" title="for_each"> <link rel="prev" href="functions/for_each.html" title="for_each">
<link rel="next" href="metafunctions/fold.html" title="fold"> <link rel="next" href="metafunctions/fold.html" title="fold">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> <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="../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../libraries.htm">Libraries</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="../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="functions/for_each.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../iteration.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="metafunctions/fold.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="functions/for_each.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../iteration.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="metafunctions/fold.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
@ -38,7 +38,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="functions/for_each.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../iteration.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="metafunctions/fold.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="functions/for_each.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../iteration.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="metafunctions/fold.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,37 +3,37 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>accumulate</title> <title>accumulate</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="fold.html" title="fold"> <link rel="prev" href="fold.html" title="fold">
<link rel="next" href="for_each.html" title="for_each"> <link rel="next" href="for_each.html" title="for_each">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="fold.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="for_each.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="fold.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="for_each.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.iteration.metafunctions.accumulate"></a><a href="accumulate.html" title="accumulate">accumulate</a></h5></div></div></div> <a name="fusion.algorithms.iteration.metafunctions.accumulate"></a><a href="accumulate.html" title="accumulate">accumulate</a></h5></div></div></div>
<a name="fusion.algorithms.iteration.metafunctions.accumulate.description"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.accumulate.description"></a><h6>
<a name="id578935"></a> <a name="id1136364"></a>
<a href="accumulate.html#fusion.algorithms.iteration.metafunctions.accumulate.description">Description</a> <a href="accumulate.html#fusion.algorithms.iteration.metafunctions.accumulate.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/accumulate.html" title="accumulate"><tt class="computeroutput"><span class="identifier">accumulate</span></tt></a>. Returns the result type of <a href="../functions/accumulate.html" title="accumulate"><code class="computeroutput"><span class="identifier">accumulate</span></code></a>.
</p> </p>
<a name="fusion.algorithms.iteration.metafunctions.accumulate.synopsis"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.accumulate.synopsis"></a><h6>
<a name="id578985"></a> <a name="id1136407"></a>
<a href="accumulate.html#fusion.algorithms.iteration.metafunctions.accumulate.synopsis">Synopsis</a> <a href="accumulate.html#fusion.algorithms.iteration.metafunctions.accumulate.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id579121"></a><p class="title"><b>Table<EFBFBD>1.37.<2E>Parameters</b></p> <a name="id1136527"></a><p class="title"><b>Table<EFBFBD>1.37.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -75,7 +75,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -94,7 +94,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">State</span></tt> <code class="computeroutput"><span class="identifier">State</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -104,21 +104,21 @@
</td> </td>
<td> <td>
<p> <p>
The initial state for the first application of <tt class="computeroutput"><span class="identifier">F</span></tt> The initial state for the first application of <code class="computeroutput"><span class="identifier">F</span></code>
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">F</span></tt> <code class="computeroutput"><span class="identifier">F</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <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">&lt;</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">)&gt;::</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> A model of binary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
for each element <tt class="computeroutput"><span class="identifier">e</span></tt> Object">Polymorphic
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> Function Object</a>
</p> </p>
</td> </td>
<td> <td>
@ -131,32 +131,34 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.iteration.metafunctions.accumulate.expression_semantics"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.accumulate.expression_semantics"></a><h6>
<a name="id579472"></a> <a name="id1136703"></a>
<a href="accumulate.html#fusion.algorithms.iteration.metafunctions.accumulate.expression_semantics">Expression <a href="accumulate.html#fusion.algorithms.iteration.metafunctions.accumulate.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="accumulate.html" title="accumulate"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">accumulate</span></tt></a><span class="special">&lt;</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">&gt;::</span><span class="identifier">type</span> <a href="accumulate.html" title="accumulate"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">accumulate</span></code></a><span class="special">&lt;</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">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: Any type <span class="bold"><strong>Return type</strong></span>: Any type
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns the result of applying <span class="bold"><strong>Semantics</strong></span>: Returns the result of applying
<tt class="computeroutput"><span class="identifier">accumulate</span></tt> to a sequence <code class="computeroutput"><span class="identifier">accumulate</span></code> to a sequence
of type <tt class="computeroutput"><span class="identifier">Sequence</span></tt>, with of type <code class="computeroutput"><span class="identifier">Sequence</span></code>, with
an initial state of type <tt class="computeroutput"><span class="identifier">State</span></tt> an initial state of type <code class="computeroutput"><span class="identifier">State</span></code>
and binary function object or function pointer of type <tt class="computeroutput"><span class="identifier">F</span></tt>. and binary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic
Function Object</a> of type <code class="computeroutput"><span class="identifier">F</span></code>.
</p> </p>
<a name="fusion.algorithms.iteration.metafunctions.accumulate.complexity"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.accumulate.complexity"></a><h6>
<a name="id579649"></a> <a name="id1136864"></a>
<a href="accumulate.html#fusion.algorithms.iteration.metafunctions.accumulate.complexity">Complexity</a> <a href="accumulate.html#fusion.algorithms.iteration.metafunctions.accumulate.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear, exactly <tt class="computeroutput"><a href="../../../sequences/intrinsics/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">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> applications of <tt class="computeroutput"><span class="identifier">F</span></tt>. Linear, exactly <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">F</span></code>.
</p> </p>
<a name="fusion.algorithms.iteration.metafunctions.accumulate.header"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.accumulate.header"></a><h6>
<a name="id579744"></a> <a name="id1136948"></a>
<a href="accumulate.html#fusion.algorithms.iteration.metafunctions.accumulate.header">Header</a> <a href="accumulate.html#fusion.algorithms.iteration.metafunctions.accumulate.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -170,7 +172,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="fold.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="for_each.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="fold.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="for_each.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,37 +3,37 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>fold</title> <title>fold</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="../metafunctions.html" title="Metafunctions"> <link rel="prev" href="../metafunctions.html" title="Metafunctions">
<link rel="next" href="accumulate.html" title="accumulate"> <link rel="next" href="accumulate.html" title="accumulate">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../metafunctions.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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> <a accesskey="p" href="../metafunctions.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="accumulate.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.iteration.metafunctions.fold"></a><a href="fold.html" title="fold">fold</a></h5></div></div></div> <a name="fusion.algorithms.iteration.metafunctions.fold"></a><a href="fold.html" title="fold">fold</a></h5></div></div></div>
<a name="fusion.algorithms.iteration.metafunctions.fold.description"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.fold.description"></a><h6>
<a name="id578002"></a> <a name="id1118190"></a>
<a href="fold.html#fusion.algorithms.iteration.metafunctions.fold.description">Description</a> <a href="fold.html#fusion.algorithms.iteration.metafunctions.fold.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/fold.html" title="fold"><tt class="computeroutput"><span class="identifier">fold</span></tt></a>. Returns the result type of <a href="../functions/fold.html" title="fold"><code class="computeroutput"><span class="identifier">fold</span></code></a>.
</p> </p>
<a name="fusion.algorithms.iteration.metafunctions.fold.synopsis"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.fold.synopsis"></a><h6>
<a name="id578051"></a> <a name="id1118233"></a>
<a href="fold.html#fusion.algorithms.iteration.metafunctions.fold.synopsis">Synopsis</a> <a href="fold.html#fusion.algorithms.iteration.metafunctions.fold.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id578187"></a><p class="title"><b>Table<EFBFBD>1.36.<2E>Parameters</b></p> <a name="id1118353"></a><p class="title"><b>Table<EFBFBD>1.36.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -75,7 +75,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -94,7 +94,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">State</span></tt> <code class="computeroutput"><span class="identifier">State</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -104,21 +104,21 @@
</td> </td>
<td> <td>
<p> <p>
The initial state for the first application of <tt class="computeroutput"><span class="identifier">F</span></tt> The initial state for the first application of <code class="computeroutput"><span class="identifier">F</span></code>
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">F</span></tt> <code class="computeroutput"><span class="identifier">F</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <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">&lt;</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">)&gt;::</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> A model of binary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
for each element <tt class="computeroutput"><span class="identifier">e</span></tt> Object">Polymorphic
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> Function Object</a>
</p> </p>
</td> </td>
<td> <td>
@ -131,32 +131,34 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.iteration.metafunctions.fold.expression_semantics"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.fold.expression_semantics"></a><h6>
<a name="id578537"></a> <a name="id1136005"></a>
<a href="fold.html#fusion.algorithms.iteration.metafunctions.fold.expression_semantics">Expression <a href="fold.html#fusion.algorithms.iteration.metafunctions.fold.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="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">&lt;</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">&gt;::</span><span class="identifier">type</span> <a href="fold.html" title="fold"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">fold</span></code></a><span class="special">&lt;</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">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: Any type <span class="bold"><strong>Return type</strong></span>: Any type
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns the result of applying <span class="bold"><strong>Semantics</strong></span>: Returns the result of applying
<tt class="computeroutput"><span class="identifier">fold</span></tt> to a sequence of <code class="computeroutput"><span class="identifier">fold</span></code> to a sequence of
type <tt class="computeroutput"><span class="identifier">Sequence</span></tt>, with an type <code class="computeroutput"><span class="identifier">Sequence</span></code>, with an
initial state of type <tt class="computeroutput"><span class="identifier">State</span></tt> initial state of type <code class="computeroutput"><span class="identifier">State</span></code>
and binary function object or function pointer of type <tt class="computeroutput"><span class="identifier">F</span></tt>. and binary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic
Function Object</a> of type <code class="computeroutput"><span class="identifier">F</span></code>.
</p> </p>
<a name="fusion.algorithms.iteration.metafunctions.fold.complexity"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.fold.complexity"></a><h6>
<a name="id578711"></a> <a name="id1136166"></a>
<a href="fold.html#fusion.algorithms.iteration.metafunctions.fold.complexity">Complexity</a> <a href="fold.html#fusion.algorithms.iteration.metafunctions.fold.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear, exactly <tt class="computeroutput"><a href="../../../sequences/intrinsics/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">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> applications of <tt class="computeroutput"><span class="identifier">F</span></tt>. Linear, exactly <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">F</span></code>.
</p> </p>
<a name="fusion.algorithms.iteration.metafunctions.fold.header"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.fold.header"></a><h6>
<a name="id578806"></a> <a name="id1136250"></a>
<a href="fold.html#fusion.algorithms.iteration.metafunctions.fold.header">Header</a> <a href="fold.html#fusion.algorithms.iteration.metafunctions.fold.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -170,7 +172,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../metafunctions.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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> <a accesskey="p" href="../metafunctions.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="accumulate.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,38 +3,38 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>for_each</title> <title>for_each</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="accumulate.html" title="accumulate"> <link rel="prev" href="accumulate.html" title="accumulate">
<link rel="next" href="../../query.html" title="Query"> <link rel="next" href="../../query.html" title="Query">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="accumulate.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="../../query.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="accumulate.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../query.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.iteration.metafunctions.for_each"></a><a href="for_each.html" title="for_each">for_each</a></h5></div></div></div> <a name="fusion.algorithms.iteration.metafunctions.for_each"></a><a href="for_each.html" title="for_each">for_each</a></h5></div></div></div>
<p> <p>
A metafunction returning the result type of applying <a href="../functions/for_each.html" title="for_each"><tt class="computeroutput"><span class="identifier">for_each</span></tt></a> to a sequence. The A metafunction returning the result type of applying <a href="../functions/for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">for_each</span></code></a> to a sequence. The
return type of <a href="../functions/for_each.html" title="for_each"><tt class="computeroutput"><span class="identifier">for_each</span></tt></a> is always <tt class="computeroutput"><span class="keyword">void</span></tt>. return type of <a href="../functions/for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">for_each</span></code></a> is always <code class="computeroutput"><span class="keyword">void</span></code>.
</p> </p>
<a name="fusion.algorithms.iteration.metafunctions.for_each.description"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.for_each.description"></a><h6>
<a name="id579927"></a> <a name="id1137109"></a>
<a href="for_each.html#fusion.algorithms.iteration.metafunctions.for_each.description">Description</a> <a href="for_each.html#fusion.algorithms.iteration.metafunctions.for_each.description">Description</a>
</h6> </h6>
<a name="fusion.algorithms.iteration.metafunctions.for_each.synopsis"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.for_each.synopsis"></a><h6>
<a name="id579954"></a> <a name="id1137133"></a>
<a href="for_each.html#fusion.algorithms.iteration.metafunctions.for_each.synopsis">Synopsis</a> <a href="for_each.html#fusion.algorithms.iteration.metafunctions.for_each.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id580076"></a><p class="title"><b>Table<EFBFBD>1.38.<2E>Parameters</b></p> <a name="id1137240"></a><p class="title"><b>Table<EFBFBD>1.38.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -76,7 +76,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -95,7 +95,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">F</span></tt> <code class="computeroutput"><span class="identifier">F</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -113,32 +113,32 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.iteration.metafunctions.for_each.expression_semantics"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.for_each.expression_semantics"></a><h6>
<a name="id580217"></a> <a name="id1137365"></a>
<a href="for_each.html#fusion.algorithms.iteration.metafunctions.for_each.expression_semantics">Expression <a href="for_each.html#fusion.algorithms.iteration.metafunctions.for_each.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="for_each.html" title="for_each"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">for_each</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">for_each</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">void</span></tt>. <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">void</span></code>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns the return type of <span class="bold"><strong>Semantics</strong></span>: Returns the return type of
<a href="../functions/for_each.html" title="for_each"><tt class="computeroutput"><span class="identifier">for_each</span></tt></a> for a sequence of type <a href="../functions/for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">for_each</span></code></a> for a sequence of type
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> and a unary <code class="computeroutput"><span class="identifier">Sequence</span></code> and a unary
function object <tt class="computeroutput"><span class="identifier">F</span></tt>. The function object <code class="computeroutput"><span class="identifier">F</span></code>. The
return type is always <tt class="computeroutput"><span class="keyword">void</span></tt>. return type is always <code class="computeroutput"><span class="keyword">void</span></code>.
</p> </p>
<a name="fusion.algorithms.iteration.metafunctions.for_each.complexity"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.for_each.complexity"></a><h6>
<a name="id580398"></a> <a name="id1137524"></a>
<a href="for_each.html#fusion.algorithms.iteration.metafunctions.for_each.complexity">Complexity</a> <a href="for_each.html#fusion.algorithms.iteration.metafunctions.for_each.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.iteration.metafunctions.for_each.header"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.for_each.header"></a><h6>
<a name="id580429"></a> <a name="id1137552"></a>
<a href="for_each.html#fusion.algorithms.iteration.metafunctions.for_each.header">Header</a> <a href="for_each.html#fusion.algorithms.iteration.metafunctions.for_each.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -152,7 +152,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="accumulate.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="../../query.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="accumulate.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../query.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,24 +3,24 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Query</title> <title>Query</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../algorithms.html" title="Algorithms"> <link rel="up" href="../algorithms.html" title="Algorithms">
<link rel="prev" href="iteration/metafunctions/for_each.html" title="for_each"> <link rel="prev" href="iteration/metafunctions/for_each.html" title="for_each">
<link rel="next" href="query/functions.html" title="Functions"> <link rel="next" href="query/functions.html" title="Functions">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td> <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="../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../libraries.htm">Libraries</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="../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="iteration/metafunctions/for_each.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithms.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="query/functions.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="iteration/metafunctions/for_each.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithms.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="query/functions.html"><img src="../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title"> <div class="titlepage"><div><div><h3 class="title">
@ -33,7 +33,7 @@
The query algorithms provide support for searching and analyzing sequences. The query algorithms provide support for searching and analyzing sequences.
</p> </p>
<a name="fusion.algorithms.query.header"></a><h4> <a name="fusion.algorithms.query.header"></a><h4>
<a name="id580564"></a> <a name="id1137670"></a>
<a href="query.html#fusion.algorithms.query.header">Header</a> <a href="query.html#fusion.algorithms.query.header">Header</a>
</h4> </h4>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="iteration/metafunctions/for_each.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithms.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="query/functions.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="iteration/metafunctions/for_each.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithms.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="query/functions.html"><img src="../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,24 +3,24 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Functions</title> <title>Functions</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../query.html" title="Query"> <link rel="up" href="../query.html" title="Query">
<link rel="prev" href="../query.html" title="Query"> <link rel="prev" href="../query.html" title="Query">
<link rel="next" href="functions/any.html" title="any"> <link rel="next" href="functions/any.html" title="any">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> <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="../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../libraries.htm">Libraries</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="../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../query.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../query.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="functions/any.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../query.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../query.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="functions/any.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
@ -42,7 +42,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../query.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../query.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="functions/any.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../query.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../query.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="functions/any.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,41 +3,41 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>all</title> <title>all</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="any.html" title="any"> <link rel="prev" href="any.html" title="any">
<link rel="next" href="none.html" title="none"> <link rel="next" href="none.html" title="none">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="any.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="none.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="any.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="none.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.functions.all"></a><a href="all.html" title="all">all</a></h5></div></div></div> <a name="fusion.algorithms.query.functions.all"></a><a href="all.html" title="all">all</a></h5></div></div></div>
<a name="fusion.algorithms.query.functions.all.description"></a><h6> <a name="fusion.algorithms.query.functions.all.description"></a><h6>
<a name="id581898"></a> <a name="id1138849"></a>
<a href="all.html#fusion.algorithms.query.functions.all.description">Description</a> <a href="all.html#fusion.algorithms.query.functions.all.description">Description</a>
</h6> </h6>
<p> <p>
For a sequence <tt class="computeroutput"><span class="identifier">seq</span></tt> and For a sequence <code class="computeroutput"><span class="identifier">seq</span></code> and
unary function object <tt class="computeroutput"><span class="identifier">f</span></tt>, unary function object <code class="computeroutput"><span class="identifier">f</span></code>,
<tt class="computeroutput"><span class="identifier">all</span></tt> returns true if <code class="computeroutput"><span class="identifier">all</span></code> returns true if
<tt class="computeroutput"><span class="identifier">f</span></tt> returns true for every <code class="computeroutput"><span class="identifier">f</span></code> returns true for every
element of <tt class="computeroutput"><span class="identifier">seq</span></tt>. element of <code class="computeroutput"><span class="identifier">seq</span></code>.
</p> </p>
<a name="fusion.algorithms.query.functions.all.synopsis"></a><h6> <a name="fusion.algorithms.query.functions.all.synopsis"></a><h6>
<a name="id581988"></a> <a name="id1138929"></a>
<a href="all.html#fusion.algorithms.query.functions.all.synopsis">Synopsis</a> <a href="all.html#fusion.algorithms.query.functions.all.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -45,11 +45,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</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">F</span> <span class="keyword">typename</span> <span class="identifier">F</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/all.html" title="all"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">all</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">all</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/all.html" title="all"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">all</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">all</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id582182"></a><p class="title"><b>Table<EFBFBD>1.40.<2E>Parameters</b></p> <a name="id1139098"></a><p class="title"><b>Table<EFBFBD>1.40.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -77,16 +77,16 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">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></tt> is a valid expression, convertible Sequence</a>, <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> is a valid expression, convertible
to <tt class="computeroutput"><span class="keyword">bool</span></tt>, for every to <code class="computeroutput"><span class="keyword">bool</span></code>, for every
element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt> element <code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -98,7 +98,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <code class="computeroutput"><span class="identifier">f</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -116,38 +116,38 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.functions.all.expression_semantics"></a><h6> <a name="fusion.algorithms.query.functions.all.expression_semantics"></a><h6>
<a name="id582383"></a> <a name="id1139276"></a>
<a href="all.html#fusion.algorithms.query.functions.all.expression_semantics">Expression <a href="all.html#fusion.algorithms.query.functions.all.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="all.html" title="all"><tt class="computeroutput"><span class="identifier">all</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> <a href="all.html" title="all"><code class="computeroutput"><span class="identifier">all</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt> <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns true if and only <span class="bold"><strong>Semantics</strong></span>: Returns true if and only
if <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> if <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code>
evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt> for every evaluates to <code class="computeroutput"><span class="keyword">true</span></code> for every
element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>. element <code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code>.
</p> </p>
<a name="fusion.algorithms.query.functions.all.complexity"></a><h6> <a name="fusion.algorithms.query.functions.all.complexity"></a><h6>
<a name="id582552"></a> <a name="id1139426"></a>
<a href="all.html#fusion.algorithms.query.functions.all.complexity">Complexity</a> <a href="all.html#fusion.algorithms.query.functions.all.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <tt class="computeroutput"><a href="../../../sequences/intrinsics/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">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons. Linear. At most <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> comparisons.
</p> </p>
<a name="fusion.algorithms.query.functions.all.header"></a><h6> <a name="fusion.algorithms.query.functions.all.header"></a><h6>
<a name="id582636"></a> <a name="id1139500"></a>
<a href="all.html#fusion.algorithms.query.functions.all.header">Header</a> <a href="all.html#fusion.algorithms.query.functions.all.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">query</span><span class="special">/</span><span class="identifier">all</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">query</span><span class="special">/</span><span class="identifier">all</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.query.functions.all.example"></a><h6> <a name="fusion.algorithms.query.functions.all.example"></a><h6>
<a name="id582742"></a> <a name="id1139593"></a>
<a href="all.html#fusion.algorithms.query.functions.all.example">Example</a> <a href="all.html#fusion.algorithms.query.functions.all.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -160,8 +160,8 @@
<span class="special">}</span> <span class="special">}</span>
<span class="special">};</span> <span class="special">};</span>
<span class="special">...</span> <span class="special">...</span>
<span class="identifier">assert</span><span class="special">(</span><a href="all.html" title="all"><tt class="computeroutput"><span class="identifier">all</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">3</span><span class="special">),</span> <span class="identifier">odd</span><span class="special">()));</span> <span class="identifier">assert</span><span class="special">(</span><a href="all.html" title="all"><code class="computeroutput"><span class="identifier">all</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">3</span><span class="special">),</span> <span class="identifier">odd</span><span class="special">()));</span>
<span class="identifier">assert</span><span class="special">(!</span><a href="all.html" title="all"><tt class="computeroutput"><span class="identifier">all</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><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">odd</span><span class="special">()));</span> <span class="identifier">assert</span><span class="special">(!</span><a href="all.html" title="all"><code class="computeroutput"><span class="identifier">all</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">odd</span><span class="special">()));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -171,7 +171,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="any.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="none.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="any.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="none.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,41 +3,41 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>any</title> <title>any</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="../functions.html" title="Functions"> <link rel="prev" href="../functions.html" title="Functions">
<link rel="next" href="all.html" title="all"> <link rel="next" href="all.html" title="all">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <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="all.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../functions.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="all.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.functions.any"></a><a href="any.html" title="any">any</a></h5></div></div></div> <a name="fusion.algorithms.query.functions.any"></a><a href="any.html" title="any">any</a></h5></div></div></div>
<a name="fusion.algorithms.query.functions.any.description"></a><h6> <a name="fusion.algorithms.query.functions.any.description"></a><h6>
<a name="id580699"></a> <a name="id1137790"></a>
<a href="any.html#fusion.algorithms.query.functions.any.description">Description</a> <a href="any.html#fusion.algorithms.query.functions.any.description">Description</a>
</h6> </h6>
<p> <p>
For a sequence <tt class="computeroutput"><span class="identifier">seq</span></tt> and For a sequence <code class="computeroutput"><span class="identifier">seq</span></code> and
unary function object <tt class="computeroutput"><span class="identifier">f</span></tt>, unary function object <code class="computeroutput"><span class="identifier">f</span></code>,
<tt class="computeroutput"><span class="identifier">any</span></tt> returns true if <code class="computeroutput"><span class="identifier">any</span></code> returns true if
<tt class="computeroutput"><span class="identifier">f</span></tt> returns true for at <code class="computeroutput"><span class="identifier">f</span></code> returns true for at
least one element of <tt class="computeroutput"><span class="identifier">seq</span></tt>. least one element of <code class="computeroutput"><span class="identifier">seq</span></code>.
</p> </p>
<a name="fusion.algorithms.query.functions.any.synopsis"></a><h6> <a name="fusion.algorithms.query.functions.any.synopsis"></a><h6>
<a name="id580788"></a> <a name="id1137870"></a>
<a href="any.html#fusion.algorithms.query.functions.any.synopsis">Synopsis</a> <a href="any.html#fusion.algorithms.query.functions.any.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -45,11 +45,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</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">F</span> <span class="keyword">typename</span> <span class="identifier">F</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/any.html" title="any"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">any</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">any</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/any.html" title="any"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">any</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">any</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id580982"></a><p class="title"><b>Table<EFBFBD>1.39.<2E>Parameters</b></p> <a name="id1138040"></a><p class="title"><b>Table<EFBFBD>1.39.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -77,16 +77,16 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">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></tt> must be a valid expression, convertible Sequence</a>, <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> must be a valid expression, convertible
to <tt class="computeroutput"><span class="keyword">bool</span></tt>, for each to <code class="computeroutput"><span class="keyword">bool</span></code>, for each
element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt> element <code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -98,7 +98,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <code class="computeroutput"><span class="identifier">f</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -116,38 +116,38 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.functions.any.expression_semantics"></a><h6> <a name="fusion.algorithms.query.functions.any.expression_semantics"></a><h6>
<a name="id581183"></a> <a name="id1138218"></a>
<a href="any.html#fusion.algorithms.query.functions.any.expression_semantics">Expression <a href="any.html#fusion.algorithms.query.functions.any.expression_semantics">Expression
semantics</a> semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="any.html" title="any"><tt class="computeroutput"><span class="identifier">any</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> <a href="any.html" title="any"><code class="computeroutput"><span class="identifier">any</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt> <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns true if and only <span class="bold"><strong>Semantics</strong></span>: Returns true if and only
if <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> if <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code>
evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt> for some evaluates to <code class="computeroutput"><span class="keyword">true</span></code> for some
element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>. element <code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code>.
</p> </p>
<a name="fusion.algorithms.query.functions.any.complexity"></a><h6> <a name="fusion.algorithms.query.functions.any.complexity"></a><h6>
<a name="id581354"></a> <a name="id1138368"></a>
<a href="any.html#fusion.algorithms.query.functions.any.complexity">Complexity</a> <a href="any.html#fusion.algorithms.query.functions.any.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <tt class="computeroutput"><a href="../../../sequences/intrinsics/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">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons. Linear. At most <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> comparisons.
</p> </p>
<a name="fusion.algorithms.query.functions.any.header"></a><h6> <a name="fusion.algorithms.query.functions.any.header"></a><h6>
<a name="id581438"></a> <a name="id1138442"></a>
<a href="any.html#fusion.algorithms.query.functions.any.header">Header</a> <a href="any.html#fusion.algorithms.query.functions.any.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">query</span><span class="special">/</span><span class="identifier">any</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">query</span><span class="special">/</span><span class="identifier">any</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.query.functions.any.example"></a><h6> <a name="fusion.algorithms.query.functions.any.example"></a><h6>
<a name="id581543"></a> <a name="id1138535"></a>
<a href="any.html#fusion.algorithms.query.functions.any.example">Example</a> <a href="any.html#fusion.algorithms.query.functions.any.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -160,8 +160,8 @@
<span class="special">}</span> <span class="special">}</span>
<span class="special">};</span> <span class="special">};</span>
<span class="special">...</span> <span class="special">...</span>
<span class="identifier">assert</span><span class="special">(</span><a href="any.html" title="any"><tt class="computeroutput"><span class="identifier">any</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><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">odd</span><span class="special">()));</span> <span class="identifier">assert</span><span class="special">(</span><a href="any.html" title="any"><code class="computeroutput"><span class="identifier">any</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">odd</span><span class="special">()));</span>
<span class="identifier">assert</span><span class="special">(!</span><a href="any.html" title="any"><tt class="computeroutput"><span class="identifier">any</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">4</span><span class="special">),</span> <span class="identifier">odd</span><span class="special">()));</span> <span class="identifier">assert</span><span class="special">(!</span><a href="any.html" title="any"><code class="computeroutput"><span class="identifier">any</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">4</span><span class="special">),</span> <span class="identifier">odd</span><span class="special">()));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -171,7 +171,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <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="all.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../functions.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="all.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,37 +3,37 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>count</title> <title>count</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="find_if.html" title="find_if"> <link rel="prev" href="find_if.html" title="find_if">
<link rel="next" href="count_if.html" title="count_if"> <link rel="next" href="count_if.html" title="count_if">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="find_if.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="count_if.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="find_if.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="count_if.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.functions.count"></a><a href="count.html" title="count">count</a></h5></div></div></div> <a name="fusion.algorithms.query.functions.count"></a><a href="count.html" title="count">count</a></h5></div></div></div>
<a name="fusion.algorithms.query.functions.count.description"></a><h6> <a name="fusion.algorithms.query.functions.count.description"></a><h6>
<a name="id586595"></a> <a name="id1143001"></a>
<a href="count.html#fusion.algorithms.query.functions.count.description">Description</a> <a href="count.html#fusion.algorithms.query.functions.count.description">Description</a>
</h6> </h6>
<p> <p>
Returns the number of elements of a given type within a sequence. Returns the number of elements of a given type within a sequence.
</p> </p>
<a name="fusion.algorithms.query.functions.count.synopsis"></a><h6> <a name="fusion.algorithms.query.functions.count.synopsis"></a><h6>
<a name="id586626"></a> <a name="id1143030"></a>
<a href="count.html#fusion.algorithms.query.functions.count.synopsis">Synopsis</a> <a href="count.html#fusion.algorithms.query.functions.count.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -41,11 +41,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</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">T</span> <span class="keyword">typename</span> <span class="identifier">T</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/count.html" title="count"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">count</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">count</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/count.html" title="count"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">count</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">count</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">t</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">t</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id586834"></a><p class="title"><b>Table<EFBFBD>1.44.<2E>Parameters</b></p> <a name="id1143213"></a><p class="title"><b>Table<EFBFBD>1.44.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -73,17 +73,17 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>, <tt class="computeroutput"><span class="identifier">e</span> <span class="special">==</span> <span class="identifier">t</span></tt> Sequence</a>, <code class="computeroutput"><span class="identifier">e</span> <span class="special">==</span> <span class="identifier">t</span></code>
must be a valid expression, convertible to <tt class="computeroutput"><span class="keyword">bool</span></tt>, must be a valid expression, convertible to <code class="computeroutput"><span class="keyword">bool</span></code>,
for each element <tt class="computeroutput"><span class="identifier">e</span></tt> for each element <code class="computeroutput"><span class="identifier">e</span></code>
in <tt class="computeroutput"><span class="identifier">seq</span></tt> in <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -95,7 +95,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <code class="computeroutput"><span class="identifier">T</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -113,42 +113,42 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.functions.count.expression_semantics"></a><h6> <a name="fusion.algorithms.query.functions.count.expression_semantics"></a><h6>
<a name="id587032"></a> <a name="id1143389"></a>
<a href="count.html#fusion.algorithms.query.functions.count.expression_semantics">Expression <a href="count.html#fusion.algorithms.query.functions.count.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="count.html" title="count"><tt class="computeroutput"><span class="identifier">count</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">t</span><span class="special">);</span> <a href="count.html" title="count"><code class="computeroutput"><span class="identifier">count</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">t</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">int</span></tt> <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">int</span></code>
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns the number of elements <span class="bold"><strong>Semantics</strong></span>: Returns the number of elements
of type <tt class="computeroutput"><span class="identifier">T</span></tt> and equal to of type <code class="computeroutput"><span class="identifier">T</span></code> and equal to
<tt class="computeroutput"><span class="identifier">t</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>. <code class="computeroutput"><span class="identifier">t</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code>.
</p> </p>
<a name="fusion.algorithms.query.functions.count.complexity"></a><h6> <a name="fusion.algorithms.query.functions.count.complexity"></a><h6>
<a name="id587176"></a> <a name="id1143516"></a>
<a href="count.html#fusion.algorithms.query.functions.count.complexity">Complexity</a> <a href="count.html#fusion.algorithms.query.functions.count.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <tt class="computeroutput"><a href="../../../sequences/intrinsics/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">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons. Linear. At most <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> comparisons.
</p> </p>
<a name="fusion.algorithms.query.functions.count.header"></a><h6> <a name="fusion.algorithms.query.functions.count.header"></a><h6>
<a name="id587260"></a> <a name="id1143590"></a>
<a href="count.html#fusion.algorithms.query.functions.count.header">Header</a> <a href="count.html#fusion.algorithms.query.functions.count.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">query</span><span class="special">/</span><span class="identifier">count</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">query</span><span class="special">/</span><span class="identifier">count</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.query.functions.count.example"></a><h6> <a name="fusion.algorithms.query.functions.count.example"></a><h6>
<a name="id587366"></a> <a name="id1143683"></a>
<a href="count.html#fusion.algorithms.query.functions.count.example">Example</a> <a href="count.html#fusion.algorithms.query.functions.count.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">,</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1.0</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">);</span> <span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">,</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1.0</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="count.html" title="count"><tt class="computeroutput"><span class="identifier">count</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span><span class="number">2</span><span class="special">)</span> <span class="special">==</span> <span class="number">1</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(</span><a href="count.html" title="count"><code class="computeroutput"><span class="identifier">count</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span><span class="number">2</span><span class="special">)</span> <span class="special">==</span> <span class="number">1</span><span class="special">);</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -158,7 +158,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="find_if.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="count_if.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="find_if.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="count_if.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,38 +3,38 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>count_if</title> <title>count_if</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="count.html" title="count"> <link rel="prev" href="count.html" title="count">
<link rel="next" href="../metafunctions.html" title="Metafunctions"> <link rel="next" href="../metafunctions.html" title="Metafunctions">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="count.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="../metafunctions.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="count.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="../metafunctions.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.functions.count_if"></a><a href="count_if.html" title="count_if">count_if</a></h5></div></div></div> <a name="fusion.algorithms.query.functions.count_if"></a><a href="count_if.html" title="count_if">count_if</a></h5></div></div></div>
<a name="fusion.algorithms.query.functions.count_if.description"></a><h6> <a name="fusion.algorithms.query.functions.count_if.description"></a><h6>
<a name="id587583"></a> <a name="id1143875"></a>
<a href="count_if.html#fusion.algorithms.query.functions.count_if.description">Description</a> <a href="count_if.html#fusion.algorithms.query.functions.count_if.description">Description</a>
</h6> </h6>
<p> <p>
Returns the number of elements within a sequence with a type for which Returns the number of elements within a sequence with a type for which
a given unary function object evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt>. a given unary function object evaluates to <code class="computeroutput"><span class="keyword">true</span></code>.
</p> </p>
<a name="fusion.algorithms.query.functions.count_if.synopsis"></a><h6> <a name="fusion.algorithms.query.functions.count_if.synopsis"></a><h6>
<a name="id587627"></a> <a name="id1143915"></a>
<a href="count_if.html#fusion.algorithms.query.functions.count_if.synopsis">Synopsis</a> <a href="count_if.html#fusion.algorithms.query.functions.count_if.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -42,11 +42,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</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">F</span> <span class="keyword">typename</span> <span class="identifier">F</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/count_if.html" title="count_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">count_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">count_if</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/count_if.html" title="count_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">count_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">count_if</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id587824"></a><p class="title"><b>Table<EFBFBD>1.45.<2E>Parameters</b></p> <a name="id1144088"></a><p class="title"><b>Table<EFBFBD>1.45.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -74,16 +74,16 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">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></tt> is a valid expression, convertible Sequence</a>, <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> is a valid expression, convertible
to <tt class="computeroutput"><span class="keyword">bool</span></tt>, for each to <code class="computeroutput"><span class="keyword">bool</span></code>, for each
element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt> element <code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -95,7 +95,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <code class="computeroutput"><span class="identifier">f</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -113,41 +113,41 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.functions.count_if.expression_semantics"></a><h6> <a name="fusion.algorithms.query.functions.count_if.expression_semantics"></a><h6>
<a name="id588025"></a> <a name="id1144265"></a>
<a href="count_if.html#fusion.algorithms.query.functions.count_if.expression_semantics">Expression <a href="count_if.html#fusion.algorithms.query.functions.count_if.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="count_if.html" title="count_if"><tt class="computeroutput"><span class="identifier">count_if</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">)</span> <a href="count_if.html" title="count_if"><code class="computeroutput"><span class="identifier">count_if</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">)</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">int</span></tt> <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">int</span></code>
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns the number of elements <span class="bold"><strong>Semantics</strong></span>: Returns the number of elements
in <tt class="computeroutput"><span class="identifier">seq</span></tt> where <tt class="computeroutput"><span class="identifier">f</span></tt> evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt>. in <code class="computeroutput"><span class="identifier">seq</span></code> where <code class="computeroutput"><span class="identifier">f</span></code> evaluates to <code class="computeroutput"><span class="keyword">true</span></code>.
</p> </p>
<a name="fusion.algorithms.query.functions.count_if.complexity"></a><h6> <a name="fusion.algorithms.query.functions.count_if.complexity"></a><h6>
<a name="id588169"></a> <a name="id1144392"></a>
<a href="count_if.html#fusion.algorithms.query.functions.count_if.complexity">Complexity</a> <a href="count_if.html#fusion.algorithms.query.functions.count_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <tt class="computeroutput"><a href="../../../sequences/intrinsics/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">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons. Linear. At most <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> comparisons.
</p> </p>
<a name="fusion.algorithms.query.functions.count_if.header"></a><h6> <a name="fusion.algorithms.query.functions.count_if.header"></a><h6>
<a name="id588252"></a> <a name="id1144466"></a>
<a href="count_if.html#fusion.algorithms.query.functions.count_if.header">Header</a> <a href="count_if.html#fusion.algorithms.query.functions.count_if.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">query</span><span class="special">/</span><span class="identifier">count_if</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">query</span><span class="special">/</span><span class="identifier">count_if</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.query.functions.count_if.example"></a><h6> <a name="fusion.algorithms.query.functions.count_if.example"></a><h6>
<a name="id588359"></a> <a name="id1144561"></a>
<a href="count_if.html#fusion.algorithms.query.functions.count_if.example">Example</a> <a href="count_if.html#fusion.algorithms.query.functions.count_if.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</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="number">3</span><span class="special">);</span> <span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</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="number">3</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="count_if.html" title="count_if"><tt class="computeroutput"><span class="identifier">count_if</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span><span class="identifier">odd</span><span class="special">())</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="count_if.html" title="count_if"><code class="computeroutput"><span class="identifier">count_if</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span><span class="identifier">odd</span><span class="special">())</span> <span class="special">==</span> <span class="number">2</span><span class="special">);</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -157,7 +157,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="count.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="../metafunctions.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="count.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="../metafunctions.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,37 +3,37 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>find</title> <title>find</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="none.html" title="none"> <link rel="prev" href="none.html" title="none">
<link rel="next" href="find_if.html" title="find_if"> <link rel="next" href="find_if.html" title="find_if">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="none.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="find_if.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="none.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="find_if.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.functions.find"></a><a href="find.html" title="find">find</a></h5></div></div></div> <a name="fusion.algorithms.query.functions.find"></a><a href="find.html" title="find">find</a></h5></div></div></div>
<a name="fusion.algorithms.query.functions.find.description"></a><h6> <a name="fusion.algorithms.query.functions.find.description"></a><h6>
<a name="id584340"></a> <a name="id1141006"></a>
<a href="find.html#fusion.algorithms.query.functions.find.description">Description</a> <a href="find.html#fusion.algorithms.query.functions.find.description">Description</a>
</h6> </h6>
<p> <p>
Finds the first element of a given type within a sequence. Finds the first element of a given type within a sequence.
</p> </p>
<a name="fusion.algorithms.query.functions.find.synopsis"></a><h6> <a name="fusion.algorithms.query.functions.find.synopsis"></a><h6>
<a name="id584372"></a> <a name="id1141034"></a>
<a href="find.html#fusion.algorithms.query.functions.find.synopsis">Synopsis</a> <a href="find.html#fusion.algorithms.query.functions.find.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -50,7 +50,7 @@
<span class="emphasis"><em>unspecified</em></span> <span class="identifier">find</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">find</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id584571"></a><p class="title"><b>Table<EFBFBD>1.42.<2E>Parameters</b></p> <a name="id1141209"></a><p class="title"><b>Table<EFBFBD>1.42.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -78,7 +78,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -97,7 +97,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <code class="computeroutput"><span class="identifier">T</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -115,45 +115,45 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.functions.find.expression_semantics"></a><h6> <a name="fusion.algorithms.query.functions.find.expression_semantics"></a><h6>
<a name="id584710"></a> <a name="id1141332"></a>
<a href="find.html#fusion.algorithms.query.functions.find.expression_semantics">Expression <a href="find.html#fusion.algorithms.query.functions.find.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="find.html" title="find"><tt class="computeroutput"><span class="identifier">find</span></tt></a><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span> <a href="find.html" title="find"><code class="computeroutput"><span class="identifier">find</span></code></a><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of the same iterator <span class="bold"><strong>Return type</strong></span>: A model of the same iterator
category as the iterators of <tt class="computeroutput"><span class="identifier">seq</span></tt>. category as the iterators of <code class="computeroutput"><span class="identifier">seq</span></code>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns an iterator to the <span class="bold"><strong>Semantics</strong></span>: Returns an iterator to the
first element of <tt class="computeroutput"><span class="identifier">seq</span></tt> first element of <code class="computeroutput"><span class="identifier">seq</span></code>
of type <tt class="computeroutput"><span class="identifier">T</span></tt>, or <tt class="computeroutput"><a href="../../../sequences/intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">)</span></tt> if there is no such element. Equivalent of type <code class="computeroutput"><span class="identifier">T</span></code>, or <code class="computeroutput"><a href="../../../sequences/intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">)</span></code> if there is no such element. Equivalent
to <tt class="computeroutput"><a href="find_if.html" title="find_if"><tt class="computeroutput"><span class="identifier">find_if</span></tt></a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><span class="identifier">_</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span></tt> to <code class="computeroutput"><a href="find_if.html" title="find_if"><code class="computeroutput"><span class="identifier">find_if</span></code></a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><span class="identifier">_</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span></code>
</p> </p>
<a name="fusion.algorithms.query.functions.find.complexity"></a><h6> <a name="fusion.algorithms.query.functions.find.complexity"></a><h6>
<a name="id584964"></a> <a name="id1141558"></a>
<a href="find.html#fusion.algorithms.query.functions.find.complexity">Complexity</a> <a href="find.html#fusion.algorithms.query.functions.find.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <tt class="computeroutput"><a href="../../../sequences/intrinsics/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">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons. Linear. At most <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> comparisons.
</p> </p>
<a name="fusion.algorithms.query.functions.find.header"></a><h6> <a name="fusion.algorithms.query.functions.find.header"></a><h6>
<a name="id585048"></a> <a name="id1141632"></a>
<a href="find.html#fusion.algorithms.query.functions.find.header">Header</a> <a href="find.html#fusion.algorithms.query.functions.find.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">query</span><span class="special">/</span><span class="identifier">find</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">query</span><span class="special">/</span><span class="identifier">find</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.query.functions.find.example"></a><h6> <a name="fusion.algorithms.query.functions.find.example"></a><h6>
<a name="id585154"></a> <a name="id1141725"></a>
<a href="find.html#fusion.algorithms.query.functions.find.example">Example</a> <a href="find.html#fusion.algorithms.query.functions.find.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">char</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="char">'a'</span><span class="special">,</span><span class="char">'0'</span><span class="special">);</span> <span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">char</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="char">'a'</span><span class="special">,</span><span class="char">'0'</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(*</span><a href="find.html" title="find"><tt class="computeroutput"><span class="identifier">find</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <span class="char">'0'</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(*</span><a href="find.html" title="find"><code class="computeroutput"><span class="identifier">find</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <span class="char">'0'</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="find.html" title="find"><tt class="computeroutput"><span class="identifier">find</span></tt></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="find.html" title="find"><code class="computeroutput"><span class="identifier">find</span></code></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -163,7 +163,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="none.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="find_if.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="none.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="find_if.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,24 +3,24 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>find_if</title> <title>find_if</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="find.html" title="find"> <link rel="prev" href="find.html" title="find">
<link rel="next" href="count.html" title="count"> <link rel="next" href="count.html" title="count">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="find.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="count.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="find.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="count.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
@ -28,14 +28,14 @@
<p> <p>
Finds the first element within a sequence with a type for which a given Finds the first element within a sequence with a type for which a given
<a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL
Lambda Expression</a> evaluates to <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>. Lambda Expression</a> evaluates to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>.
</p> </p>
<a name="fusion.algorithms.query.functions.find_if.description"></a><h6> <a name="fusion.algorithms.query.functions.find_if.description"></a><h6>
<a name="id585482"></a> <a name="id1142017"></a>
<a href="find_if.html#fusion.algorithms.query.functions.find_if.description">Description</a> <a href="find_if.html#fusion.algorithms.query.functions.find_if.description">Description</a>
</h6> </h6>
<a name="fusion.algorithms.query.functions.find_if.synopsis"></a><h6> <a name="fusion.algorithms.query.functions.find_if.synopsis"></a><h6>
<a name="id585508"></a> <a name="id1142041"></a>
<a href="find_if.html#fusion.algorithms.query.functions.find_if.synopsis">Synopsis</a> <a href="find_if.html#fusion.algorithms.query.functions.find_if.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -52,7 +52,7 @@
<span class="emphasis"><em>unspecified</em></span> <span class="identifier">find_if</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">find_if</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id585709"></a><p class="title"><b>Table<EFBFBD>1.43.<2E>Parameters</b></p> <a name="id1142217"></a><p class="title"><b>Table<EFBFBD>1.43.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -80,7 +80,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -99,7 +99,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">F</span></tt> <code class="computeroutput"><span class="identifier">F</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -118,46 +118,46 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.functions.find_if.expression_semantics"></a><h6> <a name="fusion.algorithms.query.functions.find_if.expression_semantics"></a><h6>
<a name="id585855"></a> <a name="id1142347"></a>
<a href="find_if.html#fusion.algorithms.query.functions.find_if.expression_semantics">Expression <a href="find_if.html#fusion.algorithms.query.functions.find_if.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="find_if.html" title="find_if"><tt class="computeroutput"><span class="identifier">find_if</span></tt></a><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span> <a href="find_if.html" title="find_if"><code class="computeroutput"><span class="identifier">find_if</span></code></a><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: An iterator of the same <span class="bold"><strong>Return type</strong></span>: An iterator of the same
iterator category as the iterators of <tt class="computeroutput"><span class="identifier">seq</span></tt>. iterator category as the iterators of <code class="computeroutput"><span class="identifier">seq</span></code>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns the first element <span class="bold"><strong>Semantics</strong></span>: Returns the first element
of <tt class="computeroutput"><span class="identifier">seq</span></tt> for which <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL of <code class="computeroutput"><span class="identifier">seq</span></code> for which <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL
Lambda Expression</a> <tt class="computeroutput"><span class="identifier">F</span></tt> Lambda Expression</a> <code class="computeroutput"><span class="identifier">F</span></code>
evaluates to <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>, or <tt class="computeroutput"><a href="../../../sequences/intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">)</span></tt> evaluates to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>, or <code class="computeroutput"><a href="../../../sequences/intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">)</span></code>
if there is no such element. if there is no such element.
</p> </p>
<a name="fusion.algorithms.query.functions.find_if.complexity"></a><h6> <a name="fusion.algorithms.query.functions.find_if.complexity"></a><h6>
<a name="id586064"></a> <a name="id1142532"></a>
<a href="find_if.html#fusion.algorithms.query.functions.find_if.complexity">Complexity</a> <a href="find_if.html#fusion.algorithms.query.functions.find_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <tt class="computeroutput"><a href="../../../sequences/intrinsics/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">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons. Linear. At most <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> comparisons.
</p> </p>
<a name="fusion.algorithms.query.functions.find_if.header"></a><h6> <a name="fusion.algorithms.query.functions.find_if.header"></a><h6>
<a name="id586148"></a> <a name="id1142605"></a>
<a href="find_if.html#fusion.algorithms.query.functions.find_if.header">Header</a> <a href="find_if.html#fusion.algorithms.query.functions.find_if.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">query</span><span class="special">/</span><span class="identifier">find_if</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">query</span><span class="special">/</span><span class="identifier">find_if</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.query.functions.find_if.example"></a><h6> <a name="fusion.algorithms.query.functions.find_if.example"></a><h6>
<a name="id586255"></a> <a name="id1142700"></a>
<a href="find_if.html#fusion.algorithms.query.functions.find_if.example">Example</a> <a href="find_if.html#fusion.algorithms.query.functions.find_if.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1.0</span><span class="special">,</span><span class="number">2</span><span class="special">);</span> <span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1.0</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="find_if.html" title="find_if"><tt class="computeroutput"><span class="identifier">find_if</span></tt></a><span class="special">&lt;</span><span class="identifier">is_integral</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</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="find_if.html" title="find_if"><code class="computeroutput"><span class="identifier">find_if</span></code></a><span class="special">&lt;</span><span class="identifier">is_integral</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</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="find_if.html" title="find_if"><tt class="computeroutput"><span class="identifier">find_if</span></tt></a><span class="special">&lt;</span><span class="identifier">is_class</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="find_if.html" title="find_if"><code class="computeroutput"><span class="identifier">find_if</span></code></a><span class="special">&lt;</span><span class="identifier">is_class</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -167,7 +167,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="find.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="count.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="find.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="count.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,41 +3,41 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>none</title> <title>none</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="all.html" title="all"> <link rel="prev" href="all.html" title="all">
<link rel="next" href="find.html" title="find"> <link rel="next" href="find.html" title="find">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="all.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="find.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="all.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="find.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.functions.none"></a><a href="none.html" title="none">none</a></h5></div></div></div> <a name="fusion.algorithms.query.functions.none"></a><a href="none.html" title="none">none</a></h5></div></div></div>
<a name="fusion.algorithms.query.functions.none.description"></a><h6> <a name="fusion.algorithms.query.functions.none.description"></a><h6>
<a name="id583097"></a> <a name="id1139908"></a>
<a href="none.html#fusion.algorithms.query.functions.none.description">Description</a> <a href="none.html#fusion.algorithms.query.functions.none.description">Description</a>
</h6> </h6>
<p> <p>
For a sequence <tt class="computeroutput"><span class="identifier">seq</span></tt> and For a sequence <code class="computeroutput"><span class="identifier">seq</span></code> and
unary function object <tt class="computeroutput"><span class="identifier">f</span></tt>, unary function object <code class="computeroutput"><span class="identifier">f</span></code>,
<tt class="computeroutput"><span class="identifier">none</span></tt> returns true if <code class="computeroutput"><span class="identifier">none</span></code> returns true if
<tt class="computeroutput"><span class="identifier">f</span></tt> returns false for every <code class="computeroutput"><span class="identifier">f</span></code> returns false for every
element of <tt class="computeroutput"><span class="identifier">seq</span></tt>. element of <code class="computeroutput"><span class="identifier">seq</span></code>.
</p> </p>
<a name="fusion.algorithms.query.functions.none.synopsis"></a><h6> <a name="fusion.algorithms.query.functions.none.synopsis"></a><h6>
<a name="id583186"></a> <a name="id1139988"></a>
<a href="none.html#fusion.algorithms.query.functions.none.synopsis">Synopsis</a> <a href="none.html#fusion.algorithms.query.functions.none.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -45,11 +45,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</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">F</span> <span class="keyword">typename</span> <span class="identifier">F</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/none.html" title="none"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">none</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">none</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/none.html" title="none"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">none</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">none</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id583381"></a><p class="title"><b>Table<EFBFBD>1.41.<2E>Parameters</b></p> <a name="id1140158"></a><p class="title"><b>Table<EFBFBD>1.41.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -77,16 +77,16 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">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></tt> is a valid expression, convertible Sequence</a>, <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> is a valid expression, convertible
to <tt class="computeroutput"><span class="keyword">bool</span></tt>, for every to <code class="computeroutput"><span class="keyword">bool</span></code>, for every
element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt> element <code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -98,7 +98,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <code class="computeroutput"><span class="identifier">f</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -116,38 +116,38 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.functions.none.expression_semantics"></a><h6> <a name="fusion.algorithms.query.functions.none.expression_semantics"></a><h6>
<a name="id583582"></a> <a name="id1140336"></a>
<a href="none.html#fusion.algorithms.query.functions.none.expression_semantics">Expression <a href="none.html#fusion.algorithms.query.functions.none.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="none.html" title="none"><tt class="computeroutput"><span class="identifier">none</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> <a href="none.html" title="none"><code class="computeroutput"><span class="identifier">none</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt> <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns true if and only <span class="bold"><strong>Semantics</strong></span>: Returns true if and only
if <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> if <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code>
evaluates to <tt class="computeroutput"><span class="keyword">false</span></tt> for every evaluates to <code class="computeroutput"><span class="keyword">false</span></code> for every
element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>. Result equivalent to <tt class="computeroutput"><span class="special">!</span><span class="identifier">any</span><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">)</span></tt>. element <code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code>. Result equivalent to <code class="computeroutput"><span class="special">!</span><span class="identifier">any</span><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">)</span></code>.
</p> </p>
<a name="fusion.algorithms.query.functions.none.complexity"></a><h6> <a name="fusion.algorithms.query.functions.none.complexity"></a><h6>
<a name="id583794"></a> <a name="id1140524"></a>
<a href="none.html#fusion.algorithms.query.functions.none.complexity">Complexity</a> <a href="none.html#fusion.algorithms.query.functions.none.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <tt class="computeroutput"><a href="../../../sequences/intrinsics/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">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons. Linear. At most <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> comparisons.
</p> </p>
<a name="fusion.algorithms.query.functions.none.header"></a><h6> <a name="fusion.algorithms.query.functions.none.header"></a><h6>
<a name="id583878"></a> <a name="id1140597"></a>
<a href="none.html#fusion.algorithms.query.functions.none.header">Header</a> <a href="none.html#fusion.algorithms.query.functions.none.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">query</span><span class="special">/</span><span class="identifier">none</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">query</span><span class="special">/</span><span class="identifier">none</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.query.functions.none.example"></a><h6> <a name="fusion.algorithms.query.functions.none.example"></a><h6>
<a name="id583984"></a> <a name="id1140690"></a>
<a href="none.html#fusion.algorithms.query.functions.none.example">Example</a> <a href="none.html#fusion.algorithms.query.functions.none.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -160,8 +160,8 @@
<span class="special">}</span> <span class="special">}</span>
<span class="special">};</span> <span class="special">};</span>
<span class="special">...</span> <span class="special">...</span>
<span class="identifier">assert</span><span class="special">(</span><a href="none.html" title="none"><tt class="computeroutput"><span class="identifier">none</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">4</span><span class="special">),</span> <span class="identifier">odd</span><span class="special">()));</span> <span class="identifier">assert</span><span class="special">(</span><a href="none.html" title="none"><code class="computeroutput"><span class="identifier">none</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">4</span><span class="special">),</span> <span class="identifier">odd</span><span class="special">()));</span>
<span class="identifier">assert</span><span class="special">(!</span><a href="none.html" title="none"><tt class="computeroutput"><span class="identifier">none</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><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">odd</span><span class="special">()));</span> <span class="identifier">assert</span><span class="special">(!</span><a href="none.html" title="none"><code class="computeroutput"><span class="identifier">none</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">odd</span><span class="special">()));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -171,7 +171,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="all.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="find.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="all.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="find.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,24 +3,24 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Metafunctions</title> <title>Metafunctions</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../query.html" title="Query"> <link rel="up" href="../query.html" title="Query">
<link rel="prev" href="functions/count_if.html" title="count_if"> <link rel="prev" href="functions/count_if.html" title="count_if">
<link rel="next" href="metafunctions/any.html" title="any"> <link rel="next" href="metafunctions/any.html" title="any">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> <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="../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../libraries.htm">Libraries</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="../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="functions/count_if.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../query.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="metafunctions/any.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="functions/count_if.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../query.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="metafunctions/any.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
@ -42,7 +42,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="functions/count_if.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../query.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="metafunctions/any.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="functions/count_if.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../query.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="metafunctions/any.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,37 +3,37 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>all</title> <title>all</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="any.html" title="any"> <link rel="prev" href="any.html" title="any">
<link rel="next" href="none.html" title="none"> <link rel="next" href="none.html" title="none">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="any.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="none.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="any.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="none.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.metafunctions.all"></a><a href="all.html" title="all">all</a></h5></div></div></div> <a name="fusion.algorithms.query.metafunctions.all"></a><a href="all.html" title="all">all</a></h5></div></div></div>
<a name="fusion.algorithms.query.metafunctions.all.description"></a><h6> <a name="fusion.algorithms.query.metafunctions.all.description"></a><h6>
<a name="id589262"></a> <a name="id1145360"></a>
<a href="all.html#fusion.algorithms.query.metafunctions.all.description">Description</a> <a href="all.html#fusion.algorithms.query.metafunctions.all.description">Description</a>
</h6> </h6>
<p> <p>
A metafunction returning the result type of <a href="../functions/all.html" title="all"><tt class="computeroutput"><span class="identifier">all</span></tt></a>. A metafunction returning the result type of <a href="../functions/all.html" title="all"><code class="computeroutput"><span class="identifier">all</span></code></a>.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.all.synopsis"></a><h6> <a name="fusion.algorithms.query.metafunctions.all.synopsis"></a><h6>
<a name="id589310"></a> <a name="id1145404"></a>
<a href="all.html#fusion.algorithms.query.metafunctions.all.synopsis">Synopsis</a> <a href="all.html#fusion.algorithms.query.metafunctions.all.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id589432"></a><p class="title"><b>Table<EFBFBD>1.47.<2E>Parameters</b></p> <a name="id1145511"></a><p class="title"><b>Table<EFBFBD>1.47.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -75,7 +75,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -94,7 +94,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">F</span></tt> <code class="computeroutput"><span class="identifier">F</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -114,34 +114,34 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.metafunctions.all.expression_semantics"></a><h6> <a name="fusion.algorithms.query.metafunctions.all.expression_semantics"></a><h6>
<a name="id589580"></a> <a name="id1145642"></a>
<a href="all.html#fusion.algorithms.query.metafunctions.all.expression_semantics">Expression <a href="all.html#fusion.algorithms.query.metafunctions.all.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="all.html" title="all"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">all</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="all.html" title="all"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">all</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>. <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns the return type of <span class="bold"><strong>Semantics</strong></span>: Returns the return type of
<a href="../functions/all.html" title="all"><tt class="computeroutput"><span class="identifier">all</span></tt></a> <a href="../functions/all.html" title="all"><code class="computeroutput"><span class="identifier">all</span></code></a>
given a sequence of type <tt class="computeroutput"><span class="identifier">Sequence</span></tt> given a sequence of type <code class="computeroutput"><span class="identifier">Sequence</span></code>
and a unary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function and a unary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> of type <tt class="computeroutput"><span class="identifier">F</span></tt>. Function Object</a> of type <code class="computeroutput"><span class="identifier">F</span></code>.
The return type is always <tt class="computeroutput"><span class="keyword">bool</span></tt>. The return type is always <code class="computeroutput"><span class="keyword">bool</span></code>.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.all.complexity"></a><h6> <a name="fusion.algorithms.query.metafunctions.all.complexity"></a><h6>
<a name="id589768"></a> <a name="id1145808"></a>
<a href="all.html#fusion.algorithms.query.metafunctions.all.complexity">Complexity</a> <a href="all.html#fusion.algorithms.query.metafunctions.all.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.all.header"></a><h6> <a name="fusion.algorithms.query.metafunctions.all.header"></a><h6>
<a name="id589798"></a> <a name="id1145836"></a>
<a href="all.html#fusion.algorithms.query.metafunctions.all.header">Header</a> <a href="all.html#fusion.algorithms.query.metafunctions.all.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -155,7 +155,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="any.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="none.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="any.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="none.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,37 +3,37 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>any</title> <title>any</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="../metafunctions.html" title="Metafunctions"> <link rel="prev" href="../metafunctions.html" title="Metafunctions">
<link rel="next" href="all.html" title="all"> <link rel="next" href="all.html" title="all">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../metafunctions.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="all.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../metafunctions.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="all.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.metafunctions.any"></a><a href="any.html" title="any">any</a></h5></div></div></div> <a name="fusion.algorithms.query.metafunctions.any"></a><a href="any.html" title="any">any</a></h5></div></div></div>
<a name="fusion.algorithms.query.metafunctions.any.description"></a><h6> <a name="fusion.algorithms.query.metafunctions.any.description"></a><h6>
<a name="id588597"></a> <a name="id1144772"></a>
<a href="any.html#fusion.algorithms.query.metafunctions.any.description">Description</a> <a href="any.html#fusion.algorithms.query.metafunctions.any.description">Description</a>
</h6> </h6>
<p> <p>
A metafunction returning the result type of <a href="../functions/any.html" title="any"><tt class="computeroutput"><span class="identifier">any</span></tt></a>. A metafunction returning the result type of <a href="../functions/any.html" title="any"><code class="computeroutput"><span class="identifier">any</span></code></a>.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.any.synopsis"></a><h6> <a name="fusion.algorithms.query.metafunctions.any.synopsis"></a><h6>
<a name="id588645"></a> <a name="id1144816"></a>
<a href="any.html#fusion.algorithms.query.metafunctions.any.synopsis">Synopsis</a> <a href="any.html#fusion.algorithms.query.metafunctions.any.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id588767"></a><p class="title"><b>Table<EFBFBD>1.46.<2E>Parameters</b></p> <a name="id1144923"></a><p class="title"><b>Table<EFBFBD>1.46.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -75,7 +75,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -94,7 +94,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">F</span></tt> <code class="computeroutput"><span class="identifier">F</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -114,34 +114,34 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.metafunctions.any.expression_semantics"></a><h6> <a name="fusion.algorithms.query.metafunctions.any.expression_semantics"></a><h6>
<a name="id588917"></a> <a name="id1145054"></a>
<a href="any.html#fusion.algorithms.query.metafunctions.any.expression_semantics">Expression <a href="any.html#fusion.algorithms.query.metafunctions.any.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="any.html" title="any"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">any</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="any.html" title="any"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">any</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>. <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns the return type of <span class="bold"><strong>Semantics</strong></span>: Returns the return type of
<a href="../functions/any.html" title="any"><tt class="computeroutput"><span class="identifier">any</span></tt></a> <a href="../functions/any.html" title="any"><code class="computeroutput"><span class="identifier">any</span></code></a>
given a sequence of type <tt class="computeroutput"><span class="identifier">Sequence</span></tt> given a sequence of type <code class="computeroutput"><span class="identifier">Sequence</span></code>
and a unary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function and a unary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> of type <tt class="computeroutput"><span class="identifier">F</span></tt>. Function Object</a> of type <code class="computeroutput"><span class="identifier">F</span></code>.
The return type is always <tt class="computeroutput"><span class="keyword">bool</span></tt>. The return type is always <code class="computeroutput"><span class="keyword">bool</span></code>.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.any.complexity"></a><h6> <a name="fusion.algorithms.query.metafunctions.any.complexity"></a><h6>
<a name="id589105"></a> <a name="id1145220"></a>
<a href="any.html#fusion.algorithms.query.metafunctions.any.complexity">Complexity</a> <a href="any.html#fusion.algorithms.query.metafunctions.any.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.any.header"></a><h6> <a name="fusion.algorithms.query.metafunctions.any.header"></a><h6>
<a name="id589135"></a> <a name="id1145248"></a>
<a href="any.html#fusion.algorithms.query.metafunctions.any.header">Header</a> <a href="any.html#fusion.algorithms.query.metafunctions.any.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -155,7 +155,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../metafunctions.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="all.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../metafunctions.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="all.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,38 +3,38 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>count</title> <title>count</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="find_if.html" title="find_if"> <link rel="prev" href="find_if.html" title="find_if">
<link rel="next" href="count_if.html" title="count_if"> <link rel="next" href="count_if.html" title="count_if">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="find_if.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="count_if.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="find_if.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="count_if.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.metafunctions.count"></a><a href="count.html" title="count">count</a></h5></div></div></div> <a name="fusion.algorithms.query.metafunctions.count"></a><a href="count.html" title="count">count</a></h5></div></div></div>
<a name="fusion.algorithms.query.metafunctions.count.description"></a><h6> <a name="fusion.algorithms.query.metafunctions.count.description"></a><h6>
<a name="id592038"></a> <a name="id1147815"></a>
<a href="count.html#fusion.algorithms.query.metafunctions.count.description">Description</a> <a href="count.html#fusion.algorithms.query.metafunctions.count.description">Description</a>
</h6> </h6>
<p> <p>
A metafunction that returns the result type of <tt class="computeroutput"><span class="identifier">count</span></tt> A metafunction that returns the result type of <code class="computeroutput"><span class="identifier">count</span></code>
given the sequence and search types. given the sequence and search types.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.count.synopsis"></a><h6> <a name="fusion.algorithms.query.metafunctions.count.synopsis"></a><h6>
<a name="id592082"></a> <a name="id1147854"></a>
<a href="count.html#fusion.algorithms.query.metafunctions.count.synopsis">Synopsis</a> <a href="count.html#fusion.algorithms.query.metafunctions.count.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id592203"></a><p class="title"><b>Table<EFBFBD>1.51.<2E>Parameters</b></p> <a name="id1147962"></a><p class="title"><b>Table<EFBFBD>1.51.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -76,7 +76,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -95,7 +95,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <code class="computeroutput"><span class="identifier">T</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -113,30 +113,30 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.metafunctions.count.expression_semantics"></a><h6> <a name="fusion.algorithms.query.metafunctions.count.expression_semantics"></a><h6>
<a name="id592342"></a> <a name="id1148087"></a>
<a href="count.html#fusion.algorithms.query.metafunctions.count.expression_semantics">Expression <a href="count.html#fusion.algorithms.query.metafunctions.count.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="count.html" title="count"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">count</span></tt></a><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="count.html" title="count"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">count</span></code></a><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">int</span></tt>. <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">int</span></code>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns the return type of <span class="bold"><strong>Semantics</strong></span>: Returns the return type of
<a href="../functions/count.html" title="count"><tt class="computeroutput"><span class="identifier">count</span></tt></a>. The return type is always <a href="../functions/count.html" title="count"><code class="computeroutput"><span class="identifier">count</span></code></a>. The return type is always
<tt class="computeroutput"><span class="keyword">int</span></tt>. <code class="computeroutput"><span class="keyword">int</span></code>.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.count.complexity"></a><h6> <a name="fusion.algorithms.query.metafunctions.count.complexity"></a><h6>
<a name="id592487"></a> <a name="id1148214"></a>
<a href="count.html#fusion.algorithms.query.metafunctions.count.complexity">Complexity</a> <a href="count.html#fusion.algorithms.query.metafunctions.count.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.count.header"></a><h6> <a name="fusion.algorithms.query.metafunctions.count.header"></a><h6>
<a name="id592516"></a> <a name="id1148242"></a>
<a href="count.html#fusion.algorithms.query.metafunctions.count.header">Header</a> <a href="count.html#fusion.algorithms.query.metafunctions.count.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -150,7 +150,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="find_if.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="count_if.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="find_if.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="count_if.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,38 +3,38 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>count_if</title> <title>count_if</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="count.html" title="count"> <link rel="prev" href="count.html" title="count">
<link rel="next" href="../../transformation.html" title="Transformation"> <link rel="next" href="../../transformation.html" title="Transformation">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="count.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="../../transformation.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="count.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../transformation.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.metafunctions.count_if"></a><a href="count_if.html" title="count_if">count_if</a></h5></div></div></div> <a name="fusion.algorithms.query.metafunctions.count_if"></a><a href="count_if.html" title="count_if">count_if</a></h5></div></div></div>
<a name="fusion.algorithms.query.metafunctions.count_if.description"></a><h6> <a name="fusion.algorithms.query.metafunctions.count_if.description"></a><h6>
<a name="id592644"></a> <a name="id1148354"></a>
<a href="count_if.html#fusion.algorithms.query.metafunctions.count_if.description">Description</a> <a href="count_if.html#fusion.algorithms.query.metafunctions.count_if.description">Description</a>
</h6> </h6>
<p> <p>
A metafunction that returns the result type of <tt class="computeroutput"><span class="identifier">count_if</span></tt> A metafunction that returns the result type of <code class="computeroutput"><span class="identifier">count_if</span></code>
given the sequence and predicate types. given the sequence and predicate types.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.count_if.synopsis"></a><h6> <a name="fusion.algorithms.query.metafunctions.count_if.synopsis"></a><h6>
<a name="id592689"></a> <a name="id1148393"></a>
<a href="count_if.html#fusion.algorithms.query.metafunctions.count_if.synopsis">Synopsis</a> <a href="count_if.html#fusion.algorithms.query.metafunctions.count_if.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id592810"></a><p class="title"><b>Table<EFBFBD>1.52.<2E>Parameters</b></p> <a name="id1148501"></a><p class="title"><b>Table<EFBFBD>1.52.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -76,7 +76,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -95,7 +95,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Pred</span></tt> <code class="computeroutput"><span class="identifier">Pred</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -113,30 +113,30 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.metafunctions.count_if.expression_semantics"></a><h6> <a name="fusion.algorithms.query.metafunctions.count_if.expression_semantics"></a><h6>
<a name="id592951"></a> <a name="id1148626"></a>
<a href="count_if.html#fusion.algorithms.query.metafunctions.count_if.expression_semantics">Expression <a href="count_if.html#fusion.algorithms.query.metafunctions.count_if.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="count_if.html" title="count_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">count_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="count_if.html" title="count_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">count_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">int</span></tt>. <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">int</span></code>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns the return type of <span class="bold"><strong>Semantics</strong></span>: Returns the return type of
<a href="../functions/count_if.html" title="count_if"><tt class="computeroutput"><span class="identifier">count_if</span></tt></a>. The return type is <a href="../functions/count_if.html" title="count_if"><code class="computeroutput"><span class="identifier">count_if</span></code></a>. The return type is
always <tt class="computeroutput"><span class="keyword">int</span></tt>. always <code class="computeroutput"><span class="keyword">int</span></code>.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.count_if.complexity"></a><h6> <a name="fusion.algorithms.query.metafunctions.count_if.complexity"></a><h6>
<a name="id593108"></a> <a name="id1148763"></a>
<a href="count_if.html#fusion.algorithms.query.metafunctions.count_if.complexity">Complexity</a> <a href="count_if.html#fusion.algorithms.query.metafunctions.count_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.count_if.header"></a><h6> <a name="fusion.algorithms.query.metafunctions.count_if.header"></a><h6>
<a name="id593138"></a> <a name="id1148791"></a>
<a href="count_if.html#fusion.algorithms.query.metafunctions.count_if.header">Header</a> <a href="count_if.html#fusion.algorithms.query.metafunctions.count_if.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -150,7 +150,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="count.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="../../transformation.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="count.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../transformation.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,38 +3,38 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>find</title> <title>find</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="none.html" title="none"> <link rel="prev" href="none.html" title="none">
<link rel="next" href="find_if.html" title="find_if"> <link rel="next" href="find_if.html" title="find_if">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="none.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="find_if.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="none.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="find_if.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.metafunctions.find"></a><a href="find.html" title="find">find</a></h5></div></div></div> <a name="fusion.algorithms.query.metafunctions.find"></a><a href="find.html" title="find">find</a></h5></div></div></div>
<a name="fusion.algorithms.query.metafunctions.find.description"></a><h6> <a name="fusion.algorithms.query.metafunctions.find.description"></a><h6>
<a name="id590592"></a> <a name="id1146538"></a>
<a href="find.html#fusion.algorithms.query.metafunctions.find.description">Description</a> <a href="find.html#fusion.algorithms.query.metafunctions.find.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <tt class="computeroutput"><span class="identifier">find</span></tt>, Returns the result type of <code class="computeroutput"><span class="identifier">find</span></code>,
given the sequence and search types. given the sequence and search types.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.find.synopsis"></a><h6> <a name="fusion.algorithms.query.metafunctions.find.synopsis"></a><h6>
<a name="id590635"></a> <a name="id1146577"></a>
<a href="find.html#fusion.algorithms.query.metafunctions.find.synopsis">Synopsis</a> <a href="find.html#fusion.algorithms.query.metafunctions.find.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id590754"></a><p class="title"><b>Table<EFBFBD>1.49.<2E>Parameters</b></p> <a name="id1146682"></a><p class="title"><b>Table<EFBFBD>1.49.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -76,7 +76,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -95,7 +95,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <code class="computeroutput"><span class="identifier">T</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -113,31 +113,31 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.metafunctions.find.expression_semantics"></a><h6> <a name="fusion.algorithms.query.metafunctions.find.expression_semantics"></a><h6>
<a name="id590893"></a> <a name="id1146805"></a>
<a href="find.html#fusion.algorithms.query.metafunctions.find.expression_semantics">Expression <a href="find.html#fusion.algorithms.query.metafunctions.find.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="find.html" title="find"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">find</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="find.html" title="find"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">find</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of the same iterator <span class="bold"><strong>Return type</strong></span>: A model of the same iterator
category as the iterators of <tt class="computeroutput"><span class="identifier">Sequence</span></tt>. category as the iterators of <code class="computeroutput"><span class="identifier">Sequence</span></code>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns an iterator to the <span class="bold"><strong>Semantics</strong></span>: Returns an iterator to the
first element of type <tt class="computeroutput"><span class="identifier">T</span></tt> first element of type <code class="computeroutput"><span class="identifier">T</span></code>
in <tt class="computeroutput"><span class="identifier">Sequence</span></tt>, or <tt class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/end.html" title="end"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span></tt> if there is no such element. in <code class="computeroutput"><span class="identifier">Sequence</span></code>, or <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/end.html" title="end"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span></code> if there is no such element.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.find.complexity"></a><h6> <a name="fusion.algorithms.query.metafunctions.find.complexity"></a><h6>
<a name="id591097"></a> <a name="id1146984"></a>
<a href="find.html#fusion.algorithms.query.metafunctions.find.complexity">Complexity</a> <a href="find.html#fusion.algorithms.query.metafunctions.find.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear, at most <tt class="computeroutput"><a href="../../../sequences/intrinsics/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">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons. Linear, at most <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> comparisons.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.find.header"></a><h6> <a name="fusion.algorithms.query.metafunctions.find.header"></a><h6>
<a name="id591180"></a> <a name="id1147058"></a>
<a href="find.html#fusion.algorithms.query.metafunctions.find.header">Header</a> <a href="find.html#fusion.algorithms.query.metafunctions.find.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -151,7 +151,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="none.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="find_if.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="none.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="find_if.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,38 +3,38 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>find_if</title> <title>find_if</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="find.html" title="find"> <link rel="prev" href="find.html" title="find">
<link rel="next" href="count.html" title="count"> <link rel="next" href="count.html" title="count">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="find.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="count.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="find.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="count.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.metafunctions.find_if"></a><a href="find_if.html" title="find_if">find_if</a></h5></div></div></div> <a name="fusion.algorithms.query.metafunctions.find_if"></a><a href="find_if.html" title="find_if">find_if</a></h5></div></div></div>
<a name="fusion.algorithms.query.metafunctions.find_if.description"></a><h6> <a name="fusion.algorithms.query.metafunctions.find_if.description"></a><h6>
<a name="id591309"></a> <a name="id1147172"></a>
<a href="find_if.html#fusion.algorithms.query.metafunctions.find_if.description">Description</a> <a href="find_if.html#fusion.algorithms.query.metafunctions.find_if.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <tt class="computeroutput"><span class="identifier">find_if</span></tt> Returns the result type of <code class="computeroutput"><span class="identifier">find_if</span></code>
given the sequence and predicate types. given the sequence and predicate types.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.find_if.synopsis"></a><h6> <a name="fusion.algorithms.query.metafunctions.find_if.synopsis"></a><h6>
<a name="id591353"></a> <a name="id1147211"></a>
<a href="find_if.html#fusion.algorithms.query.metafunctions.find_if.synopsis">Synopsis</a> <a href="find_if.html#fusion.algorithms.query.metafunctions.find_if.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id591473"></a><p class="title"><b>Table<EFBFBD>1.50.<2E>Parameters</b></p> <a name="id1147317"></a><p class="title"><b>Table<EFBFBD>1.50.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -76,7 +76,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -95,7 +95,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Pred</span></tt> <code class="computeroutput"><span class="identifier">Pred</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -114,32 +114,32 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.metafunctions.find_if.expression_semantics"></a><h6> <a name="fusion.algorithms.query.metafunctions.find_if.expression_semantics"></a><h6>
<a name="id591621"></a> <a name="id1147449"></a>
<a href="find_if.html#fusion.algorithms.query.metafunctions.find_if.expression_semantics">Expression <a href="find_if.html#fusion.algorithms.query.metafunctions.find_if.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="find_if.html" title="find_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">find_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="find_if.html" title="find_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">find_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of the same iterator <span class="bold"><strong>Return type</strong></span>: A model of the same iterator
category as the iterators of <tt class="computeroutput"><span class="identifier">Sequence</span></tt>. category as the iterators of <code class="computeroutput"><span class="identifier">Sequence</span></code>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns an iterator to the <span class="bold"><strong>Semantics</strong></span>: Returns an iterator to the
first element in <tt class="computeroutput"><span class="identifier">Sequence</span></tt> first element in <code class="computeroutput"><span class="identifier">Sequence</span></code>
for which <tt class="computeroutput"><span class="identifier">Pred</span></tt> evaluates for which <code class="computeroutput"><span class="identifier">Pred</span></code> evaluates
to true. Returns <tt class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/end.html" title="end"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span></tt> if there is no such element. to true. Returns <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/end.html" title="end"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span></code> if there is no such element.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.find_if.complexity"></a><h6> <a name="fusion.algorithms.query.metafunctions.find_if.complexity"></a><h6>
<a name="id591827"></a> <a name="id1147629"></a>
<a href="find_if.html#fusion.algorithms.query.metafunctions.find_if.complexity">Complexity</a> <a href="find_if.html#fusion.algorithms.query.metafunctions.find_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <tt class="computeroutput"><a href="../../../sequences/intrinsics/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">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons. Linear. At most <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> comparisons.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.find_if.header"></a><h6> <a name="fusion.algorithms.query.metafunctions.find_if.header"></a><h6>
<a name="id591911"></a> <a name="id1147703"></a>
<a href="find_if.html#fusion.algorithms.query.metafunctions.find_if.header">Header</a> <a href="find_if.html#fusion.algorithms.query.metafunctions.find_if.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -153,7 +153,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="find.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="count.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="find.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="count.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,37 +3,37 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>none</title> <title>none</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="all.html" title="all"> <link rel="prev" href="all.html" title="all">
<link rel="next" href="find.html" title="find"> <link rel="next" href="find.html" title="find">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="all.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="find.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="all.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="find.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.metafunctions.none"></a><a href="none.html" title="none">none</a></h5></div></div></div> <a name="fusion.algorithms.query.metafunctions.none"></a><a href="none.html" title="none">none</a></h5></div></div></div>
<a name="fusion.algorithms.query.metafunctions.none.description"></a><h6> <a name="fusion.algorithms.query.metafunctions.none.description"></a><h6>
<a name="id589925"></a> <a name="id1145948"></a>
<a href="none.html#fusion.algorithms.query.metafunctions.none.description">Description</a> <a href="none.html#fusion.algorithms.query.metafunctions.none.description">Description</a>
</h6> </h6>
<p> <p>
A metafunction returning the result type of <a href="../functions/none.html" title="none"><tt class="computeroutput"><span class="identifier">none</span></tt></a>. A metafunction returning the result type of <a href="../functions/none.html" title="none"><code class="computeroutput"><span class="identifier">none</span></code></a>.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.none.synopsis"></a><h6> <a name="fusion.algorithms.query.metafunctions.none.synopsis"></a><h6>
<a name="id589974"></a> <a name="id1145992"></a>
<a href="none.html#fusion.algorithms.query.metafunctions.none.synopsis">Synopsis</a> <a href="none.html#fusion.algorithms.query.metafunctions.none.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id590095"></a><p class="title"><b>Table<EFBFBD>1.48.<2E>Parameters</b></p> <a name="id1146099"></a><p class="title"><b>Table<EFBFBD>1.48.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -75,7 +75,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -94,7 +94,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">F</span></tt> <code class="computeroutput"><span class="identifier">F</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -114,34 +114,34 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.metafunctions.none.expression_semantics"></a><h6> <a name="fusion.algorithms.query.metafunctions.none.expression_semantics"></a><h6>
<a name="id590243"></a> <a name="id1146230"></a>
<a href="none.html#fusion.algorithms.query.metafunctions.none.expression_semantics">Expression <a href="none.html#fusion.algorithms.query.metafunctions.none.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="none.html" title="none"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">none</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="none.html" title="none"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">none</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>. <span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns the return type of <span class="bold"><strong>Semantics</strong></span>: Returns the return type of
<a href="../functions/none.html" title="none"><tt class="computeroutput"><span class="identifier">none</span></tt></a> given a sequence of type <a href="../functions/none.html" title="none"><code class="computeroutput"><span class="identifier">none</span></code></a> given a sequence of type
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> and a unary <code class="computeroutput"><span class="identifier">Sequence</span></code> and a unary
<a href="../../../functional/concepts/poly.html" title=" Polymorphic Function <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Function Object">Polymorphic Function
Object</a> of type <tt class="computeroutput"><span class="identifier">F</span></tt>. Object</a> of type <code class="computeroutput"><span class="identifier">F</span></code>.
The return type is always <tt class="computeroutput"><span class="keyword">bool</span></tt>. The return type is always <code class="computeroutput"><span class="keyword">bool</span></code>.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.none.complexity"></a><h6> <a name="fusion.algorithms.query.metafunctions.none.complexity"></a><h6>
<a name="id590433"></a> <a name="id1146397"></a>
<a href="none.html#fusion.algorithms.query.metafunctions.none.complexity">Complexity</a> <a href="none.html#fusion.algorithms.query.metafunctions.none.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.none.header"></a><h6> <a name="fusion.algorithms.query.metafunctions.none.header"></a><h6>
<a name="id590462"></a> <a name="id1146425"></a>
<a href="none.html#fusion.algorithms.query.metafunctions.none.header">Header</a> <a href="none.html#fusion.algorithms.query.metafunctions.none.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -155,7 +155,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="all.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="find.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="all.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="find.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,24 +3,24 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Transformation</title> <title>Transformation</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../algorithms.html" title="Algorithms"> <link rel="up" href="../algorithms.html" title="Algorithms">
<link rel="prev" href="query/metafunctions/count_if.html" title="count_if"> <link rel="prev" href="query/metafunctions/count_if.html" title="count_if">
<link rel="next" href="transformation/functions.html" title="Functions"> <link rel="next" href="transformation/functions.html" title="Functions">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td> <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="../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../libraries.htm">Libraries</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="../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="query/metafunctions/count_if.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithms.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="transformation/functions.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="query/metafunctions/count_if.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithms.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="transformation/functions.html"><img src="../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title"> <div class="titlepage"><div><div><h3 class="title">
@ -36,17 +36,23 @@
</p> </p>
<div class="note"><table border="0" summary="Note"> <div class="note"><table border="0" summary="Note">
<tr> <tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../doc/html/images/note.png"></td> <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../images/note.png"></td>
<th align="left">Note</th> <th align="left">Note</th>
</tr> </tr>
<tr><td colspan="2" align="left" valign="top"><p> <tr><td align="left" valign="top">
As the transformation algorithms return views onto their input arguments, <p>
it is important that the lifetime of the input arguments is greater than </p>
the period during which you wish to use the results. <p>
</p></td></tr> 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.
</p>
<p>
</p>
</td></tr>
</table></div> </table></div>
<a name="fusion.algorithms.transformation.header"></a><h4> <a name="fusion.algorithms.transformation.header"></a><h4>
<a name="id593287"></a> <a name="id1148928"></a>
<a href="transformation.html#fusion.algorithms.transformation.header">Header</a> <a href="transformation.html#fusion.algorithms.transformation.header">Header</a>
</h4> </h4>
<pre class="programlisting"> <pre class="programlisting">
@ -60,7 +66,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="query/metafunctions/count_if.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithms.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="transformation/functions.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="query/metafunctions/count_if.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithms.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="transformation/functions.html"><img src="../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,24 +3,24 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Functions</title> <title>Functions</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../transformation.html" title="Transformation"> <link rel="up" href="../transformation.html" title="Transformation">
<link rel="prev" href="../transformation.html" title="Transformation"> <link rel="prev" href="../transformation.html" title="Transformation">
<link rel="next" href="functions/filter.html" title="filter"> <link rel="next" href="functions/filter.html" title="filter">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> <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="../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../libraries.htm">Libraries</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="../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../transformation.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../transformation.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="functions/filter.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../transformation.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../transformation.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="functions/filter.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
@ -54,7 +54,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../transformation.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../transformation.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="functions/filter.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../transformation.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../transformation.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="functions/filter.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,47 +3,47 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>clear</title> <title>clear</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="reverse.html" title="reverse"> <link rel="prev" href="reverse.html" title="reverse">
<link rel="next" href="erase.html" title="erase"> <link rel="next" href="erase.html" title="erase">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="reverse.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="erase.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="reverse.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="erase.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.clear"></a><a href="clear.html" title="clear">clear</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.clear"></a><a href="clear.html" title="clear">clear</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.clear.description"></a><h6> <a name="fusion.algorithms.transformation.functions.clear.description"></a><h6>
<a name="id602328"></a> <a name="id1174309"></a>
<a href="clear.html#fusion.algorithms.transformation.functions.clear.description">Description</a> <a href="clear.html#fusion.algorithms.transformation.functions.clear.description">Description</a>
</h6> </h6>
<p> <p>
<a href="clear.html" title="clear"><tt class="computeroutput"><span class="identifier">clear</span></tt></a> returns an empty sequence. <a href="clear.html" title="clear"><code class="computeroutput"><span class="identifier">clear</span></code></a> returns an empty sequence.
</p> </p>
<a name="fusion.algorithms.transformation.functions.clear.synposis"></a><h6> <a name="fusion.algorithms.transformation.functions.clear.synposis"></a><h6>
<a name="id602377"></a> <a name="id1174353"></a>
<a href="clear.html#fusion.algorithms.transformation.functions.clear.synposis">Synposis</a> <a href="clear.html#fusion.algorithms.transformation.functions.clear.synposis">Synposis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">template</span><span class="special">&lt;</span>
<span class="keyword">typename</span> <span class="identifier">Sequence</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/clear.html" title="clear"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">clear</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">clear</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/clear.html" title="clear"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">clear</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">clear</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id602535"></a><p class="title"><b>Table<EFBFBD>1.62.<2E>Parameters</b></p> <a name="id1174491"></a><p class="title"><b>Table<EFBFBD>1.62.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -70,7 +70,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -89,42 +89,42 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.clear.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.clear.expression_semantics"></a><h6>
<a name="id602638"></a> <a name="id1174584"></a>
<a href="clear.html#fusion.algorithms.transformation.functions.clear.expression_semantics">Expression <a href="clear.html#fusion.algorithms.transformation.functions.clear.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="clear.html" title="clear"><tt class="computeroutput"><span class="identifier">clear</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span> <a href="clear.html" title="clear"><code class="computeroutput"><span class="identifier">clear</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Expression Semantics</b></span>: Returns a sequence <span class="bold"><strong>Expression Semantics</strong></span>: Returns a sequence
with no elements. with no elements.
</p> </p>
<a name="fusion.algorithms.transformation.functions.clear.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.clear.complexity"></a><h6>
<a name="id602737"></a> <a name="id1174670"></a>
<a href="clear.html#fusion.algorithms.transformation.functions.clear.complexity">Complexity</a> <a href="clear.html#fusion.algorithms.transformation.functions.clear.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.functions.clear.header"></a><h6> <a name="fusion.algorithms.transformation.functions.clear.header"></a><h6>
<a name="id602768"></a> <a name="id1174698"></a>
<a href="clear.html#fusion.algorithms.transformation.functions.clear.header">Header</a> <a href="clear.html#fusion.algorithms.transformation.functions.clear.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">clear</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">clear</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.clear.example"></a><h6> <a name="fusion.algorithms.transformation.functions.clear.example"></a><h6>
<a name="id602876"></a> <a name="id1174792"></a>
<a href="clear.html#fusion.algorithms.transformation.functions.clear.example">Example</a> <a href="clear.html#fusion.algorithms.transformation.functions.clear.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="identifier">assert</span><span class="special">(</span><a href="clear.html" title="clear"><tt class="computeroutput"><span class="identifier">clear</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">());</span> <span class="identifier">assert</span><span class="special">(</span><a href="clear.html" title="clear"><code class="computeroutput"><span class="identifier">clear</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">());</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -134,7 +134,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="reverse.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="erase.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="reverse.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="erase.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,30 +3,30 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>erase</title> <title>erase</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="clear.html" title="clear"> <link rel="prev" href="clear.html" title="clear">
<link rel="next" href="erase_key.html" title="erase_key"> <link rel="next" href="erase_key.html" title="erase_key">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="clear.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="erase_key.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="clear.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="erase_key.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.erase"></a><a href="erase.html" title="erase">erase</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.erase"></a><a href="erase.html" title="erase">erase</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.erase.description"></a><h6> <a name="fusion.algorithms.transformation.functions.erase.description"></a><h6>
<a name="id603041"></a> <a name="id1174940"></a>
<a href="erase.html#fusion.algorithms.transformation.functions.erase.description">Description</a> <a href="erase.html#fusion.algorithms.transformation.functions.erase.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,7 +34,7 @@
those at a specified iterator, or between two iterators. those at a specified iterator, or between two iterators.
</p> </p>
<a name="fusion.algorithms.transformation.functions.erase.synposis"></a><h6> <a name="fusion.algorithms.transformation.functions.erase.synposis"></a><h6>
<a name="id603074"></a> <a name="id1174970"></a>
<a href="erase.html#fusion.algorithms.transformation.functions.erase.synposis">Synposis</a> <a href="erase.html#fusion.algorithms.transformation.functions.erase.synposis">Synposis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -42,7 +42,7 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</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">First</span> <span class="keyword">typename</span> <span class="identifier">First</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/erase.html" title="erase"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">First</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">erase</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/erase.html" title="erase"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">First</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">erase</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">First</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">it1</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">First</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">it1</span><span class="special">);</span>
<span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">template</span><span class="special">&lt;</span>
@ -50,11 +50,11 @@
<span class="keyword">typename</span> <span class="identifier">First</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">First</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Last</span> <span class="keyword">typename</span> <span class="identifier">Last</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/erase.html" title="erase"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">First</span><span class="special">,</span> <span class="identifier">Last</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">erase</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/erase.html" title="erase"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">First</span><span class="special">,</span> <span class="identifier">Last</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">erase</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">First</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">it1</span><span class="special">,</span> <span class="identifier">Last</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">it2</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">First</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">it1</span><span class="special">,</span> <span class="identifier">Last</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">it2</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id603537"></a><p class="title"><b>Table<EFBFBD>1.63.<2E>Parameters</b></p> <a name="id1175377"></a><p class="title"><b>Table<EFBFBD>1.63.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -82,7 +82,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -101,7 +101,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">it1</span></tt> <code class="computeroutput"><span class="identifier">it1</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -113,14 +113,14 @@
</td> </td>
<td> <td>
<p> <p>
Iterator into <tt class="computeroutput"><span class="identifier">seq</span></tt> Iterator into <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">it2</span></tt> <code class="computeroutput"><span class="identifier">it2</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -132,8 +132,8 @@
</td> </td>
<td> <td>
<p> <p>
Iterator into <tt class="computeroutput"><span class="identifier">seq</span></tt> Iterator into <code class="computeroutput"><span class="identifier">seq</span></code>
after <tt class="computeroutput"><span class="identifier">it1</span></tt> after <code class="computeroutput"><span class="identifier">it1</span></code>
</p> </p>
</td> </td>
</tr> </tr>
@ -141,58 +141,58 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.erase.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.erase.expression_semantics"></a><h6>
<a name="id603764"></a> <a name="id1175579"></a>
<a href="erase.html#fusion.algorithms.transformation.functions.erase.expression_semantics">Expression <a href="erase.html#fusion.algorithms.transformation.functions.erase.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="erase.html" title="erase"><tt class="computeroutput"><span class="identifier">erase</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">pos</span><span class="special">);</span> <a href="erase.html" title="erase"><code class="computeroutput"><span class="identifier">erase</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">pos</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing
all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt> all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>
except the element at <tt class="computeroutput"><span class="identifier">pos</span></tt>. except the element at <code class="computeroutput"><span class="identifier">pos</span></code>.
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
<a href="erase.html" title="erase"><tt class="computeroutput"><span class="identifier">erase</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">first</span><span class="special">,</span> <span class="identifier">last</span><span class="special">);</span> <a href="erase.html" title="erase"><code class="computeroutput"><span class="identifier">erase</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">first</span><span class="special">,</span> <span class="identifier">last</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a new sequence, with <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, with
all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>, all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>,
in their original order, except those in the range [<tt class="computeroutput"><span class="identifier">first</span></tt>,<tt class="computeroutput"><span class="identifier">last</span></tt>). in their original order, except those in the range [<code class="computeroutput"><span class="identifier">first</span></code>,<code class="computeroutput"><span class="identifier">last</span></code>).
</p> </p>
<a name="fusion.algorithms.transformation.functions.erase.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.erase.complexity"></a><h6>
<a name="id604023"></a> <a name="id1175808"></a>
<a href="erase.html#fusion.algorithms.transformation.functions.erase.complexity">Complexity</a> <a href="erase.html#fusion.algorithms.transformation.functions.erase.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.erase.header"></a><h6> <a name="fusion.algorithms.transformation.functions.erase.header"></a><h6>
<a name="id604055"></a> <a name="id1175837"></a>
<a href="erase.html#fusion.algorithms.transformation.functions.erase.header">Header</a> <a href="erase.html#fusion.algorithms.transformation.functions.erase.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">erase</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">erase</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.erase.example"></a><h6> <a name="fusion.algorithms.transformation.functions.erase.example"></a><h6>
<a name="id604163"></a> <a name="id1175932"></a>
<a href="erase.html#fusion.algorithms.transformation.functions.erase.example">Example</a> <a href="erase.html#fusion.algorithms.transformation.functions.erase.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2.0</span><span class="special">,</span> <span class="char">'c'</span><span class="special">);</span> <span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2.0</span><span class="special">,</span> <span class="char">'c'</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="erase.html" title="erase"><tt class="computeroutput"><span class="identifier">erase</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <a href="../../../iterators/functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">)))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'c'</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="erase.html" title="erase"><code class="computeroutput"><span class="identifier">erase</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <a href="../../../iterators/functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a href="../../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">)))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'c'</span><span class="special">));</span>
<span class="identifier">assert</span><span class="special">(</span><a href="erase.html" title="erase"><tt class="computeroutput"><span class="identifier">erase</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <a href="../../../iterators/functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">)),</span> <a href="../../../sequences/intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="erase.html" title="erase"><code class="computeroutput"><span class="identifier">erase</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <a href="../../../iterators/functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a href="../../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">)),</span> <a href="../../../sequences/intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -202,7 +202,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="clear.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="erase_key.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="clear.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="erase_key.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,43 +3,43 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>erase_key</title> <title>erase_key</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="erase.html" title="erase"> <link rel="prev" href="erase.html" title="erase">
<link rel="next" href="insert.html" title="insert"> <link rel="next" href="insert.html" title="insert">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="erase.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="insert.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="erase.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="insert.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.erase_key"></a><a href="erase_key.html" title="erase_key">erase_key</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.erase_key"></a><a href="erase_key.html" title="erase_key">erase_key</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.erase_key.description"></a><h6> <a name="fusion.algorithms.transformation.functions.erase_key.description"></a><h6>
<a name="id604621"></a> <a name="id1176337"></a>
<a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.description">Description</a> <a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.description">Description</a>
</h6> </h6>
<p> <p>
For an <a href="../../../sequences/concepts/associative_sequence.html" title="Associative For an <a href="../../../sequences/concepts/associative_sequence.html" title="Associative
Sequence">Associative Sequence">Associative
Sequence</a> <tt class="computeroutput"><span class="identifier">seq</span></tt>, Sequence</a> <code class="computeroutput"><span class="identifier">seq</span></code>,
returns a <a href="../../../sequences/concepts/forward_sequence.html" title="Forward returns a <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> containing all the elements of the original except those Sequence</a> containing all the elements of the original except those
with a given key. with a given key.
</p> </p>
<a name="fusion.algorithms.transformation.functions.erase_key.synposis"></a><h6> <a name="fusion.algorithms.transformation.functions.erase_key.synposis"></a><h6>
<a name="id604684"></a> <a name="id1176393"></a>
<a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.synposis">Synposis</a> <a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.synposis">Synposis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -50,7 +50,7 @@
<span class="keyword">typename</span> <span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase_key</span><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">erase_key</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="keyword">typename</span> <span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase_key</span><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">erase_key</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id604857"></a><p class="title"><b>Table<EFBFBD>1.64.<2E>Parameters</b></p> <a name="id1176545"></a><p class="title"><b>Table<EFBFBD>1.64.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -78,7 +78,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -97,7 +97,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Key</span></tt> <code class="computeroutput"><span class="identifier">Key</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -115,43 +115,43 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.erase_key.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.erase_key.expression_semantics"></a><h6>
<a name="id604998"></a> <a name="id1176670"></a>
<a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.expression_semantics">Expression <a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="erase_key.html" title="erase_key"><tt class="computeroutput"><span class="identifier">erase_key</span></tt></a><span class="special">&lt;</span><span class="identifier">Key</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">);</span> <a href="erase_key.html" title="erase_key"><code class="computeroutput"><span class="identifier">erase_key</span></code></a><span class="special">&lt;</span><span class="identifier">Key</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing
all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>, all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>,
except those with key <tt class="computeroutput"><span class="identifier">Key</span></tt>. except those with key <code class="computeroutput"><span class="identifier">Key</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.erase_key.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.erase_key.complexity"></a><h6>
<a name="id605129"></a> <a name="id1176785"></a>
<a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.complexity">Complexity</a> <a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.erase_key.header"></a><h6> <a name="fusion.algorithms.transformation.functions.erase_key.header"></a><h6>
<a name="id605160"></a> <a name="id1176814"></a>
<a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.header">Header</a> <a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">erase_key</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">erase_key</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.erase_key.example"></a><h6> <a name="fusion.algorithms.transformation.functions.erase_key.example"></a><h6>
<a name="id605268"></a> <a name="id1176909"></a>
<a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.example">Example</a> <a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="identifier">assert</span><span class="special">(</span><a href="erase_key.html" title="erase_key"><tt class="computeroutput"><span class="identifier">erase_key</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;(</span><a href="../../../sequences/generation/functions/make_map.html" title="make_map"><tt class="computeroutput"><span class="identifier">make_map</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">long</span><span class="special">&gt;(</span><span class="char">'a'</span><span class="special">,</span> <span class="char">'b'</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_map.html" title="make_map"><tt class="computeroutput"><span class="identifier">make_map</span></tt></a><span class="special">&lt;</span><span class="keyword">long</span><span class="special">&gt;(</span><span class="char">'b'</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="erase_key.html" title="erase_key"><code class="computeroutput"><span class="identifier">erase_key</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;(</span><a href="../../../sequences/generation/functions/make_map.html" title="make_map"><code class="computeroutput"><span class="identifier">make_map</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">long</span><span class="special">&gt;(</span><span class="char">'a'</span><span class="special">,</span> <span class="char">'b'</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_map.html" title="make_map"><code class="computeroutput"><span class="identifier">make_map</span></code></a><span class="special">&lt;</span><span class="keyword">long</span><span class="special">&gt;(</span><span class="char">'b'</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -161,7 +161,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="erase.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="insert.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="erase.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="insert.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,30 +3,30 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>filter</title> <title>filter</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="../functions.html" title="Functions"> <link rel="prev" href="../functions.html" title="Functions">
<link rel="next" href="filter_if.html" title="filter_if"> <link rel="next" href="filter_if.html" title="filter_if">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <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="filter_if.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../functions.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="filter_if.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.filter"></a><a href="filter.html" title="filter">filter</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.filter"></a><a href="filter.html" title="filter">filter</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.filter.description"></a><h6> <a name="fusion.algorithms.transformation.functions.filter.description"></a><h6>
<a name="id593426"></a> <a name="id1149050"></a>
<a href="filter.html#fusion.algorithms.transformation.functions.filter.description">Description</a> <a href="filter.html#fusion.algorithms.transformation.functions.filter.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,7 +34,7 @@
the elements of a specified type. the elements of a specified type.
</p> </p>
<a name="fusion.algorithms.transformation.functions.filter.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.filter.synopsis"></a><h6>
<a name="id593459"></a> <a name="id1149080"></a>
<a href="filter.html#fusion.algorithms.transformation.functions.filter.synopsis">Synopsis</a> <a href="filter.html#fusion.algorithms.transformation.functions.filter.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -42,10 +42,10 @@
<span class="keyword">typename</span> <span class="identifier">T</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">T</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Sequence</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/filter.html" title="filter"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">filter</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/filter.html" title="filter"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">filter</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id593645"></a><p class="title"><b>Table<EFBFBD>1.53.<2E>Parameters</b></p> <a name="id1149243"></a><p class="title"><b>Table<EFBFBD>1.53.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -73,7 +73,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -92,7 +92,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <code class="computeroutput"><span class="identifier">T</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -110,45 +110,45 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.filter.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.filter.expression_semantics"></a><h6>
<a name="id593783"></a> <a name="id1149368"></a>
<a href="filter.html#fusion.algorithms.transformation.functions.filter.expression_semantics">Expression <a href="filter.html#fusion.algorithms.transformation.functions.filter.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="filter.html" title="filter"><tt class="computeroutput"><span class="identifier">filter</span></tt></a><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">);</span> <a href="filter.html" title="filter"><code class="computeroutput"><span class="identifier">filter</span></code></a><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a sequence containing <span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing
all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt> all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>
of type <tt class="computeroutput"><span class="identifier">T</span></tt>. Equivalent of type <code class="computeroutput"><span class="identifier">T</span></code>. Equivalent
to <tt class="computeroutput"><a href="filter_if.html" title="filter_if"><tt class="computeroutput"><span class="identifier">filter_if</span></tt></a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">same_type</span><span class="special">&lt;</span><span class="identifier">_</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span></tt>. to <code class="computeroutput"><a href="filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">filter_if</span></code></a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">same_type</span><span class="special">&lt;</span><span class="identifier">_</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.filter.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.filter.complexity"></a><h6>
<a name="id593999"></a> <a name="id1149558"></a>
<a href="filter.html#fusion.algorithms.transformation.functions.filter.complexity">Complexity</a> <a href="filter.html#fusion.algorithms.transformation.functions.filter.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.filter.header"></a><h6> <a name="fusion.algorithms.transformation.functions.filter.header"></a><h6>
<a name="id594031"></a> <a name="id1149586"></a>
<a href="filter.html#fusion.algorithms.transformation.functions.filter.header">Header</a> <a href="filter.html#fusion.algorithms.transformation.functions.filter.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">filter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">filter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.filter.example"></a><h6> <a name="fusion.algorithms.transformation.functions.filter.example"></a><h6>
<a name="id594139"></a> <a name="id1149681"></a>
<a href="filter.html#fusion.algorithms.transformation.functions.filter.example">Example</a> <a href="filter.html#fusion.algorithms.transformation.functions.filter.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">long</span><span class="special">,</span><span class="keyword">long</span><span class="special">&gt;</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="number">3</span><span class="special">,</span><span class="number">4</span><span class="special">);</span> <span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">long</span><span class="special">,</span><span class="keyword">long</span><span class="special">&gt;</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="number">3</span><span class="special">,</span><span class="number">4</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="filter.html" title="filter"><tt class="computeroutput"><span class="identifier">filter</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><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="filter.html" title="filter"><code class="computeroutput"><span class="identifier">filter</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -158,7 +158,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <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="filter_if.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../functions.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="filter_if.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,39 +3,39 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>filter_if</title> <title>filter_if</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="filter.html" title="filter"> <link rel="prev" href="filter.html" title="filter">
<link rel="next" href="transform.html" title="transform"> <link rel="next" href="transform.html" title="transform">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="filter.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="transform.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="filter.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="transform.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.filter_if"></a><a href="filter_if.html" title="filter_if">filter_if</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.filter_if"></a><a href="filter_if.html" title="filter_if">filter_if</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.filter_if.description"></a><h6> <a name="fusion.algorithms.transformation.functions.filter_if.description"></a><h6>
<a name="id594409"></a> <a name="id1149922"></a>
<a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.description">Description</a> <a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.description">Description</a>
</h6> </h6>
<p> <p>
For a given sequence, <a href="filter_if.html" title="filter_if"><tt class="computeroutput"><span class="identifier">filter_if</span></tt></a> returns a new sequences For a given sequence, <a href="filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">filter_if</span></code></a> returns a new sequences
containing only the elements with types for which a given <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL containing only the elements with types for which a given <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL
Lambda Expression</a> evaluates to <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>. Lambda Expression</a> evaluates to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.filter_if.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.filter_if.synopsis"></a><h6>
<a name="id594499"></a> <a name="id1150002"></a>
<a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.synopsis">Synopsis</a> <a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -43,10 +43,10 @@
<span class="keyword">typename</span> <span class="identifier">Pred</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Pred</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Sequence</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/filter_if.html" title="filter_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">filter_if</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">filter_if</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id594686"></a><p class="title"><b>Table<EFBFBD>1.54.<2E>Parameters</b></p> <a name="id1150166"></a><p class="title"><b>Table<EFBFBD>1.54.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -74,7 +74,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -93,7 +93,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Pred</span></tt> <code class="computeroutput"><span class="identifier">Pred</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -112,46 +112,46 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.filter_if.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.filter_if.expression_semantics"></a><h6>
<a name="id594835"></a> <a name="id1150298"></a>
<a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.expression_semantics">Expression <a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="filter_if.html" title="filter_if"><tt class="computeroutput"><span class="identifier">filter_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Pred</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">);</span> <a href="filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">filter_if</span></code></a><span class="special">&lt;</span><span class="identifier">Pred</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a sequence containing <span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing
all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt> all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>
with types for which <tt class="computeroutput"><span class="identifier">Pred</span></tt> with types for which <code class="computeroutput"><span class="identifier">Pred</span></code>
evaluates to <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>. The order of the retained elements evaluates to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>. The order of the retained elements
is the same as in the original sequence. is the same as in the original sequence.
</p> </p>
<a name="fusion.algorithms.transformation.functions.filter_if.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.filter_if.complexity"></a><h6>
<a name="id595001"></a> <a name="id1150444"></a>
<a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.complexity">Complexity</a> <a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.filter_if.header"></a><h6> <a name="fusion.algorithms.transformation.functions.filter_if.header"></a><h6>
<a name="id595033"></a> <a name="id1150473"></a>
<a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.header">Header</a> <a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">filter_if</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">filter_if</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.filter_if.example"></a><h6> <a name="fusion.algorithms.transformation.functions.filter_if.example"></a><h6>
<a name="id595141"></a> <a name="id1150567"></a>
<a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.example">Example</a> <a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">double</span><span class="special">,</span><span class="keyword">double</span><span class="special">&gt;</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="number">3.0</span><span class="special">,</span><span class="number">4.0</span><span class="special">);</span> <span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">double</span><span class="special">,</span><span class="keyword">double</span><span class="special">&gt;</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="number">3.0</span><span class="special">,</span><span class="number">4.0</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="filter_if.html" title="filter_if"><tt class="computeroutput"><span class="identifier">filter_if</span></tt></a><span class="special">&lt;</span><span class="identifier">is_integral</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><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="filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">filter_if</span></code></a><span class="special">&lt;</span><span class="identifier">is_integral</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -161,7 +161,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="filter.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="transform.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="filter.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="transform.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,30 +3,30 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>insert</title> <title>insert</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="erase_key.html" title="erase_key"> <link rel="prev" href="erase_key.html" title="erase_key">
<link rel="next" href="insert_range.html" title="insert_range"> <link rel="next" href="insert_range.html" title="insert_range">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="erase_key.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="insert_range.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="erase_key.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="insert_range.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.insert"></a><a href="insert.html" title="insert">insert</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.insert"></a><a href="insert.html" title="insert">insert</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.insert.description"></a><h6> <a name="fusion.algorithms.transformation.functions.insert.description"></a><h6>
<a name="id605475"></a> <a name="id1177093"></a>
<a href="insert.html#fusion.algorithms.transformation.functions.insert.description">Description</a> <a href="insert.html#fusion.algorithms.transformation.functions.insert.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,7 +34,7 @@
element inserted the position described by a given iterator. element inserted the position described by a given iterator.
</p> </p>
<a name="fusion.algorithms.transformation.functions.insert.synposis"></a><h6> <a name="fusion.algorithms.transformation.functions.insert.synposis"></a><h6>
<a name="id605509"></a> <a name="id1177123"></a>
<a href="insert.html#fusion.algorithms.transformation.functions.insert.synposis">Synposis</a> <a href="insert.html#fusion.algorithms.transformation.functions.insert.synposis">Synposis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -46,7 +46,7 @@
<span class="emphasis"><em>unspecified</em></span> <span class="identifier">insert</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">Pos</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">pos</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">t</span><span class="special">);</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">insert</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">Pos</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">pos</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">t</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id605700"></a><p class="title"><b>Table<EFBFBD>1.65.<2E>Parameters</b></p> <a name="id1177290"></a><p class="title"><b>Table<EFBFBD>1.65.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -74,7 +74,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -93,7 +93,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">pos</span></tt> <code class="computeroutput"><span class="identifier">pos</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -112,7 +112,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">t</span></tt> <code class="computeroutput"><span class="identifier">t</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -130,46 +130,46 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.insert.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.insert.expression_semantics"></a><h6>
<a name="id605885"></a> <a name="id1177456"></a>
<a href="insert.html#fusion.algorithms.transformation.functions.insert.expression_semantics">Expression <a href="insert.html#fusion.algorithms.transformation.functions.insert.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="insert.html" title="insert"><tt class="computeroutput"><span class="identifier">insert</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">t</span><span class="special">);</span> <a href="insert.html" title="insert"><code class="computeroutput"><span class="identifier">insert</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">t</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing
all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>, all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>,
in their original order, and a new element with the type and value of in their original order, and a new element with the type and value of
<tt class="computeroutput"><span class="identifier">t</span></tt> inserted at iterator <code class="computeroutput"><span class="identifier">t</span></code> inserted at iterator
<tt class="computeroutput"><span class="identifier">pos</span></tt>. <code class="computeroutput"><span class="identifier">pos</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.insert.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.insert.complexity"></a><h6>
<a name="id606040"></a> <a name="id1177593"></a>
<a href="insert.html#fusion.algorithms.transformation.functions.insert.complexity">Complexity</a> <a href="insert.html#fusion.algorithms.transformation.functions.insert.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.insert.header"></a><h6> <a name="fusion.algorithms.transformation.functions.insert.header"></a><h6>
<a name="id606073"></a> <a name="id1177621"></a>
<a href="insert.html#fusion.algorithms.transformation.functions.insert.header">Header</a> <a href="insert.html#fusion.algorithms.transformation.functions.insert.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">insert</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">insert</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.insert.example"></a><h6> <a name="fusion.algorithms.transformation.functions.insert.example"></a><h6>
<a name="id606180"></a> <a name="id1177716"></a>
<a href="insert.html#fusion.algorithms.transformation.functions.insert.example">Example</a> <a href="insert.html#fusion.algorithms.transformation.functions.insert.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</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="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</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="insert.html" title="insert"><tt class="computeroutput"><span class="identifier">insert</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <a href="../../../iterators/functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">)),</span> <span class="number">3</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">3</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="insert.html" title="insert"><code class="computeroutput"><span class="identifier">insert</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <a href="../../../iterators/functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a href="../../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">)),</span> <span class="number">3</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">3</span><span class="special">,</span><span class="number">2</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -179,7 +179,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="erase_key.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="insert_range.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="erase_key.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="insert_range.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,30 +3,30 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>insert_range</title> <title>insert_range</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="insert.html" title="insert"> <link rel="prev" href="insert.html" title="insert">
<link rel="next" href="join.html" title="join"> <link rel="next" href="join.html" title="join">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="insert.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="join.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="insert.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="join.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.insert_range"></a><a href="insert_range.html" title="insert_range">insert_range</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.insert_range"></a><a href="insert_range.html" title="insert_range">insert_range</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.insert_range.description"></a><h6> <a name="fusion.algorithms.transformation.functions.insert_range.description"></a><h6>
<a name="id606475"></a> <a name="id1177977"></a>
<a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.description">Description</a> <a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,7 +34,7 @@
iterator. iterator.
</p> </p>
<a name="fusion.algorithms.transformation.functions.insert_range.synposis"></a><h6> <a name="fusion.algorithms.transformation.functions.insert_range.synposis"></a><h6>
<a name="id606508"></a> <a name="id1178008"></a>
<a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.synposis">Synposis</a> <a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.synposis">Synposis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -43,11 +43,11 @@
<span class="keyword">typename</span> <span class="identifier">Pos</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Pos</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Range</span> <span class="keyword">typename</span> <span class="identifier">Range</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/insert_range.html" title="insert_range"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">insert_range</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Pos</span><span class="special">,</span> <span class="identifier">Range</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">insert_range</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/insert_range.html" title="insert_range"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">insert_range</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Pos</span><span class="special">,</span> <span class="identifier">Range</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">insert_range</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">Pos</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">pos</span><span class="special">,</span> <span class="identifier">Range</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">range</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">Pos</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">pos</span><span class="special">,</span> <span class="identifier">Range</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">range</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id606782"></a><p class="title"><b>Table<EFBFBD>1.66.<2E>Parameters</b></p> <a name="id1178248"></a><p class="title"><b>Table<EFBFBD>1.66.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -75,7 +75,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -94,7 +94,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">pos</span></tt> <code class="computeroutput"><span class="identifier">pos</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -113,7 +113,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">range</span></tt> <code class="computeroutput"><span class="identifier">range</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -133,46 +133,46 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.insert_range.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.insert_range.expression_semantics"></a><h6>
<a name="id606976"></a> <a name="id1178421"></a>
<a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.expression_semantics">Expression <a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="insert.html" title="insert"><tt class="computeroutput"><span class="identifier">insert</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">pos</span><span class="special">,</span> <span class="identifier">range</span><span class="special">);</span> <a href="insert.html" title="insert"><code class="computeroutput"><span class="identifier">insert</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">pos</span><span class="special">,</span> <span class="identifier">range</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing
all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>, all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>,
and the elements of <tt class="computeroutput"><span class="identifier">range</span></tt> and the elements of <code class="computeroutput"><span class="identifier">range</span></code>
inserted at iterator <tt class="computeroutput"><span class="identifier">pos</span></tt>. inserted at iterator <code class="computeroutput"><span class="identifier">pos</span></code>.
All elements retaining their ordering from the orignal sequences. All elements retaining their ordering from the orignal sequences.
</p> </p>
<a name="fusion.algorithms.transformation.functions.insert_range.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.insert_range.complexity"></a><h6>
<a name="id607136"></a> <a name="id1178562"></a>
<a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.complexity">Complexity</a> <a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.insert_range.header"></a><h6> <a name="fusion.algorithms.transformation.functions.insert_range.header"></a><h6>
<a name="id607167"></a> <a name="id1178590"></a>
<a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.header">Header</a> <a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">insert_range</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">insert_range</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.insert_range.example"></a><h6> <a name="fusion.algorithms.transformation.functions.insert_range.example"></a><h6>
<a name="id607275"></a> <a name="id1178684"></a>
<a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.example">Example</a> <a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</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="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</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="insert_range.html" title="insert_range"><tt class="computeroutput"><span class="identifier">insert_range</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <a href="../../../iterators/functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">)),</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">3</span><span class="special">,</span><span class="number">4</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">3</span><span class="special">,</span><span class="number">4</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="insert_range.html" title="insert_range"><code class="computeroutput"><span class="identifier">insert_range</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <a href="../../../iterators/functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a href="../../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">)),</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">3</span><span class="special">,</span><span class="number">4</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">3</span><span class="special">,</span><span class="number">4</span><span class="special">,</span><span class="number">2</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -182,7 +182,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="insert.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="join.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="insert.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="join.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,30 +3,30 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>join</title> <title>join</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="insert_range.html" title="insert_range"> <link rel="prev" href="insert_range.html" title="insert_range">
<link rel="next" href="zip.html" title="zip"> <link rel="next" href="zip.html" title="zip">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="insert_range.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="zip.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="insert_range.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="zip.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.join"></a><a href="join.html" title="join">join</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.join"></a><a href="join.html" title="join">join</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.join.description"></a><h6> <a name="fusion.algorithms.transformation.functions.join.description"></a><h6>
<a name="id607606"></a> <a name="id1178977"></a>
<a href="join.html#fusion.algorithms.transformation.functions.join.description">Description</a> <a href="join.html#fusion.algorithms.transformation.functions.join.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,17 +34,17 @@
first followed by the elements of the second. first followed by the elements of the second.
</p> </p>
<a name="fusion.algorithms.transformation.functions.join.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.join.synopsis"></a><h6>
<a name="id607640"></a> <a name="id1179007"></a>
<a href="join.html#fusion.algorithms.transformation.functions.join.synopsis">Synopsis</a> <a href="join.html#fusion.algorithms.transformation.functions.join.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">template</span><span class="special">&lt;</span>
<span class="keyword">typename</span> <span class="identifier">LhSequence</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">LhSequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">RhSequence</span><span class="special">&gt;</span> <span class="keyword">typename</span> <span class="identifier">RhSequence</span><span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/join.html" title="join"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">join</span></tt></a><span class="special">&lt;</span><span class="identifier">LhSequence</span><span class="special">,</span> <span class="identifier">RhSequence</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">join</span><span class="special">(</span><span class="identifier">LhSequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="identifier">RhSequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/join.html" title="join"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">join</span></code></a><span class="special">&lt;</span><span class="identifier">LhSequence</span><span class="special">,</span> <span class="identifier">RhSequence</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">join</span><span class="special">(</span><span class="identifier">LhSequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="identifier">RhSequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id607847"></a><p class="title"><b>Table<EFBFBD>1.67.<2E>Parameters</b></p> <a name="id1179190"></a><p class="title"><b>Table<EFBFBD>1.67.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -72,7 +72,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">lhs</span></tt> <code class="computeroutput"><span class="identifier">lhs</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -91,7 +91,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">rhs</span></tt> <code class="computeroutput"><span class="identifier">rhs</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -111,46 +111,46 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.join.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.join.expression_semantics"></a><h6>
<a name="id607995"></a> <a name="id1179323"></a>
<a href="join.html#fusion.algorithms.transformation.functions.join.expression_semantics">Expression <a href="join.html#fusion.algorithms.transformation.functions.join.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="join.html" title="join"><tt class="computeroutput"><span class="identifier">join</span></tt></a><span class="special">(</span><span class="identifier">lhs</span><span class="special">,</span> <span class="identifier">rhs</span><span class="special">);</span> <a href="join.html" title="join"><code class="computeroutput"><span class="identifier">join</span></code></a><span class="special">(</span><span class="identifier">lhs</span><span class="special">,</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a sequence containing <span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing
all the elements of <tt class="computeroutput"><span class="identifier">lhs</span></tt> all the elements of <code class="computeroutput"><span class="identifier">lhs</span></code>
followed by all the elements of <tt class="computeroutput"><span class="identifier">rhs</span></tt>. followed by all the elements of <code class="computeroutput"><span class="identifier">rhs</span></code>.
The order of th elements is preserved. The order of th elements is preserved.
</p> </p>
<a name="fusion.algorithms.transformation.functions.join.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.join.complexity"></a><h6>
<a name="id608128"></a> <a name="id1179439"></a>
<a href="join.html#fusion.algorithms.transformation.functions.join.complexity">Complexity</a> <a href="join.html#fusion.algorithms.transformation.functions.join.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.join.header"></a><h6> <a name="fusion.algorithms.transformation.functions.join.header"></a><h6>
<a name="id608159"></a> <a name="id1179468"></a>
<a href="join.html#fusion.algorithms.transformation.functions.join.header">Header</a> <a href="join.html#fusion.algorithms.transformation.functions.join.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">join</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">join</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.join.example"></a><h6> <a name="fusion.algorithms.transformation.functions.join.example"></a><h6>
<a name="id608266"></a> <a name="id1179562"></a>
<a href="join.html#fusion.algorithms.transformation.functions.join.example">Example</a> <a href="join.html#fusion.algorithms.transformation.functions.join.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">v1</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'a'</span><span class="special">);</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">v1</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'a'</span><span class="special">);</span>
<a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">v2</span><span class="special">(</span><span class="number">2</span><span class="special">,</span> <span class="char">'b'</span><span class="special">);</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">v2</span><span class="special">(</span><span class="number">2</span><span class="special">,</span> <span class="char">'b'</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="join.html" title="join"><tt class="computeroutput"><span class="identifier">join</span></tt></a><span class="special">(</span><span class="identifier">v1</span><span class="special">,</span> <span class="identifier">v2</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="char">'a'</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="char">'b'</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="join.html" title="join"><code class="computeroutput"><span class="identifier">join</span></code></a><span class="special">(</span><span class="identifier">v1</span><span class="special">,</span> <span class="identifier">v2</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="char">'a'</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="char">'b'</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -160,7 +160,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="insert_range.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="zip.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="insert_range.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="zip.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,47 +3,47 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>pop_back</title> <title>pop_back</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="zip.html" title="zip"> <link rel="prev" href="zip.html" title="zip">
<link rel="next" href="pop_front.html" title="pop_front"> <link rel="next" href="pop_front.html" title="pop_front">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="zip.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="pop_front.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="zip.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="pop_front.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.pop_back"></a><a href="pop_back.html" title="pop_back">pop_back</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.pop_back"></a><a href="pop_back.html" title="pop_back">pop_back</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.pop_back.description"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_back.description"></a><h6>
<a name="id609826"></a> <a name="id1180944"></a>
<a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.description">Description</a> <a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.description">Description</a>
</h6> </h6>
<p> <p>
Returns a new sequence, with the last element of the original removed. Returns a new sequence, with the last element of the original removed.
</p> </p>
<a name="fusion.algorithms.transformation.functions.pop_back.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_back.synopsis"></a><h6>
<a name="id609859"></a> <a name="id1180973"></a>
<a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.synopsis">Synopsis</a> <a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">template</span><span class="special">&lt;</span>
<span class="keyword">typename</span> <span class="identifier">Sequence</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/pop_back.html" title="pop_back"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_back</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">pop_back</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/pop_back.html" title="pop_back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_back</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">pop_back</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id610016"></a><p class="title"><b>Table<EFBFBD>1.69.<2E>Parameters</b></p> <a name="id1181111"></a><p class="title"><b>Table<EFBFBD>1.69.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -70,7 +70,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -89,44 +89,44 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.pop_back.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_back.expression_semantics"></a><h6>
<a name="id610120"></a> <a name="id1181204"></a>
<a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.expression_semantics">Expression <a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="pop_back.html" title="pop_back"><tt class="computeroutput"><span class="identifier">pop_back</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span> <a href="pop_back.html" title="pop_back"><code class="computeroutput"><span class="identifier">pop_back</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a new sequence containing <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence containing
all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>, all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>,
except the last element. The elements in the new sequence are in the except the last element. The elements in the new sequence are in the
same order as they were in <tt class="computeroutput"><span class="identifier">seq</span></tt>. same order as they were in <code class="computeroutput"><span class="identifier">seq</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.pop_back.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_back.complexity"></a><h6>
<a name="id610244"></a> <a name="id1181312"></a>
<a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.complexity">Complexity</a> <a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.pop_back.header"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_back.header"></a><h6>
<a name="id610274"></a> <a name="id1181340"></a>
<a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.header">Header</a> <a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">pop_back</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">pop_back</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.pop_back.example"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_back.example"></a><h6>
<a name="id610382"></a> <a name="id1181435"></a>
<a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.example">Example</a> <a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">___pop_back__</span><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><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><span class="identifier">___pop_back__</span><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -136,7 +136,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="zip.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="pop_front.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="zip.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="pop_front.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,47 +3,47 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>pop_front</title> <title>pop_front</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="pop_back.html" title="pop_back"> <link rel="prev" href="pop_back.html" title="pop_back">
<link rel="next" href="push_back.html" title="push_back"> <link rel="next" href="push_back.html" title="push_back">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="pop_back.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="push_back.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="pop_back.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="push_back.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.pop_front"></a><a href="pop_front.html" title="pop_front">pop_front</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.pop_front"></a><a href="pop_front.html" title="pop_front">pop_front</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.pop_front.description"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_front.description"></a><h6>
<a name="id610558"></a> <a name="id1181592"></a>
<a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.description">Description</a> <a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.description">Description</a>
</h6> </h6>
<p> <p>
Returns a new sequence, with the first element of the original removed. Returns a new sequence, with the first element of the original removed.
</p> </p>
<a name="fusion.algorithms.transformation.functions.pop_front.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_front.synopsis"></a><h6>
<a name="id610591"></a> <a name="id1181599"></a>
<a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.synopsis">Synopsis</a> <a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">template</span><span class="special">&lt;</span>
<span class="keyword">typename</span> <span class="identifier">Sequence</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/pop_front.html" title="pop_front"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_front</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">pop_front</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/pop_front.html" title="pop_front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_front</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">pop_front</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id610749"></a><p class="title"><b>Table<EFBFBD>1.70.<2E>Parameters</b></p> <a name="id1181759"></a><p class="title"><b>Table<EFBFBD>1.70.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -70,7 +70,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -89,44 +89,44 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.pop_front.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_front.expression_semantics"></a><h6>
<a name="id610854"></a> <a name="id1181852"></a>
<a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.expression_semantics">Expression <a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="pop_front.html" title="pop_front"><tt class="computeroutput"><span class="identifier">pop_front</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span> <a href="pop_front.html" title="pop_front"><code class="computeroutput"><span class="identifier">pop_front</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a new sequence containing <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence containing
all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>, all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>,
except the first element. The elements in the new sequence are in the except the first element. The elements in the new sequence are in the
same order as they were in <tt class="computeroutput"><span class="identifier">seq</span></tt>. same order as they were in <code class="computeroutput"><span class="identifier">seq</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.pop_front.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_front.complexity"></a><h6>
<a name="id610977"></a> <a name="id1181960"></a>
<a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.complexity">Complexity</a> <a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.pop_front.header"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_front.header"></a><h6>
<a name="id611007"></a> <a name="id1181988"></a>
<a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.header">Header</a> <a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">pop_front</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">pop_front</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.pop_front.example"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_front.example"></a><h6>
<a name="id611115"></a> <a name="id1182083"></a>
<a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.example">Example</a> <a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="identifier">assert</span><span class="special">(</span><a href="pop_front.html" title="pop_front"><tt class="computeroutput"><span class="identifier">pop_front</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="pop_front.html" title="pop_front"><code class="computeroutput"><span class="identifier">pop_front</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -136,7 +136,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="pop_back.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="push_back.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="pop_back.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="push_back.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,37 +3,37 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>push_back</title> <title>push_back</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="pop_front.html" title="pop_front"> <link rel="prev" href="pop_front.html" title="pop_front">
<link rel="next" href="push_front.html" title="push_front"> <link rel="next" href="push_front.html" title="push_front">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="pop_front.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="push_front.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="pop_front.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="push_front.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.push_back"></a><a href="push_back.html" title="push_back">push_back</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.push_back"></a><a href="push_back.html" title="push_back">push_back</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.push_back.description"></a><h6> <a name="fusion.algorithms.transformation.functions.push_back.description"></a><h6>
<a name="id611299"></a> <a name="id1182247"></a>
<a href="push_back.html#fusion.algorithms.transformation.functions.push_back.description">Description</a> <a href="push_back.html#fusion.algorithms.transformation.functions.push_back.description">Description</a>
</h6> </h6>
<p> <p>
Returns a new sequence with an element added at the end. Returns a new sequence with an element added at the end.
</p> </p>
<a name="fusion.algorithms.transformation.functions.push_back.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.push_back.synopsis"></a><h6>
<a name="id611332"></a> <a name="id1182254"></a>
<a href="push_back.html#fusion.algorithms.transformation.functions.push_back.synopsis">Synopsis</a> <a href="push_back.html#fusion.algorithms.transformation.functions.push_back.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -41,11 +41,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</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">T</span> <span class="keyword">typename</span> <span class="identifier">T</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_back</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">push_back</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_back</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">push_back</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">t</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">t</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id611542"></a><p class="title"><b>Table<EFBFBD>1.71.<2E>Parameters</b></p> <a name="id1182459"></a><p class="title"><b>Table<EFBFBD>1.71.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -73,7 +73,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -92,7 +92,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">t</span></tt> <code class="computeroutput"><span class="identifier">t</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -110,44 +110,44 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.push_back.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.push_back.expression_semantics"></a><h6>
<a name="id611683"></a> <a name="id1182584"></a>
<a href="push_back.html#fusion.algorithms.transformation.functions.push_back.expression_semantics">Expression <a href="push_back.html#fusion.algorithms.transformation.functions.push_back.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">push_back</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">t</span><span class="special">);</span> <a href="push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">t</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing
all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>, all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>,
and new element <tt class="computeroutput"><span class="identifier">t</span></tt> appended and new element <code class="computeroutput"><span class="identifier">t</span></code> appended
to the end. The elements are in the same order as they were in <tt class="computeroutput"><span class="identifier">seq</span></tt>. to the end. The elements are in the same order as they were in <code class="computeroutput"><span class="identifier">seq</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.push_back.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.push_back.complexity"></a><h6>
<a name="id611827"></a> <a name="id1182711"></a>
<a href="push_back.html#fusion.algorithms.transformation.functions.push_back.complexity">Complexity</a> <a href="push_back.html#fusion.algorithms.transformation.functions.push_back.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.push_back.header"></a><h6> <a name="fusion.algorithms.transformation.functions.push_back.header"></a><h6>
<a name="id611858"></a> <a name="id1182740"></a>
<a href="push_back.html#fusion.algorithms.transformation.functions.push_back.header">Header</a> <a href="push_back.html#fusion.algorithms.transformation.functions.push_back.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">push_back</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">push_back</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.push_back.example"></a><h6> <a name="fusion.algorithms.transformation.functions.push_back.example"></a><h6>
<a name="id611966"></a> <a name="id1182834"></a>
<a href="push_back.html#fusion.algorithms.transformation.functions.push_back.example">Example</a> <a href="push_back.html#fusion.algorithms.transformation.functions.push_back.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="identifier">assert</span><span class="special">(</span><a href="push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">push_back</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">),</span><span class="number">4</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">,</span><span class="number">4</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">),</span><span class="number">4</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">,</span><span class="number">4</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -157,7 +157,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="pop_front.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="push_front.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="pop_front.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="push_front.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,37 +3,37 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>push_front</title> <title>push_front</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="push_back.html" title="push_back"> <link rel="prev" href="push_back.html" title="push_back">
<link rel="next" href="../metafunctions.html" title="Metafunctions"> <link rel="next" href="../metafunctions.html" title="Metafunctions">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="push_back.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="../metafunctions.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="push_back.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="../metafunctions.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.push_front"></a><a href="push_front.html" title="push_front">push_front</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.push_front"></a><a href="push_front.html" title="push_front">push_front</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.push_front.description"></a><h6> <a name="fusion.algorithms.transformation.functions.push_front.description"></a><h6>
<a name="id612181"></a> <a name="id1183026"></a>
<a href="push_front.html#fusion.algorithms.transformation.functions.push_front.description">Description</a> <a href="push_front.html#fusion.algorithms.transformation.functions.push_front.description">Description</a>
</h6> </h6>
<p> <p>
Returns a new sequence with an element added at the beginning. Returns a new sequence with an element added at the beginning.
</p> </p>
<a name="fusion.algorithms.transformation.functions.push_front.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.push_front.synopsis"></a><h6>
<a name="id612213"></a> <a name="id1183033"></a>
<a href="push_front.html#fusion.algorithms.transformation.functions.push_front.synopsis">Synopsis</a> <a href="push_front.html#fusion.algorithms.transformation.functions.push_front.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -41,11 +41,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</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">T</span> <span class="keyword">typename</span> <span class="identifier">T</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/push_front.html" title="push_front"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_front</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">push_front</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/push_front.html" title="push_front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_front</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">push_front</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">t</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">t</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id612423"></a><p class="title"><b>Table<EFBFBD>1.72.<2E>Parameters</b></p> <a name="id1183238"></a><p class="title"><b>Table<EFBFBD>1.72.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -73,7 +73,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -92,7 +92,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">t</span></tt> <code class="computeroutput"><span class="identifier">t</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -110,45 +110,45 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.push_front.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.push_front.expression_semantics"></a><h6>
<a name="id612563"></a> <a name="id1183363"></a>
<a href="push_front.html#fusion.algorithms.transformation.functions.push_front.expression_semantics">Expression <a href="push_front.html#fusion.algorithms.transformation.functions.push_front.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">push_back</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">t</span><span class="special">);</span> <a href="push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">t</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing
all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>, all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>,
and new element <tt class="computeroutput"><span class="identifier">t</span></tt> appended and new element <code class="computeroutput"><span class="identifier">t</span></code> appended
to the beginning. The elements are in the same order as they were in to the beginning. The elements are in the same order as they were in
<tt class="computeroutput"><span class="identifier">seq</span></tt>. <code class="computeroutput"><span class="identifier">seq</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.push_front.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.push_front.complexity"></a><h6>
<a name="id612710"></a> <a name="id1183493"></a>
<a href="push_front.html#fusion.algorithms.transformation.functions.push_front.complexity">Complexity</a> <a href="push_front.html#fusion.algorithms.transformation.functions.push_front.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.push_front.header"></a><h6> <a name="fusion.algorithms.transformation.functions.push_front.header"></a><h6>
<a name="id612742"></a> <a name="id1183521"></a>
<a href="push_front.html#fusion.algorithms.transformation.functions.push_front.header">Header</a> <a href="push_front.html#fusion.algorithms.transformation.functions.push_front.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">push_front</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">push_front</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.push_front.example"></a><h6> <a name="fusion.algorithms.transformation.functions.push_front.example"></a><h6>
<a name="id612850"></a> <a name="id1183616"></a>
<a href="push_front.html#fusion.algorithms.transformation.functions.push_front.example">Example</a> <a href="push_front.html#fusion.algorithms.transformation.functions.push_front.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="identifier">assert</span><span class="special">(</span><a href="push_front.html" title="push_front"><tt class="computeroutput"><span class="identifier">push_front</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">),</span><span class="number">0</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">0</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="number">3</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="push_front.html" title="push_front"><code class="computeroutput"><span class="identifier">push_front</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">),</span><span class="number">0</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">0</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="number">3</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -158,7 +158,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="push_back.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="../metafunctions.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="push_back.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="../metafunctions.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,30 +3,30 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>remove</title> <title>remove</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="replace_if.html" title="replace_if"> <link rel="prev" href="replace_if.html" title="replace_if">
<link rel="next" href="remove_if.html" title="remove_if"> <link rel="next" href="remove_if.html" title="remove_if">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="replace_if.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="remove_if.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="replace_if.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="remove_if.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.remove"></a><a href="remove.html" title="remove">remove</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.remove"></a><a href="remove.html" title="remove">remove</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.remove.description"></a><h6> <a name="fusion.algorithms.transformation.functions.remove.description"></a><h6>
<a name="id599638"></a> <a name="id1171926"></a>
<a href="remove.html#fusion.algorithms.transformation.functions.remove.description">Description</a> <a href="remove.html#fusion.algorithms.transformation.functions.remove.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,7 +34,7 @@
except those of a given type. except those of a given type.
</p> </p>
<a name="fusion.algorithms.transformation.functions.remove.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.remove.synopsis"></a><h6>
<a name="id599672"></a> <a name="id1171955"></a>
<a href="remove.html#fusion.algorithms.transformation.functions.remove.synopsis">Synopsis</a> <a href="remove.html#fusion.algorithms.transformation.functions.remove.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -42,10 +42,10 @@
<span class="keyword">typename</span> <span class="identifier">T</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">T</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Sequence</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/remove.html" title="remove"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">remove</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">replace</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/remove.html" title="remove"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">remove</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">replace</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id599857"></a><p class="title"><b>Table<EFBFBD>1.59.<2E>Parameters</b></p> <a name="id1172118"></a><p class="title"><b>Table<EFBFBD>1.59.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -73,7 +73,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -92,7 +92,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <code class="computeroutput"><span class="identifier">T</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -110,45 +110,45 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.remove.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.remove.expression_semantics"></a><h6>
<a name="id599996"></a> <a name="id1172244"></a>
<a href="remove.html#fusion.algorithms.transformation.functions.remove.expression_semantics">Expression <a href="remove.html#fusion.algorithms.transformation.functions.remove.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="remove.html" title="remove"><tt class="computeroutput"><span class="identifier">remove</span></tt></a><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">);</span> <a href="remove.html" title="remove"><code class="computeroutput"><span class="identifier">remove</span></code></a><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing
all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>, all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>,
in their original order, except those of type <tt class="computeroutput"><span class="identifier">T</span></tt>. in their original order, except those of type <code class="computeroutput"><span class="identifier">T</span></code>.
Equivalent to <tt class="computeroutput"><a href="remove_if.html" title="remove_if"><tt class="computeroutput"><span class="identifier">remove_if</span></tt></a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><span class="identifier">_</span><span class="special">,</span><span class="identifier">T</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span></tt>. Equivalent to <code class="computeroutput"><a href="remove_if.html" title="remove_if"><code class="computeroutput"><span class="identifier">remove_if</span></code></a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><span class="identifier">_</span><span class="special">,</span><span class="identifier">T</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.remove.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.remove.complexity"></a><h6>
<a name="id600212"></a> <a name="id1172434"></a>
<a href="remove.html#fusion.algorithms.transformation.functions.remove.complexity">Complexity</a> <a href="remove.html#fusion.algorithms.transformation.functions.remove.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.remove.header"></a><h6> <a name="fusion.algorithms.transformation.functions.remove.header"></a><h6>
<a name="id600244"></a> <a name="id1172463"></a>
<a href="remove.html#fusion.algorithms.transformation.functions.remove.header">Header</a> <a href="remove.html#fusion.algorithms.transformation.functions.remove.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">remove</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">remove</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.remove.example"></a><h6> <a name="fusion.algorithms.transformation.functions.remove.example"></a><h6>
<a name="id600352"></a> <a name="id1172558"></a>
<a href="remove.html#fusion.algorithms.transformation.functions.remove.example">Example</a> <a href="remove.html#fusion.algorithms.transformation.functions.remove.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">double</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2.0</span><span class="special">);</span> <span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">double</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2.0</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="remove.html" title="remove"><tt class="computeroutput"><span class="identifier">remove</span></tt></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="remove.html" title="remove"><code class="computeroutput"><span class="identifier">remove</span></code></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -158,7 +158,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="replace_if.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="remove_if.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="replace_if.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="remove_if.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,38 +3,38 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>remove_if</title> <title>remove_if</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="remove.html" title="remove"> <link rel="prev" href="remove.html" title="remove">
<link rel="next" href="reverse.html" title="reverse"> <link rel="next" href="reverse.html" title="reverse">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="remove.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="reverse.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="remove.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="reverse.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.remove_if"></a><a href="remove_if.html" title="remove_if">remove_if</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.remove_if"></a><a href="remove_if.html" title="remove_if">remove_if</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.remove_if.description"></a><h6> <a name="fusion.algorithms.transformation.functions.remove_if.description"></a><h6>
<a name="id600574"></a> <a name="id1172756"></a>
<a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.description">Description</a> <a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.description">Description</a>
</h6> </h6>
<p> <p>
Returns a new sequence, containing all the elements of the original except Returns a new sequence, containing all the elements of the original except
those where a given unary function object evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt>. those where a given unary function object evaluates to <code class="computeroutput"><span class="keyword">true</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.remove_if.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.remove_if.synopsis"></a><h6>
<a name="id600620"></a> <a name="id1172795"></a>
<a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.synopsis">Synopsis</a> <a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -42,10 +42,10 @@
<span class="keyword">typename</span> <span class="identifier">Pred</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Pred</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Sequence</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/remove_if.html" title="remove_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">remove_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">remove_if</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/remove_if.html" title="remove_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">remove_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">remove_if</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id600806"></a><p class="title"><b>Table<EFBFBD>1.60.<2E>Parameters</b></p> <a name="id1172959"></a><p class="title"><b>Table<EFBFBD>1.60.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -73,7 +73,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -92,7 +92,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Pred</span></tt> <code class="computeroutput"><span class="identifier">Pred</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -111,46 +111,46 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.remove_if.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.remove_if.expression_semantics"></a><h6>
<a name="id600952"></a> <a name="id1173092"></a>
<a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.expression_semantics">Expression <a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="remove_if.html" title="remove_if"><tt class="computeroutput"><span class="identifier">remove_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Pred</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">);</span> <a href="remove_if.html" title="remove_if"><code class="computeroutput"><span class="identifier">remove_if</span></code></a><span class="special">&lt;</span><span class="identifier">Pred</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing
all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>, all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>,
in their original order, except those elements with types for which in their original order, except those elements with types for which
<tt class="computeroutput"><span class="identifier">Pred</span></tt> evaluates to <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>. Equivalent to <tt class="computeroutput"><a href="filter.html" title="filter"><tt class="computeroutput"><span class="identifier">filter</span></tt></a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">not_</span><span class="special">&lt;</span><span class="identifier">Pred</span><span class="special">&gt;</span> <code class="computeroutput"><span class="identifier">Pred</span></code> evaluates to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>. Equivalent to <code class="computeroutput"><a href="filter.html" title="filter"><code class="computeroutput"><span class="identifier">filter</span></code></a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">not_</span><span class="special">&lt;</span><span class="identifier">Pred</span><span class="special">&gt;</span>
<span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span></tt>. <span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.remove_if.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.remove_if.complexity"></a><h6>
<a name="id601203"></a> <a name="id1173310"></a>
<a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.complexity">Complexity</a> <a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.remove_if.header"></a><h6> <a name="fusion.algorithms.transformation.functions.remove_if.header"></a><h6>
<a name="id601233"></a> <a name="id1173338"></a>
<a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.header">Header</a> <a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">remove_if</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">remove_if</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.remove_if.example"></a><h6> <a name="fusion.algorithms.transformation.functions.remove_if.example"></a><h6>
<a name="id601341"></a> <a name="id1173433"></a>
<a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.example">Example</a> <a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">double</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2.0</span><span class="special">);</span> <span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">double</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2.0</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="remove_if.html" title="remove_if"><tt class="computeroutput"><span class="identifier">remove_if</span></tt></a><span class="special">&lt;</span><span class="identifier">is_floating_point</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="remove_if.html" title="remove_if"><code class="computeroutput"><span class="identifier">remove_if</span></code></a><span class="special">&lt;</span><span class="identifier">is_floating_point</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -160,7 +160,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="remove.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="reverse.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="remove.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="reverse.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,30 +3,30 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>replace</title> <title>replace</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="transform.html" title="transform"> <link rel="prev" href="transform.html" title="transform">
<link rel="next" href="replace_if.html" title="replace_if"> <link rel="next" href="replace_if.html" title="replace_if">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="transform.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="replace_if.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="transform.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="replace_if.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.replace"></a><a href="replace.html" title="replace">replace</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.replace"></a><a href="replace.html" title="replace">replace</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.replace.description"></a><h6> <a name="fusion.algorithms.transformation.functions.replace.description"></a><h6>
<a name="id597429"></a> <a name="id1152497"></a>
<a href="replace.html#fusion.algorithms.transformation.functions.replace.description">Description</a> <a href="replace.html#fusion.algorithms.transformation.functions.replace.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,7 +34,7 @@
a new value. a new value.
</p> </p>
<a name="fusion.algorithms.transformation.functions.replace.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.replace.synopsis"></a><h6>
<a name="id597462"></a> <a name="id1152526"></a>
<a href="replace.html#fusion.algorithms.transformation.functions.replace.synopsis">Synopsis</a> <a href="replace.html#fusion.algorithms.transformation.functions.replace.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -42,11 +42,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</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">T</span> <span class="keyword">typename</span> <span class="identifier">T</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/replace.html" title="replace"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">replace</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/replace.html" title="replace"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">replace</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">old_value</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">new_value</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">old_value</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">new_value</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id597706"></a><p class="title"><b>Table<EFBFBD>1.57.<2E>Parameters</b></p> <a name="id1152741"></a><p class="title"><b>Table<EFBFBD>1.57.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -74,18 +74,18 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>, <tt class="computeroutput"><span class="identifier">e</span> <span class="special">==</span> <span class="identifier">old_value</span></tt> Sequence</a>, <code class="computeroutput"><span class="identifier">e</span> <span class="special">==</span> <span class="identifier">old_value</span></code>
is a valid expression, convertible to <tt class="computeroutput"><span class="keyword">bool</span></tt>, is a valid expression, convertible to <code class="computeroutput"><span class="keyword">bool</span></code>,
for each element <tt class="computeroutput"><span class="identifier">e</span></tt> for each element <code class="computeroutput"><span class="identifier">e</span></code>
in <tt class="computeroutput"><span class="identifier">seq</span></tt> with type in <code class="computeroutput"><span class="identifier">seq</span></code> with type
convertible to <tt class="computeroutput"><span class="identifier">T</span></tt> convertible to <code class="computeroutput"><span class="identifier">T</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -97,7 +97,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">old_value</span></tt> <code class="computeroutput"><span class="identifier">old_value</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -114,7 +114,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">new_value</span></tt> <code class="computeroutput"><span class="identifier">new_value</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -132,44 +132,44 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.replace.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.replace.expression_semantics"></a><h6>
<a name="id597954"></a> <a name="id1152962"></a>
<a href="replace.html#fusion.algorithms.transformation.functions.replace.expression_semantics">Expression <a href="replace.html#fusion.algorithms.transformation.functions.replace.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="replace.html" title="replace"><tt class="computeroutput"><span class="identifier">replace</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">old_value</span><span class="special">,</span> <span class="identifier">new_value</span><span class="special">);</span> <a href="replace.html" title="replace"><code class="computeroutput"><span class="identifier">replace</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">old_value</span><span class="special">,</span> <span class="identifier">new_value</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a new sequence with <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence with
all the values of <tt class="computeroutput"><span class="identifier">seq</span></tt> all the values of <code class="computeroutput"><span class="identifier">seq</span></code>
with <tt class="computeroutput"><span class="identifier">new_value</span></tt> assigned with <code class="computeroutput"><span class="identifier">new_value</span></code> assigned
to elements with the same type and equal to <tt class="computeroutput"><span class="identifier">old_value</span></tt>. to elements with the same type and equal to <code class="computeroutput"><span class="identifier">old_value</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.replace.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.replace.complexity"></a><h6>
<a name="id598111"></a> <a name="id1153100"></a>
<a href="replace.html#fusion.algorithms.transformation.functions.replace.complexity">Complexity</a> <a href="replace.html#fusion.algorithms.transformation.functions.replace.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.replace.header"></a><h6> <a name="fusion.algorithms.transformation.functions.replace.header"></a><h6>
<a name="id598143"></a> <a name="id1153128"></a>
<a href="replace.html#fusion.algorithms.transformation.functions.replace.header">Header</a> <a href="replace.html#fusion.algorithms.transformation.functions.replace.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">replace</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">replace</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.replace.example"></a><h6> <a name="fusion.algorithms.transformation.functions.replace.example"></a><h6>
<a name="id598251"></a> <a name="id1153223"></a>
<a href="replace.html#fusion.algorithms.transformation.functions.replace.example">Example</a> <a href="replace.html#fusion.algorithms.transformation.functions.replace.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="identifier">assert</span><span class="special">(</span><a href="replace.html" title="replace"><tt class="computeroutput"><span class="identifier">replace</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">),</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">3</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="replace.html" title="replace"><code class="computeroutput"><span class="identifier">replace</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">),</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">3</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -179,7 +179,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="transform.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="replace_if.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="transform.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="replace_if.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,39 +3,39 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>replace_if</title> <title>replace_if</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="replace.html" title="replace"> <link rel="prev" href="replace.html" title="replace">
<link rel="next" href="remove.html" title="remove"> <link rel="next" href="remove.html" title="remove">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="replace.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="remove.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="replace.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="remove.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.replace_if"></a><a href="replace_if.html" title="replace_if">replace_if</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.replace_if"></a><a href="replace_if.html" title="replace_if">replace_if</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.replace_if.description"></a><h6> <a name="fusion.algorithms.transformation.functions.replace_if.description"></a><h6>
<a name="id598449"></a> <a name="id1153400"></a>
<a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.description">Description</a> <a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.description">Description</a>
</h6> </h6>
<p> <p>
Replaces each element of a given sequence for which an unary function Replaces each element of a given sequence for which an unary function
object evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt> object evaluates to <code class="computeroutput"><span class="keyword">true</span></code>
replaced with a new value. replaced with a new value.
</p> </p>
<a name="fusion.algorithms.transformation.functions.replace_if.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.replace_if.synopsis"></a><h6>
<a name="id598494"></a> <a name="id1170916"></a>
<a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.synopsis">Synopsis</a> <a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -43,11 +43,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</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">F</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">F</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="keyword">typename</span> <span class="identifier">T</span><span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/replace_if.html" title="replace_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">replace_if</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">replace_if</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">new_value</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">new_value</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id598754"></a><p class="title"><b>Table<EFBFBD>1.58.<2E>Parameters</b></p> <a name="id1171144"></a><p class="title"><b>Table<EFBFBD>1.58.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -75,7 +75,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -94,14 +94,14 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <code class="computeroutput"><span class="identifier">f</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
A function object for which <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> is a valid expression, convertible A function object for which <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> is a valid expression, convertible
to <tt class="computeroutput"><span class="keyword">bool</span></tt>, for each to <code class="computeroutput"><span class="keyword">bool</span></code>, for each
element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt> element <code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -113,7 +113,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">new_value</span></tt> <code class="computeroutput"><span class="identifier">new_value</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -131,41 +131,41 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.replace_if.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.replace_if.expression_semantics"></a><h6>
<a name="id598994"></a> <a name="id1171356"></a>
<a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.expression_semantics">Expression <a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="replace_if.html" title="replace_if"><tt class="computeroutput"><span class="identifier">replace_if</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">,</span> <span class="identifier">new_value</span><span class="special">);</span> <a href="replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">replace_if</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">,</span> <span class="identifier">new_value</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a new sequence with <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence with
all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>, all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>,
with <tt class="computeroutput"><span class="identifier">new_value</span></tt> assigned with <code class="computeroutput"><span class="identifier">new_value</span></code> assigned
to each element for which <tt class="computeroutput"><span class="identifier">f</span></tt> to each element for which <code class="computeroutput"><span class="identifier">f</span></code>
evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt>. evaluates to <code class="computeroutput"><span class="keyword">true</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.replace_if.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.replace_if.complexity"></a><h6>
<a name="id599163"></a> <a name="id1171505"></a>
<a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.complexity">Complexity</a> <a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.replace_if.header"></a><h6> <a name="fusion.algorithms.transformation.functions.replace_if.header"></a><h6>
<a name="id599194"></a> <a name="id1171533"></a>
<a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.header">Header</a> <a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">replace_if</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">replace_if</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.replace_if.example"></a><h6> <a name="fusion.algorithms.transformation.functions.replace_if.example"></a><h6>
<a name="id599302"></a> <a name="id1171628"></a>
<a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.example">Example</a> <a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -178,7 +178,7 @@
<span class="special">}</span> <span class="special">}</span>
<span class="special">};</span> <span class="special">};</span>
<span class="special">...</span> <span class="special">...</span>
<span class="identifier">assert</span><span class="special">(</span><a href="replace_if.html" title="replace_if"><tt class="computeroutput"><span class="identifier">replace_if</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><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">odd</span><span class="special">(),</span> <span class="number">3</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">3</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="replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">replace_if</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">odd</span><span class="special">(),</span> <span class="number">3</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">3</span><span class="special">,</span><span class="number">2</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -188,7 +188,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="replace.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="remove.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="replace.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="remove.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,47 +3,47 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>reverse</title> <title>reverse</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="remove_if.html" title="remove_if"> <link rel="prev" href="remove_if.html" title="remove_if">
<link rel="next" href="clear.html" title="clear"> <link rel="next" href="clear.html" title="clear">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="remove_if.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="clear.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="remove_if.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="clear.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.reverse"></a><a href="reverse.html" title="reverse">reverse</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.reverse"></a><a href="reverse.html" title="reverse">reverse</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.reverse.description"></a><h6> <a name="fusion.algorithms.transformation.functions.reverse.description"></a><h6>
<a name="id601590"></a> <a name="id1173655"></a>
<a href="reverse.html#fusion.algorithms.transformation.functions.reverse.description">Description</a> <a href="reverse.html#fusion.algorithms.transformation.functions.reverse.description">Description</a>
</h6> </h6>
<p> <p>
Returns a new sequence with the elements of the original in reverse order. Returns a new sequence with the elements of the original in reverse order.
</p> </p>
<a name="fusion.algorithms.transformation.functions.reverse.synposis"></a><h6> <a name="fusion.algorithms.transformation.functions.reverse.synposis"></a><h6>
<a name="id601623"></a> <a name="id1173684"></a>
<a href="reverse.html#fusion.algorithms.transformation.functions.reverse.synposis">Synposis</a> <a href="reverse.html#fusion.algorithms.transformation.functions.reverse.synposis">Synposis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">template</span><span class="special">&lt;</span>
<span class="keyword">typename</span> <span class="identifier">Sequence</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/reverse.html" title="reverse"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">reverse</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">reverse</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/reverse.html" title="reverse"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">reverse</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">reverse</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id601782"></a><p class="title"><b>Table<EFBFBD>1.61.<2E>Parameters</b></p> <a name="id1173822"></a><p class="title"><b>Table<EFBFBD>1.61.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -70,7 +70,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -89,43 +89,43 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.reverse.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.reverse.expression_semantics"></a><h6>
<a name="id601885"></a> <a name="id1173916"></a>
<a href="reverse.html#fusion.algorithms.transformation.functions.reverse.expression_semantics">Expression <a href="reverse.html#fusion.algorithms.transformation.functions.reverse.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="reverse.html" title="reverse"><tt class="computeroutput"><span class="identifier">reverse</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span> <a href="reverse.html" title="reverse"><code class="computeroutput"><span class="identifier">reverse</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/bidirectional_sequence.html" title="Bidirectional <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/bidirectional_sequence.html" title="Bidirectional
Sequence">Bidirectional Sequence">Bidirectional
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a new sequence containing <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence containing
all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt> all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>
in reverse order. in reverse order.
</p> </p>
<a name="fusion.algorithms.transformation.functions.reverse.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.reverse.complexity"></a><h6>
<a name="id601995"></a> <a name="id1174013"></a>
<a href="reverse.html#fusion.algorithms.transformation.functions.reverse.complexity">Complexity</a> <a href="reverse.html#fusion.algorithms.transformation.functions.reverse.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.reverse.header"></a><h6> <a name="fusion.algorithms.transformation.functions.reverse.header"></a><h6>
<a name="id602027"></a> <a name="id1174041"></a>
<a href="reverse.html#fusion.algorithms.transformation.functions.reverse.header">Header</a> <a href="reverse.html#fusion.algorithms.transformation.functions.reverse.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">reverse</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">reverse</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.reverse.example"></a><h6> <a name="fusion.algorithms.transformation.functions.reverse.example"></a><h6>
<a name="id602134"></a> <a name="id1174136"></a>
<a href="reverse.html#fusion.algorithms.transformation.functions.reverse.example">Example</a> <a href="reverse.html#fusion.algorithms.transformation.functions.reverse.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="identifier">assert</span><span class="special">(</span><a href="reverse.html" title="reverse"><tt class="computeroutput"><span class="identifier">reverse</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">3</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">1</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="reverse.html" title="reverse"><code class="computeroutput"><span class="identifier">reverse</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">3</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">1</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -135,7 +135,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="remove_if.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="clear.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="remove_if.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="clear.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,41 +3,42 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>transform</title> <title>transform</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="filter_if.html" title="filter_if"> <link rel="prev" href="filter_if.html" title="filter_if">
<link rel="next" href="replace.html" title="replace"> <link rel="next" href="replace.html" title="replace">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="filter_if.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="replace.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="filter_if.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="replace.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.transform"></a><a href="transform.html" title="transform">transform</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.transform"></a><a href="transform.html" title="transform">transform</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.transform.description"></a><h6> <a name="fusion.algorithms.transformation.functions.transform.description"></a><h6>
<a name="id595437"></a> <a name="id1150832"></a>
<a href="transform.html#fusion.algorithms.transformation.functions.transform.description">Description</a> <a href="transform.html#fusion.algorithms.transformation.functions.transform.description">Description</a>
</h6> </h6>
<p> <p>
For a sequence <tt class="computeroutput"><span class="identifier">seq</span></tt> and For a sequence <code class="computeroutput"><span class="identifier">seq</span></code> and
function object or function pointer <tt class="computeroutput"><span class="identifier">f</span></tt>, <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
<tt class="computeroutput"><span class="identifier">transform</span></tt> returns a new Object">Polymorphic Function
sequence with elements created by applying <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> to each element of <tt class="computeroutput"><span class="identifier">e</span></tt> Object</a> <code class="computeroutput"><span class="identifier">F</span></code>, <code class="computeroutput"><span class="identifier">transform</span></code> returns a new sequence with
of <tt class="computeroutput"><span class="identifier">seq</span></tt>. elements created by applying <code class="computeroutput"><span class="identifier">F</span></code>
to each element of <code class="computeroutput"><span class="identifier">seq</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.transform.unary_version_synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.transform.unary_version_synopsis"></a><h6>
<a name="id595555"></a> <a name="id1150921"></a>
<a href="transform.html#fusion.algorithms.transformation.functions.transform.unary_version_synopsis">Unary <a href="transform.html#fusion.algorithms.transformation.functions.transform.unary_version_synopsis">Unary
version synopsis</a> version synopsis</a>
</h6> </h6>
@ -46,11 +47,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</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">F</span> <span class="keyword">typename</span> <span class="identifier">F</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/transform.html" title="transform"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">transform</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">transform</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">transform</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">transform</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id595761"></a><p class="title"><b>Table<EFBFBD>1.55.<2E>Parameters</b></p> <a name="id1151100"></a><p class="title"><b>Table<EFBFBD>1.55.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -78,7 +79,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -97,15 +98,15 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <code class="computeroutput"><span class="identifier">f</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> A model of unary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
is a valid expression for each element <tt class="computeroutput"><span class="identifier">e</span></tt> Object">Polymorphic
of <tt class="computeroutput"><span class="identifier">seq</span></tt>. <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">&lt;</span><span class="identifier">F</span><span class="special">(</span><span class="identifier">E</span><span class="special">)&gt;::</span><span class="identifier">type</span></tt> is the return type of <tt class="computeroutput"><span class="identifier">f</span></tt> when called with a value of Function Object</a> where <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> is a valid expression for each
each element type <tt class="computeroutput"><span class="identifier">E</span></tt>. element <code class="computeroutput"><span class="identifier">e</span></code> of <code class="computeroutput"><span class="identifier">seq</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -118,25 +119,25 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.transform.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.transform.expression_semantics"></a><h6>
<a name="id596034"></a> <a name="id1151277"></a>
<a href="transform.html#fusion.algorithms.transformation.functions.transform.expression_semantics">Expression <a href="transform.html#fusion.algorithms.transformation.functions.transform.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="transform.html" title="transform"><tt class="computeroutput"><span class="identifier">transform</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> <a href="transform.html" title="transform"><code class="computeroutput"><span class="identifier">transform</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing
the return values of <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> for each element <tt class="computeroutput"><span class="identifier">e</span></tt> the return values of <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> for each element <code class="computeroutput"><span class="identifier">e</span></code>
within <tt class="computeroutput"><span class="identifier">seq</span></tt>. within <code class="computeroutput"><span class="identifier">seq</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.transform.binary_version_synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.transform.binary_version_synopsis"></a><h6>
<a name="id596194"></a> <a name="id1151418"></a>
<a href="transform.html#fusion.algorithms.transformation.functions.transform.binary_version_synopsis">Binary <a href="transform.html#fusion.algorithms.transformation.functions.transform.binary_version_synopsis">Binary
version synopsis</a> version synopsis</a>
</h6> </h6>
@ -146,11 +147,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence2</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence2</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">F</span> <span class="keyword">typename</span> <span class="identifier">F</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/transform.html" title="transform"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">transform</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence1</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Sequence2</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">transform</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">transform</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence1</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Sequence2</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">transform</span><span class="special">(</span>
<span class="identifier">Sequence1</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">Sequence2</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq2</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">Sequence1</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">Sequence2</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq2</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id596462"></a><p class="title"><b>Table<EFBFBD>1.56.<2E>Parameters</b></p> <a name="id1151652"></a><p class="title"><b>Table<EFBFBD>1.56.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -178,7 +179,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq1</span></tt> <code class="computeroutput"><span class="identifier">seq1</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -197,7 +198,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq2</span></tt> <code class="computeroutput"><span class="identifier">seq2</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -216,16 +217,17 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <code class="computeroutput"><span class="identifier">f</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e1</span><span class="special">,</span><span class="identifier">e2</span><span class="special">)</span></tt> A model of binary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
is a valid expression for each pair of elements <tt class="computeroutput"><span class="identifier">e1</span></tt> Object">Polymorphic
of <tt class="computeroutput"><span class="identifier">seq1</span></tt> and <tt class="computeroutput"><span class="identifier">e2</span></tt> of <tt class="computeroutput"><span class="identifier">seq2</span></tt>. Function Object</a> where <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e1</span><span class="special">,</span> <span class="identifier">e2</span><span class="special">)</span></code> is a valid expression for each
<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">&lt;</span><span class="identifier">F</span><span class="special">(</span><span class="identifier">E1</span><span class="special">,</span><span class="identifier">E2</span><span class="special">)&gt;::</span><span class="identifier">type</span></tt> is the return type of <tt class="computeroutput"><span class="identifier">f</span></tt> when called with elements of pair of elements <code class="computeroutput"><span class="identifier">e1</span></code>
type <tt class="computeroutput"><span class="identifier">E1</span></tt> and <tt class="computeroutput"><span class="identifier">E2</span></tt> and <code class="computeroutput"><span class="identifier">e2</span></code> of <code class="computeroutput"><span class="identifier">seq1</span></code> and <code class="computeroutput"><span class="identifier">seq2</span></code>
respectively
</p> </p>
</td> </td>
<td> <td>
@ -238,45 +240,50 @@
</table> </table>
</div> </div>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing
the return values of <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e1</span><span class="special">,</span> <span class="identifier">e2</span><span class="special">)</span></tt> for each pair of elements <tt class="computeroutput"><span class="identifier">e1</span></tt> and <tt class="computeroutput"><span class="identifier">e2</span></tt> the return values of <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e1</span><span class="special">,</span> <span class="identifier">e2</span><span class="special">)</span></code> for each pair of elements <code class="computeroutput"><span class="identifier">e1</span></code> and <code class="computeroutput"><span class="identifier">e2</span></code>
within <tt class="computeroutput"><span class="identifier">seq1</span></tt> and <tt class="computeroutput"><span class="identifier">seq2</span></tt> respectively. within <code class="computeroutput"><span class="identifier">seq1</span></code> and <code class="computeroutput"><span class="identifier">seq2</span></code> respectively.
</p> </p>
<a name="fusion.algorithms.transformation.functions.transform.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.transform.complexity"></a><h6>
<a name="id596949"></a> <a name="id1152001"></a>
<a href="transform.html#fusion.algorithms.transformation.functions.transform.complexity">Complexity</a> <a href="transform.html#fusion.algorithms.transformation.functions.transform.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.transform.header"></a><h6> <a name="fusion.algorithms.transformation.functions.transform.header"></a><h6>
<a name="id596980"></a> <a name="id1152029"></a>
<a href="transform.html#fusion.algorithms.transformation.functions.transform.header">Header</a> <a href="transform.html#fusion.algorithms.transformation.functions.transform.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">transform</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">transform</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.transform.example"></a><h6> <a name="fusion.algorithms.transformation.functions.transform.example"></a><h6>
<a name="id597088"></a> <a name="id1152124"></a>
<a href="transform.html#fusion.algorithms.transformation.functions.transform.example">Example</a> <a href="transform.html#fusion.algorithms.transformation.functions.transform.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">struct</span> <span class="identifier">triple</span> <span class="keyword">struct</span> <span class="identifier">triple</span>
<span class="special">{</span> <span class="special">{</span>
<span class="keyword">typedef</span> <span class="keyword">int</span> <span class="identifier">result_type</span><span class="special">;</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">result</span>
<span class="special">{</span>
<span class="keyword">typedef</span> <span class="identifier">T</span> <span class="identifier">type</span><span class="special">;</span>
<span class="special">};</span>
<span class="keyword">int</span> <span class="keyword">operator</span><span class="special">()(</span><span class="keyword">int</span> <span class="identifier">t</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">&gt;</span>
<span class="identifier">T</span> <span class="keyword">operator</span><span class="special">()(</span><span class="identifier">T</span> <span class="identifier">t</span><span class="special">)</span> <span class="keyword">const</span>
<span class="special">{</span> <span class="special">{</span>
<span class="keyword">return</span> <span class="identifier">t</span> <span class="special">*</span> <span class="number">3</span><span class="special">;</span> <span class="keyword">return</span> <span class="identifier">t</span> <span class="special">*</span> <span class="number">3</span><span class="special">;</span>
<span class="special">};</span> <span class="special">};</span>
<span class="special">};</span> <span class="special">};</span>
<span class="special">...</span> <span class="special">...</span>
<span class="identifier">assert</span><span class="special">(</span><a href="transform.html" title="transform"><tt class="computeroutput"><span class="identifier">transform</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">),</span> <span class="identifier">triple</span><span class="special">())</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">3</span><span class="special">,</span><span class="number">6</span><span class="special">,</span><span class="number">9</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="transform.html" title="transform"><code class="computeroutput"><span class="identifier">transform</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">),</span> <span class="identifier">triple</span><span class="special">())</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">3</span><span class="special">,</span><span class="number">6</span><span class="special">,</span><span class="number">9</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -286,7 +293,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="filter_if.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="replace.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="filter_if.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="replace.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,30 +3,30 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>zip</title> <title>zip</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="join.html" title="join"> <link rel="prev" href="join.html" title="join">
<link rel="next" href="pop_back.html" title="pop_back"> <link rel="next" href="pop_back.html" title="pop_back">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="join.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="pop_back.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="join.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="pop_back.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.zip"></a><a href="zip.html" title="zip">zip</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.zip"></a><a href="zip.html" title="zip">zip</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.zip.description"></a><h6> <a name="fusion.algorithms.transformation.functions.zip.description"></a><h6>
<a name="id608584"></a> <a name="id1179844"></a>
<a href="zip.html#fusion.algorithms.transformation.functions.zip.description">Description</a> <a href="zip.html#fusion.algorithms.transformation.functions.zip.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,7 +34,7 @@
of the members of the component sequences. of the members of the component sequences.
</p> </p>
<a name="fusion.algorithms.transformation.functions.zip.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.zip.synopsis"></a><h6>
<a name="id608617"></a> <a name="id1179874"></a>
<a href="zip.html#fusion.algorithms.transformation.functions.zip.synopsis">Synopsis</a> <a href="zip.html#fusion.algorithms.transformation.functions.zip.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -44,11 +44,11 @@
<span class="special">...</span> <span class="special">...</span>
<span class="keyword">typename</span> <span class="identifier">SequenceN</span> <span class="keyword">typename</span> <span class="identifier">SequenceN</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/zip.html" title="zip"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">zip</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence1</span><span class="special">,</span> <span class="identifier">Sequence2</span><span class="special">,</span> <span class="special">...</span> <span class="identifier">SequenceN</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="keyword">typename</span> <a href="../metafunctions/zip.html" title="zip"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">zip</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence1</span><span class="special">,</span> <span class="identifier">Sequence2</span><span class="special">,</span> <span class="special">...</span> <span class="identifier">SequenceN</span><span class="special">&gt;::</span><span class="identifier">type</span>
<span class="identifier">zip</span><span class="special">(</span><span class="identifier">Sequence1</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">Sequence2</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq2</span><span class="special">,</span> <span class="special">...</span> <span class="identifier">SequenceN</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seqN</span><span class="special">);</span> <span class="identifier">zip</span><span class="special">(</span><span class="identifier">Sequence1</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">Sequence2</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq2</span><span class="special">,</span> <span class="special">...</span> <span class="identifier">SequenceN</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seqN</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id608902"></a><p class="title"><b>Table<EFBFBD>1.68.<2E>Parameters</b></p> <a name="id1180124"></a><p class="title"><b>Table<EFBFBD>1.68.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -75,7 +75,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq1</span></tt> to <tt class="computeroutput"><span class="identifier">seqN</span></tt> <code class="computeroutput"><span class="identifier">seq1</span></code> to <code class="computeroutput"><span class="identifier">seqN</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -94,50 +94,50 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.zip.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.zip.expression_semantics"></a><h6>
<a name="id609018"></a> <a name="id1180229"></a>
<a href="zip.html#fusion.algorithms.transformation.functions.zip.expression_semantics">Expression <a href="zip.html#fusion.algorithms.transformation.functions.zip.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="zip.html" title="zip"><tt class="computeroutput"><span class="identifier">zip</span></tt></a><span class="special">(</span><span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">seq2</span><span class="special">,</span> <span class="special">...</span> <span class="identifier">seqN</span><span class="special">);</span> <a href="zip.html" title="zip"><code class="computeroutput"><span class="identifier">zip</span></code></a><span class="special">(</span><span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">seq2</span><span class="special">,</span> <span class="special">...</span> <span class="identifier">seqN</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a sequence containing <span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing
tuples of elements from sequences <tt class="computeroutput"><span class="identifier">seq1</span></tt> tuples of elements from sequences <code class="computeroutput"><span class="identifier">seq1</span></code>
to <tt class="computeroutput"><span class="identifier">seqN</span></tt>. For example, to <code class="computeroutput"><span class="identifier">seqN</span></code>. For example,
applying zip to tuples <tt class="computeroutput"><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">)</span></tt> applying zip to tuples <code class="computeroutput"><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">3</span><span class="special">)</span></code>
and <tt class="computeroutput"><span class="special">(</span><span class="char">'a'</span><span class="special">,</span> <span class="char">'b'</span><span class="special">,</span> and <code class="computeroutput"><span class="special">(</span><span class="char">'a'</span><span class="special">,</span> <span class="char">'b'</span><span class="special">,</span>
<span class="char">'c'</span><span class="special">)</span></tt> <span class="char">'c'</span><span class="special">)</span></code>
would return <tt class="computeroutput"><span class="special">((</span><span class="number">1</span><span class="special">,</span> <span class="char">'a'</span><span class="special">),(</span><span class="number">2</span><span class="special">,</span> <span class="char">'b'</span><span class="special">),(</span><span class="number">3</span><span class="special">,</span> would return <code class="computeroutput"><span class="special">((</span><span class="number">1</span><span class="special">,</span> <span class="char">'a'</span><span class="special">),(</span><span class="number">2</span><span class="special">,</span> <span class="char">'b'</span><span class="special">),(</span><span class="number">3</span><span class="special">,</span>
<span class="char">'c'</span><span class="special">))</span></tt> <span class="char">'c'</span><span class="special">))</span></code>
</p> </p>
<a name="fusion.algorithms.transformation.functions.zip.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.zip.complexity"></a><h6>
<a name="id609327"></a> <a name="id1180501"></a>
<a href="zip.html#fusion.algorithms.transformation.functions.zip.complexity">Complexity</a> <a href="zip.html#fusion.algorithms.transformation.functions.zip.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.zip.header"></a><h6> <a name="fusion.algorithms.transformation.functions.zip.header"></a><h6>
<a name="id609359"></a> <a name="id1180529"></a>
<a href="zip.html#fusion.algorithms.transformation.functions.zip.header">Header</a> <a href="zip.html#fusion.algorithms.transformation.functions.zip.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">zip</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">zip</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.zip.example"></a><h6> <a name="fusion.algorithms.transformation.functions.zip.example"></a><h6>
<a name="id609465"></a> <a name="id1180623"></a>
<a href="zip.html#fusion.algorithms.transformation.functions.zip.example">Example</a> <a href="zip.html#fusion.algorithms.transformation.functions.zip.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">v1</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'a'</span><span class="special">);</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">v1</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'a'</span><span class="special">);</span>
<a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">v2</span><span class="special">(</span><span class="number">2</span><span class="special">,</span> <span class="char">'b'</span><span class="special">);</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">v2</span><span class="special">(</span><span class="number">2</span><span class="special">,</span> <span class="char">'b'</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="zip.html" title="zip"><tt class="computeroutput"><span class="identifier">zip</span></tt></a><span class="special">(</span><span class="identifier">v1</span><span class="special">,</span> <span class="identifier">v2</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">),</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="char">'a'</span><span class="special">,</span> <span class="char">'b'</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="zip.html" title="zip"><code class="computeroutput"><span class="identifier">zip</span></code></a><span class="special">(</span><span class="identifier">v1</span><span class="special">,</span> <span class="identifier">v2</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">),</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="char">'a'</span><span class="special">,</span> <span class="char">'b'</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -147,7 +147,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="join.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="pop_back.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="join.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="pop_back.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,24 +3,24 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Metafunctions</title> <title>Metafunctions</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../transformation.html" title="Transformation"> <link rel="up" href="../transformation.html" title="Transformation">
<link rel="prev" href="functions/push_front.html" title="push_front"> <link rel="prev" href="functions/push_front.html" title="push_front">
<link rel="next" href="metafunctions/filter.html" title="filter"> <link rel="next" href="metafunctions/filter.html" title="filter">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> <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="../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../libraries.htm">Libraries</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="../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="functions/push_front.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../transformation.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="metafunctions/filter.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="functions/push_front.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../transformation.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="metafunctions/filter.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
@ -54,7 +54,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="functions/push_front.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../transformation.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="metafunctions/filter.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="functions/push_front.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../transformation.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="metafunctions/filter.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,38 +3,38 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>clear</title> <title>clear</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="reverse.html" title="reverse"> <link rel="prev" href="reverse.html" title="reverse">
<link rel="next" href="erase.html" title="erase"> <link rel="next" href="erase.html" title="erase">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="reverse.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="erase.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="reverse.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="erase.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.clear"></a><a href="clear.html" title="clear">clear</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.clear"></a><a href="clear.html" title="clear">clear</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.clear.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.clear.description"></a><h6>
<a name="id619772"></a> <a name="id1206067"></a>
<a href="clear.html#fusion.algorithms.transformation.metafunctions.clear.description">Description</a> <a href="clear.html#fusion.algorithms.transformation.metafunctions.clear.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/clear.html" title="clear"><tt class="computeroutput"><span class="identifier">clear</span></tt></a>, given the input sequence Returns the result type of <a href="../functions/clear.html" title="clear"><code class="computeroutput"><span class="identifier">clear</span></code></a>, given the input sequence
type. type.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.clear.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.clear.synopsis"></a><h6>
<a name="id619822"></a> <a name="id1206112"></a>
<a href="clear.html#fusion.algorithms.transformation.metafunctions.clear.synopsis">Synopsis</a> <a href="clear.html#fusion.algorithms.transformation.metafunctions.clear.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id619924"></a><p class="title"><b>Table<EFBFBD>1.82.<2E>Parameters</b></p> <a name="id1206202"></a><p class="title"><b>Table<EFBFBD>1.81.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -74,7 +74,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -91,30 +91,30 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.clear.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.clear.expression_semantics"></a><h6>
<a name="id620020"></a> <a name="id1206287"></a>
<a href="clear.html#fusion.algorithms.transformation.metafunctions.clear.expression_semantics">Expression <a href="clear.html#fusion.algorithms.transformation.metafunctions.clear.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="clear.html" title="clear"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">clear</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="clear.html" title="clear"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">clear</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns an empty sequence. <span class="bold"><strong>Semantics</strong></span>: Returns an empty sequence.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.clear.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.clear.complexity"></a><h6>
<a name="id620134"></a> <a name="id1206386"></a>
<a href="clear.html#fusion.algorithms.transformation.metafunctions.clear.complexity">Complexity</a> <a href="clear.html#fusion.algorithms.transformation.metafunctions.clear.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.clear.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.clear.header"></a><h6>
<a name="id620166"></a> <a name="id1206414"></a>
<a href="clear.html#fusion.algorithms.transformation.metafunctions.clear.header">Header</a> <a href="clear.html#fusion.algorithms.transformation.metafunctions.clear.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -128,7 +128,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="reverse.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="erase.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="reverse.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="erase.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,38 +3,38 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>erase</title> <title>erase</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="clear.html" title="clear"> <link rel="prev" href="clear.html" title="clear">
<link rel="next" href="erase_key.html" title="erase_key"> <link rel="next" href="erase_key.html" title="erase_key">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="clear.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="erase_key.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="clear.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="erase_key.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.erase"></a><a href="erase.html" title="erase">erase</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.erase"></a><a href="erase.html" title="erase">erase</a></h5></div></div></div>
<p> <p>
Returns the result type of <a href="../functions/erase.html" title="erase"><tt class="computeroutput"><span class="identifier">erase</span></tt></a>, given the input sequence Returns the result type of <a href="../functions/erase.html" title="erase"><code class="computeroutput"><span class="identifier">erase</span></code></a>, given the input sequence
and range delimiting iterator types. and range delimiting iterator types.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.erase.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.erase.description"></a><h6>
<a name="id620320"></a> <a name="id1206551"></a>
<a href="erase.html#fusion.algorithms.transformation.metafunctions.erase.description">Description</a> <a href="erase.html#fusion.algorithms.transformation.metafunctions.erase.description">Description</a>
</h6> </h6>
<a name="fusion.algorithms.transformation.metafunctions.erase.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.erase.synopsis"></a><h6>
<a name="id620347"></a> <a name="id1206558"></a>
<a href="erase.html#fusion.algorithms.transformation.metafunctions.erase.synopsis">Synopsis</a> <a href="erase.html#fusion.algorithms.transformation.metafunctions.erase.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id620493"></a><p class="title"><b>Table<EFBFBD>1.83.<2E>Parameters</b></p> <a name="id1206703"></a><p class="title"><b>Table<EFBFBD>1.82.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -76,7 +76,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -95,7 +95,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">It1</span></tt> <code class="computeroutput"><span class="identifier">It1</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -114,7 +114,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">It2</span></tt> <code class="computeroutput"><span class="identifier">It2</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -134,44 +134,44 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.erase.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.erase.expression_semantics"></a><h6>
<a name="id620686"></a> <a name="id1206876"></a>
<a href="erase.html#fusion.algorithms.transformation.metafunctions.erase.expression_semantics">Expression <a href="erase.html#fusion.algorithms.transformation.metafunctions.erase.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="erase.html" title="erase"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">It1</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="erase.html" title="erase"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">It1</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a new sequence with <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence with
the element at <tt class="computeroutput"><span class="identifier">It1</span></tt> removed. the element at <code class="computeroutput"><span class="identifier">It1</span></code> removed.
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
<a href="erase.html" title="erase"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">It1</span><span class="special">,</span> <span class="identifier">It2</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="erase.html" title="erase"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">It1</span><span class="special">,</span> <span class="identifier">It2</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a new sequence with <span class="bold"><strong>Semantics</strong></span>: Returns a new sequence with
the elements between <tt class="computeroutput"><span class="identifier">It1</span></tt> the elements between <code class="computeroutput"><span class="identifier">It1</span></code>
and <tt class="computeroutput"><span class="identifier">It2</span></tt> removed. and <code class="computeroutput"><span class="identifier">It2</span></code> removed.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.erase.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.erase.complexity"></a><h6>
<a name="id620956"></a> <a name="id1207111"></a>
<a href="erase.html#fusion.algorithms.transformation.metafunctions.erase.complexity">Complexity</a> <a href="erase.html#fusion.algorithms.transformation.metafunctions.erase.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.erase.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.erase.header"></a><h6>
<a name="id620986"></a> <a name="id1207139"></a>
<a href="erase.html#fusion.algorithms.transformation.metafunctions.erase.header">Header</a> <a href="erase.html#fusion.algorithms.transformation.metafunctions.erase.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -185,7 +185,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="clear.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="erase_key.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="clear.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="erase_key.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,38 +3,38 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>erase_key</title> <title>erase_key</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="erase.html" title="erase"> <link rel="prev" href="erase.html" title="erase">
<link rel="next" href="insert.html" title="insert"> <link rel="next" href="insert.html" title="insert">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="erase.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="insert.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="erase.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="insert.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.erase_key"></a><a href="erase_key.html" title="erase_key">erase_key</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.erase_key"></a><a href="erase_key.html" title="erase_key">erase_key</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.erase_key.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.erase_key.description"></a><h6>
<a name="id621119"></a> <a name="id1207257"></a>
<a href="erase_key.html#fusion.algorithms.transformation.metafunctions.erase_key.description">Description</a> <a href="erase_key.html#fusion.algorithms.transformation.metafunctions.erase_key.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/erase_key.html" title="erase_key"><tt class="computeroutput"><span class="identifier">erase_key</span></tt></a>, given the sequence Returns the result type of <a href="../functions/erase_key.html" title="erase_key"><code class="computeroutput"><span class="identifier">erase_key</span></code></a>, given the sequence
and key types. and key types.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.erase_key.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.erase_key.synopsis"></a><h6>
<a name="id621171"></a> <a name="id1207304"></a>
<a href="erase_key.html#fusion.algorithms.transformation.metafunctions.erase_key.synopsis">Synopsis</a> <a href="erase_key.html#fusion.algorithms.transformation.metafunctions.erase_key.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id621291"></a><p class="title"><b>Table<EFBFBD>1.84.<2E>Parameters</b></p> <a name="id1207408"></a><p class="title"><b>Table<EFBFBD>1.83.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -76,7 +76,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -95,7 +95,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Key</span></tt> <code class="computeroutput"><span class="identifier">Key</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -113,32 +113,32 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.erase_key.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.erase_key.expression_semantics"></a><h6>
<a name="id621431"></a> <a name="id1207533"></a>
<a href="erase_key.html#fusion.algorithms.transformation.metafunctions.erase_key.expression_semantics">Expression <a href="erase_key.html#fusion.algorithms.transformation.metafunctions.erase_key.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="erase_key.html" title="erase_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase_key</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="erase_key.html" title="erase_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase_key</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/associative_sequence.html" title="Associative <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/associative_sequence.html" title="Associative
Sequence">Associative Sequence">Associative
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a sequence with the <span class="bold"><strong>Semantics</strong></span>: Returns a sequence with the
elements of <tt class="computeroutput"><span class="identifier">Sequence</span></tt>, elements of <code class="computeroutput"><span class="identifier">Sequence</span></code>,
except those with key <tt class="computeroutput"><span class="identifier">Key</span></tt>. except those with key <code class="computeroutput"><span class="identifier">Key</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.erase_key.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.erase_key.complexity"></a><h6>
<a name="id621580"></a> <a name="id1207666"></a>
<a href="erase_key.html#fusion.algorithms.transformation.metafunctions.erase_key.complexity">Complexity</a> <a href="erase_key.html#fusion.algorithms.transformation.metafunctions.erase_key.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.erase_key.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.erase_key.header"></a><h6>
<a name="id621611"></a> <a name="id1207673"></a>
<a href="erase_key.html#fusion.algorithms.transformation.metafunctions.erase_key.header">Header</a> <a href="erase_key.html#fusion.algorithms.transformation.metafunctions.erase_key.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -152,7 +152,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="erase.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="insert.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="erase.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="insert.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,38 +3,38 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>filter</title> <title>filter</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="../metafunctions.html" title="Metafunctions"> <link rel="prev" href="../metafunctions.html" title="Metafunctions">
<link rel="next" href="filter_if.html" title="filter_if"> <link rel="next" href="filter_if.html" title="filter_if">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../metafunctions.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="filter_if.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../metafunctions.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="filter_if.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.filter"></a><a href="filter.html" title="filter">filter</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.filter"></a><a href="filter.html" title="filter">filter</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.filter.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.filter.description"></a><h6>
<a name="id613083"></a> <a name="id1183824"></a>
<a href="filter.html#fusion.algorithms.transformation.metafunctions.filter.description">Description</a> <a href="filter.html#fusion.algorithms.transformation.metafunctions.filter.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/filter.html" title="filter"><tt class="computeroutput"><span class="identifier">filter</span></tt></a> given the sequence type Returns the result type of <a href="../functions/filter.html" title="filter"><code class="computeroutput"><span class="identifier">filter</span></code></a> given the sequence type
and type to retain. and type to retain.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.filter.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.filter.synopsis"></a><h6>
<a name="id613133"></a> <a name="id1183869"></a>
<a href="filter.html#fusion.algorithms.transformation.metafunctions.filter.synopsis">Synopsis</a> <a href="filter.html#fusion.algorithms.transformation.metafunctions.filter.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id613252"></a><p class="title"><b>Table<EFBFBD>1.73.<2E>Parameter</b></p> <a name="id1183974"></a><p class="title"><b>Table<EFBFBD>1.73.<2E>Parameter</b></p>
<table class="table" summary="Parameter"> <table class="table" summary="Parameter">
<colgroup> <colgroup>
<col> <col>
@ -76,7 +76,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -95,7 +95,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <code class="computeroutput"><span class="identifier">T</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -113,34 +113,34 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.filter.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.filter.expression_semantics"></a><h6>
<a name="id613393"></a> <a name="id1184100"></a>
<a href="filter.html#fusion.algorithms.transformation.metafunctions.filter.expression_semantics">Expression <a href="filter.html#fusion.algorithms.transformation.metafunctions.filter.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="filter.html" title="filter"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="filter.html" title="filter"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a sequence containing <span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing
the elements of <tt class="computeroutput"><span class="identifier">Sequence</span></tt> the elements of <code class="computeroutput"><span class="identifier">Sequence</span></code>
that are of type <tt class="computeroutput"><span class="identifier">T</span></tt>. Equivalent that are of type <code class="computeroutput"><span class="identifier">T</span></code>. Equivalent
to <tt class="computeroutput"><a href="filter_if.html" title="filter_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> to <code class="computeroutput"><a href="filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span></tt>. <span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.filter.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.filter.complexity"></a><h6>
<a name="id613656"></a> <a name="id1184330"></a>
<a href="filter.html#fusion.algorithms.transformation.metafunctions.filter.complexity">Complexity</a> <a href="filter.html#fusion.algorithms.transformation.metafunctions.filter.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.filter.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.filter.header"></a><h6>
<a name="id613688"></a> <a name="id1184337"></a>
<a href="filter.html#fusion.algorithms.transformation.metafunctions.filter.header">Header</a> <a href="filter.html#fusion.algorithms.transformation.metafunctions.filter.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -154,7 +154,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../metafunctions.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="filter_if.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../metafunctions.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="filter_if.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,39 +3,39 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>filter_if</title> <title>filter_if</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="filter.html" title="filter"> <link rel="prev" href="filter.html" title="filter">
<link rel="next" href="transform.html" title="transform"> <link rel="next" href="transform.html" title="transform">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="filter.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="transform.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="filter.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="transform.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.filter_if"></a><a href="filter_if.html" title="filter_if">filter_if</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.filter_if"></a><a href="filter_if.html" title="filter_if">filter_if</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.filter_if.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.filter_if.description"></a><h6>
<a name="id613818"></a> <a name="id1184473"></a>
<a href="filter_if.html#fusion.algorithms.transformation.metafunctions.filter_if.description">Description</a> <a href="filter_if.html#fusion.algorithms.transformation.metafunctions.filter_if.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/filter_if.html" title="filter_if"><tt class="computeroutput"><span class="identifier">filter_if</span></tt></a> given the sequence Returns the result type of <a href="../functions/filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">filter_if</span></code></a> given the sequence
and unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL and unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL
Lambda Expression</a> predicate type. Lambda Expression</a> predicate type.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.filter_if.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.filter_if.synopsis"></a><h6>
<a name="id613877"></a> <a name="id1184527"></a>
<a href="filter_if.html#fusion.algorithms.transformation.metafunctions.filter_if.synopsis">Synopsis</a> <a href="filter_if.html#fusion.algorithms.transformation.metafunctions.filter_if.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -49,7 +49,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id613998"></a><p class="title"><b>Table<EFBFBD>1.74.<2E>Parameter</b></p> <a name="id1184632"></a><p class="title"><b>Table<EFBFBD>1.74.<2E>Parameter</b></p>
<table class="table" summary="Parameter"> <table class="table" summary="Parameter">
<colgroup> <colgroup>
<col> <col>
@ -77,7 +77,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -96,7 +96,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Pred</span></tt> <code class="computeroutput"><span class="identifier">Pred</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -115,33 +115,33 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.filter_if.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.filter_if.expression_semantics"></a><h6>
<a name="id614143"></a> <a name="id1184764"></a>
<a href="filter_if.html#fusion.algorithms.transformation.metafunctions.filter_if.expression_semantics">Expression <a href="filter_if.html#fusion.algorithms.transformation.metafunctions.filter_if.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="filter_if.html" title="filter_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a sequence containing <span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing
the elements of <tt class="computeroutput"><span class="identifier">Sequence</span></tt> the elements of <code class="computeroutput"><span class="identifier">Sequence</span></code>
for which <tt class="computeroutput"><span class="identifier">Pred</span></tt> evaluates for which <code class="computeroutput"><span class="identifier">Pred</span></code> evaluates
to <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>. to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.filter_if.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.filter_if.complexity"></a><h6>
<a name="id614327"></a> <a name="id1184925"></a>
<a href="filter_if.html#fusion.algorithms.transformation.metafunctions.filter_if.complexity">Complexity</a> <a href="filter_if.html#fusion.algorithms.transformation.metafunctions.filter_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.filter_if.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.filter_if.header"></a><h6>
<a name="id614358"></a> <a name="id1184932"></a>
<a href="filter_if.html#fusion.algorithms.transformation.metafunctions.filter_if.header">Header</a> <a href="filter_if.html#fusion.algorithms.transformation.metafunctions.filter_if.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -155,7 +155,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="filter.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="transform.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="filter.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="transform.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,38 +3,38 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>insert</title> <title>insert</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="erase_key.html" title="erase_key"> <link rel="prev" href="erase_key.html" title="erase_key">
<link rel="next" href="insert_range.html" title="insert_range"> <link rel="next" href="insert_range.html" title="insert_range">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="erase_key.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="insert_range.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="erase_key.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="insert_range.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.insert"></a><a href="insert.html" title="insert">insert</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.insert"></a><a href="insert.html" title="insert">insert</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.insert.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.insert.description"></a><h6>
<a name="id621744"></a> <a name="id1207811"></a>
<a href="insert.html#fusion.algorithms.transformation.metafunctions.insert.description">Description</a> <a href="insert.html#fusion.algorithms.transformation.metafunctions.insert.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/insert.html" title="insert"><tt class="computeroutput"><span class="identifier">insert</span></tt></a>, given the sequence, Returns the result type of <a href="../functions/insert.html" title="insert"><code class="computeroutput"><span class="identifier">insert</span></code></a>, given the sequence,
position iterator and insertion types. position iterator and insertion types.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.insert.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.insert.synopsis"></a><h6>
<a name="id621796"></a> <a name="id1207856"></a>
<a href="insert.html#fusion.algorithms.transformation.metafunctions.insert.synopsis">Synopsis</a> <a href="insert.html#fusion.algorithms.transformation.metafunctions.insert.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -49,7 +49,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id621933"></a><p class="title"><b>Table<EFBFBD>1.85.<2E>Parameters</b></p> <a name="id1207977"></a><p class="title"><b>Table<EFBFBD>1.84.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -77,7 +77,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -96,7 +96,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Position</span></tt> <code class="computeroutput"><span class="identifier">Position</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -115,7 +115,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <code class="computeroutput"><span class="identifier">T</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -133,33 +133,33 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.insert.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.insert.expression_semantics"></a><h6>
<a name="id622119"></a> <a name="id1208142"></a>
<a href="insert.html#fusion.algorithms.transformation.metafunctions.insert.expression_semantics">Expression <a href="insert.html#fusion.algorithms.transformation.metafunctions.insert.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="insert.html" title="insert"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">insert</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Position</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="insert.html" title="insert"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">insert</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Position</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a sequence with an <span class="bold"><strong>Semantics</strong></span>: Returns a sequence with an
element of type <tt class="computeroutput"><span class="identifier">T</span></tt> inserted element of type <code class="computeroutput"><span class="identifier">T</span></code> inserted
at position <tt class="computeroutput"><span class="identifier">Position</span></tt> at position <code class="computeroutput"><span class="identifier">Position</span></code>
in <tt class="computeroutput"><span class="identifier">Sequence</span></tt>. in <code class="computeroutput"><span class="identifier">Sequence</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.insert.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.insert.complexity"></a><h6>
<a name="id622293"></a> <a name="id1208295"></a>
<a href="insert.html#fusion.algorithms.transformation.metafunctions.insert.complexity">Complexity</a> <a href="insert.html#fusion.algorithms.transformation.metafunctions.insert.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.insert.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.insert.header"></a><h6>
<a name="id622324"></a> <a name="id1208302"></a>
<a href="insert.html#fusion.algorithms.transformation.metafunctions.insert.header">Header</a> <a href="insert.html#fusion.algorithms.transformation.metafunctions.insert.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -173,7 +173,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="erase_key.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="insert_range.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="erase_key.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="insert_range.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,38 +3,38 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>insert_range</title> <title>insert_range</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="insert.html" title="insert"> <link rel="prev" href="insert.html" title="insert">
<link rel="next" href="join.html" title="join"> <link rel="next" href="join.html" title="join">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="insert.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="join.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="insert.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="join.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.insert_range"></a><a href="insert_range.html" title="insert_range">insert_range</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.insert_range"></a><a href="insert_range.html" title="insert_range">insert_range</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.insert_range.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.insert_range.description"></a><h6>
<a name="id622454"></a> <a name="id1208438"></a>
<a href="insert_range.html#fusion.algorithms.transformation.metafunctions.insert_range.description">Description</a> <a href="insert_range.html#fusion.algorithms.transformation.metafunctions.insert_range.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/insert_range.html" title="insert_range"><tt class="computeroutput"><span class="identifier">insert_range</span></tt></a>, given the input Returns the result type of <a href="../functions/insert_range.html" title="insert_range"><code class="computeroutput"><span class="identifier">insert_range</span></code></a>, given the input
sequence, position iterator and insertion range types. sequence, position iterator and insertion range types.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.insert_range.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.insert_range.synopsis"></a><h6>
<a name="id622507"></a> <a name="id1208485"></a>
<a href="insert_range.html#fusion.algorithms.transformation.metafunctions.insert_range.synopsis">Synopsis</a> <a href="insert_range.html#fusion.algorithms.transformation.metafunctions.insert_range.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -49,7 +49,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id622645"></a><p class="title"><b>Table<EFBFBD>1.86.<2E>Parameters</b></p> <a name="id1208606"></a><p class="title"><b>Table<EFBFBD>1.85.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -77,7 +77,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -96,7 +96,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Position</span></tt> <code class="computeroutput"><span class="identifier">Position</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -115,7 +115,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Range</span></tt> <code class="computeroutput"><span class="identifier">Range</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -135,33 +135,33 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.insert_range.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.insert_range.expression_semantics"></a><h6>
<a name="id622840"></a> <a name="id1208781"></a>
<a href="insert_range.html#fusion.algorithms.transformation.metafunctions.insert_range.expression_semantics">Expression <a href="insert_range.html#fusion.algorithms.transformation.metafunctions.insert_range.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="insert_range.html" title="insert_range"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">insert_range</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Position</span><span class="special">,</span> <span class="identifier">Range</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="insert_range.html" title="insert_range"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">insert_range</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Position</span><span class="special">,</span> <span class="identifier">Range</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a sequence with the <span class="bold"><strong>Semantics</strong></span>: Returns a sequence with the
elements of <tt class="computeroutput"><span class="identifier">Range</span></tt> inserted elements of <code class="computeroutput"><span class="identifier">Range</span></code> inserted
at position <tt class="computeroutput"><span class="identifier">Position</span></tt> at position <code class="computeroutput"><span class="identifier">Position</span></code>
into <tt class="computeroutput"><span class="identifier">Sequence</span></tt>. into <code class="computeroutput"><span class="identifier">Sequence</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.insert_range.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.insert_range.complexity"></a><h6>
<a name="id623014"></a> <a name="id1208935"></a>
<a href="insert_range.html#fusion.algorithms.transformation.metafunctions.insert_range.complexity">Complexity</a> <a href="insert_range.html#fusion.algorithms.transformation.metafunctions.insert_range.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.insert_range.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.insert_range.header"></a><h6>
<a name="id623045"></a> <a name="id1208964"></a>
<a href="insert_range.html#fusion.algorithms.transformation.metafunctions.insert_range.header">Header</a> <a href="insert_range.html#fusion.algorithms.transformation.metafunctions.insert_range.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -175,7 +175,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="insert.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="join.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="insert.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="join.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,37 +3,37 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>join</title> <title>join</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="insert_range.html" title="insert_range"> <link rel="prev" href="insert_range.html" title="insert_range">
<link rel="next" href="zip.html" title="zip"> <link rel="next" href="zip.html" title="zip">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="insert_range.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="zip.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="insert_range.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="zip.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.join"></a><a href="join.html" title="join">join</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.join"></a><a href="join.html" title="join">join</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.join.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.join.description"></a><h6>
<a name="id623176"></a> <a name="id1209077"></a>
<a href="join.html#fusion.algorithms.transformation.metafunctions.join.description">Description</a> <a href="join.html#fusion.algorithms.transformation.metafunctions.join.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result of joining 2 sequences, given the sequence types. Returns the result of joining 2 sequences, given the sequence types.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.join.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.join.synopsis"></a><h6>
<a name="id623208"></a> <a name="id1209106"></a>
<a href="join.html#fusion.algorithms.transformation.metafunctions.join.synopsis">Synopsis</a> <a href="join.html#fusion.algorithms.transformation.metafunctions.join.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -47,33 +47,33 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.metafunctions.join.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.join.expression_semantics"></a><h6>
<a name="id623338"></a> <a name="id1209222"></a>
<a href="join.html#fusion.algorithms.transformation.metafunctions.join.expression_semantics">Expression <a href="join.html#fusion.algorithms.transformation.metafunctions.join.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="join.html" title="join"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">join</span></tt></a><span class="special">&lt;</span><span class="identifier">LhSequence</span><span class="special">,</span> <span class="identifier">RhSequence</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="join.html" title="join"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">join</span></code></a><span class="special">&lt;</span><span class="identifier">LhSequence</span><span class="special">,</span> <span class="identifier">RhSequence</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a sequence containing <span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing
the elements of <tt class="computeroutput"><span class="identifier">LhSequence</span></tt> the elements of <code class="computeroutput"><span class="identifier">LhSequence</span></code>
followed by the elements of <tt class="computeroutput"><span class="identifier">RhSequence</span></tt>. followed by the elements of <code class="computeroutput"><span class="identifier">RhSequence</span></code>.
The order of the elements in the 2 sequences is preserved. The order of the elements in the 2 sequences is preserved.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.join.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.join.complexity"></a><h6>
<a name="id623488"></a> <a name="id1209354"></a>
<a href="join.html#fusion.algorithms.transformation.metafunctions.join.complexity">Complexity</a> <a href="join.html#fusion.algorithms.transformation.metafunctions.join.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.join.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.join.header"></a><h6>
<a name="id623519"></a> <a name="id1209382"></a>
<a href="join.html#fusion.algorithms.transformation.metafunctions.join.header">Header</a> <a href="join.html#fusion.algorithms.transformation.metafunctions.join.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -87,7 +87,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="insert_range.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="zip.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="insert_range.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="zip.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,38 +3,38 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>pop_back</title> <title>pop_back</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="zip.html" title="zip"> <link rel="prev" href="zip.html" title="zip">
<link rel="next" href="pop_front.html" title="pop_front"> <link rel="next" href="pop_front.html" title="pop_front">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="zip.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="pop_front.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="zip.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="pop_front.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.pop_back"></a><a href="pop_back.html" title="pop_back">pop_back</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.pop_back"></a><a href="pop_back.html" title="pop_back">pop_back</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.pop_back.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.pop_back.description"></a><h6>
<a name="id624310"></a> <a name="id1210085"></a>
<a href="pop_back.html#fusion.algorithms.transformation.metafunctions.pop_back.description">Description</a> <a href="pop_back.html#fusion.algorithms.transformation.metafunctions.pop_back.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/pop_back.html" title="pop_back"><tt class="computeroutput"><span class="identifier">pop_back</span></tt></a>, given the input sequence Returns the result type of <a href="../functions/pop_back.html" title="pop_back"><code class="computeroutput"><span class="identifier">pop_back</span></code></a>, given the input sequence
type. type.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.pop_back.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.pop_back.synopsis"></a><h6>
<a name="id625180"></a> <a name="id1210131"></a>
<a href="pop_back.html#fusion.algorithms.transformation.metafunctions.pop_back.synopsis">Synopsis</a> <a href="pop_back.html#fusion.algorithms.transformation.metafunctions.pop_back.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id387555"></a><p class="title"><b>Table<EFBFBD>1.87.<2E>Parameters</b></p> <a name="id1210211"></a><p class="title"><b>Table<EFBFBD>1.86.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -74,7 +74,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -93,32 +93,32 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.pop_back.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.pop_back.expression_semantics"></a><h6>
<a name="id385622"></a> <a name="id1210300"></a>
<a href="pop_back.html#fusion.algorithms.transformation.metafunctions.pop_back.expression_semantics">Expression <a href="pop_back.html#fusion.algorithms.transformation.metafunctions.pop_back.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="pop_back.html" title="pop_back"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_back</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="pop_back.html" title="pop_back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_back</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a sequence with all <span class="bold"><strong>Semantics</strong></span>: Returns a sequence with all
the elements of <tt class="computeroutput"><span class="identifier">Sequence</span></tt> the elements of <code class="computeroutput"><span class="identifier">Sequence</span></code>
except the last element. except the last element.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.pop_back.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.pop_back.complexity"></a><h6>
<a name="id626099"></a> <a name="id1210398"></a>
<a href="pop_back.html#fusion.algorithms.transformation.metafunctions.pop_back.complexity">Complexity</a> <a href="pop_back.html#fusion.algorithms.transformation.metafunctions.pop_back.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.pop_back.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.pop_back.header"></a><h6>
<a name="id626126"></a> <a name="id1210405"></a>
<a href="pop_back.html#fusion.algorithms.transformation.metafunctions.pop_back.header">Header</a> <a href="pop_back.html#fusion.algorithms.transformation.metafunctions.pop_back.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -132,7 +132,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="zip.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="pop_front.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="zip.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="pop_front.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,38 +3,38 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>pop_front</title> <title>pop_front</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="pop_back.html" title="pop_back"> <link rel="prev" href="pop_back.html" title="pop_back">
<link rel="next" href="push_back.html" title="push_back"> <link rel="next" href="push_back.html" title="push_back">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="pop_back.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="push_back.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="pop_back.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="push_back.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.pop_front"></a><a href="pop_front.html" title="pop_front">pop_front</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.pop_front"></a><a href="pop_front.html" title="pop_front">pop_front</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.pop_front.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.pop_front.description"></a><h6>
<a name="id626241"></a> <a name="id1210525"></a>
<a href="pop_front.html#fusion.algorithms.transformation.metafunctions.pop_front.description">Description</a> <a href="pop_front.html#fusion.algorithms.transformation.metafunctions.pop_front.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/pop_front.html" title="pop_front"><tt class="computeroutput"><span class="identifier">pop_front</span></tt></a>, given the input sequence Returns the result type of <a href="../functions/pop_front.html" title="pop_front"><code class="computeroutput"><span class="identifier">pop_front</span></code></a>, given the input sequence
type. type.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.pop_front.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.pop_front.synopsis"></a><h6>
<a name="id626286"></a> <a name="id1210566"></a>
<a href="pop_front.html#fusion.algorithms.transformation.metafunctions.pop_front.synopsis">Synopsis</a> <a href="pop_front.html#fusion.algorithms.transformation.metafunctions.pop_front.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id626378"></a><p class="title"><b>Table<EFBFBD>1.88.<2E>Parameters</b></p> <a name="id1210646"></a><p class="title"><b>Table<EFBFBD>1.87.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -74,7 +74,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -93,32 +93,32 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.pop_front.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.pop_front.expression_semantics"></a><h6>
<a name="id626477"></a> <a name="id1210734"></a>
<a href="pop_front.html#fusion.algorithms.transformation.metafunctions.pop_front.expression_semantics">Expression <a href="pop_front.html#fusion.algorithms.transformation.metafunctions.pop_front.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="pop_front.html" title="pop_front"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_front</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="pop_front.html" title="pop_front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_front</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a sequence with all <span class="bold"><strong>Semantics</strong></span>: Returns a sequence with all
the elements of <tt class="computeroutput"><span class="identifier">Sequence</span></tt> the elements of <code class="computeroutput"><span class="identifier">Sequence</span></code>
except the first element. except the first element.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.pop_front.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.pop_front.complexity"></a><h6>
<a name="id626590"></a> <a name="id1210833"></a>
<a href="pop_front.html#fusion.algorithms.transformation.metafunctions.pop_front.complexity">Complexity</a> <a href="pop_front.html#fusion.algorithms.transformation.metafunctions.pop_front.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.pop_front.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.pop_front.header"></a><h6>
<a name="id626617"></a> <a name="id1210840"></a>
<a href="pop_front.html#fusion.algorithms.transformation.metafunctions.pop_front.header">Header</a> <a href="pop_front.html#fusion.algorithms.transformation.metafunctions.pop_front.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -132,7 +132,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="pop_back.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="push_back.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="pop_back.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="push_back.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,38 +3,38 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>push_back</title> <title>push_back</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="pop_front.html" title="pop_front"> <link rel="prev" href="pop_front.html" title="pop_front">
<link rel="next" href="push_front.html" title="push_front"> <link rel="next" href="push_front.html" title="push_front">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="pop_front.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="push_front.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="pop_front.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="push_front.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.push_back"></a><a href="push_back.html" title="push_back">push_back</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.push_back"></a><a href="push_back.html" title="push_back">push_back</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.push_back.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.push_back.description"></a><h6>
<a name="id626733"></a> <a name="id1210960"></a>
<a href="push_back.html#fusion.algorithms.transformation.metafunctions.push_back.description">Description</a> <a href="push_back.html#fusion.algorithms.transformation.metafunctions.push_back.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">push_back</span></tt></a>, given the types of Returns the result type of <a href="../functions/push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a>, given the types of
the input sequence and element to push. the input sequence and element to push.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.push_back.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.push_back.synopsis"></a><h6>
<a name="id626779"></a> <a name="id1211001"></a>
<a href="push_back.html#fusion.algorithms.transformation.metafunctions.push_back.synopsis">Synopsis</a> <a href="push_back.html#fusion.algorithms.transformation.metafunctions.push_back.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id626887"></a><p class="title"><b>Table<EFBFBD>1.89.<2E>Parameters</b></p> <a name="id1211095"></a><p class="title"><b>Table<EFBFBD>1.88.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -76,7 +76,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -95,7 +95,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <code class="computeroutput"><span class="identifier">T</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -113,33 +113,33 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.push_back.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.push_back.expression_semantics"></a><h6>
<a name="id627022"></a> <a name="id1211214"></a>
<a href="push_back.html#fusion.algorithms.transformation.metafunctions.push_back.expression_semantics">Expression <a href="push_back.html#fusion.algorithms.transformation.metafunctions.push_back.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_back</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_back</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a sequence with the <span class="bold"><strong>Semantics</strong></span>: Returns a sequence with the
elements of <tt class="computeroutput"><span class="identifier">Sequence</span></tt> elements of <code class="computeroutput"><span class="identifier">Sequence</span></code>
and an element of type <tt class="computeroutput"><span class="identifier">T</span></tt> and an element of type <code class="computeroutput"><span class="identifier">T</span></code>
added to the end. added to the end.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.push_back.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.push_back.complexity"></a><h6>
<a name="id627154"></a> <a name="id1211330"></a>
<a href="push_back.html#fusion.algorithms.transformation.metafunctions.push_back.complexity">Complexity</a> <a href="push_back.html#fusion.algorithms.transformation.metafunctions.push_back.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.push_back.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.push_back.header"></a><h6>
<a name="id627181"></a> <a name="id1211337"></a>
<a href="push_back.html#fusion.algorithms.transformation.metafunctions.push_back.header">Header</a> <a href="push_back.html#fusion.algorithms.transformation.metafunctions.push_back.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -153,7 +153,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="pop_front.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="push_front.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="pop_front.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="push_front.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,38 +3,38 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>push_front</title> <title>push_front</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="push_back.html" title="push_back"> <link rel="prev" href="push_back.html" title="push_back">
<link rel="next" href="../../../tuples.html" title="Tuples"> <link rel="next" href="../../../tuples.html" title="Tuples">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="push_back.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="../../../tuples.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="push_back.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../../tuples.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.push_front"></a><a href="push_front.html" title="push_front">push_front</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.push_front"></a><a href="push_front.html" title="push_front">push_front</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.push_front.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.push_front.description"></a><h6>
<a name="id627296"></a> <a name="id1211457"></a>
<a href="push_front.html#fusion.algorithms.transformation.metafunctions.push_front.description">Description</a> <a href="push_front.html#fusion.algorithms.transformation.metafunctions.push_front.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/push_front.html" title="push_front"><tt class="computeroutput"><span class="identifier">push_front</span></tt></a>, given the types Returns the result type of <a href="../functions/push_front.html" title="push_front"><code class="computeroutput"><span class="identifier">push_front</span></code></a>, given the types
of the input sequence and element to push. of the input sequence and element to push.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.push_front.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.push_front.synopsis"></a><h6>
<a name="id627343"></a> <a name="id1211498"></a>
<a href="push_front.html#fusion.algorithms.transformation.metafunctions.push_front.synopsis">Synopsis</a> <a href="push_front.html#fusion.algorithms.transformation.metafunctions.push_front.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id627451"></a><p class="title"><b>Table<EFBFBD>1.90.<2E>Parameters</b></p> <a name="id1211592"></a><p class="title"><b>Table<EFBFBD>1.89.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -76,7 +76,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -95,7 +95,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <code class="computeroutput"><span class="identifier">T</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -113,33 +113,33 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.push_front.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.push_front.expression_semantics"></a><h6>
<a name="id627585"></a> <a name="id1211711"></a>
<a href="push_front.html#fusion.algorithms.transformation.metafunctions.push_front.expression_semantics">Expression <a href="push_front.html#fusion.algorithms.transformation.metafunctions.push_front.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="push_front.html" title="push_front"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_front</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="push_front.html" title="push_front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_front</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a sequence with the <span class="bold"><strong>Semantics</strong></span>: Returns a sequence with the
elements of <tt class="computeroutput"><span class="identifier">Sequence</span></tt> elements of <code class="computeroutput"><span class="identifier">Sequence</span></code>
and an element of type <tt class="computeroutput"><span class="identifier">T</span></tt> and an element of type <code class="computeroutput"><span class="identifier">T</span></code>
added to the beginning. added to the beginning.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.push_front.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.push_front.complexity"></a><h6>
<a name="id627717"></a> <a name="id1211827"></a>
<a href="push_front.html#fusion.algorithms.transformation.metafunctions.push_front.complexity">Complexity</a> <a href="push_front.html#fusion.algorithms.transformation.metafunctions.push_front.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.push_front.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.push_front.header"></a><h6>
<a name="id627744"></a> <a name="id1211853"></a>
<a href="push_front.html#fusion.algorithms.transformation.metafunctions.push_front.header">Header</a> <a href="push_front.html#fusion.algorithms.transformation.metafunctions.push_front.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -153,7 +153,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="push_back.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="../../../tuples.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="push_back.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../../tuples.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,38 +3,38 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>remove</title> <title>remove</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="replace_if.html" title="replace_if"> <link rel="prev" href="replace_if.html" title="replace_if">
<link rel="next" href="remove_if.html" title="remove_if"> <link rel="next" href="remove_if.html" title="remove_if">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="replace_if.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="remove_if.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="replace_if.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="remove_if.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.remove"></a><a href="remove.html" title="remove">remove</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.remove"></a><a href="remove.html" title="remove">remove</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.remove.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.remove.description"></a><h6>
<a name="id617791"></a> <a name="id1186835"></a>
<a href="remove.html#fusion.algorithms.transformation.metafunctions.remove.description">Description</a> <a href="remove.html#fusion.algorithms.transformation.metafunctions.remove.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/remove.html" title="remove"><tt class="computeroutput"><span class="identifier">remove</span></tt></a>, given the sequence and Returns the result type of <a href="../functions/remove.html" title="remove"><code class="computeroutput"><span class="identifier">remove</span></code></a>, given the sequence and
removal types. removal types.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.remove.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.remove.synopsis"></a><h6>
<a name="id617843"></a> <a name="id1186879"></a>
<a href="remove.html#fusion.algorithms.transformation.metafunctions.remove.synopsis">Synopsis</a> <a href="remove.html#fusion.algorithms.transformation.metafunctions.remove.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id617962"></a><p class="title"><b>Table<EFBFBD>1.79.<2E>Parameters</b></p> <a name="id1186985"></a><p class="title"><b>Table<EFBFBD>1.78.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -76,7 +76,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -95,7 +95,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <code class="computeroutput"><span class="identifier">T</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -113,34 +113,34 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.remove.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.remove.expression_semantics"></a><h6>
<a name="id618101"></a> <a name="id1187110"></a>
<a href="remove.html#fusion.algorithms.transformation.metafunctions.remove.expression_semantics">Expression <a href="remove.html#fusion.algorithms.transformation.metafunctions.remove.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="remove.html" title="remove"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">remove</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="remove.html" title="remove"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">remove</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a sequence containing <span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing
the elements of <tt class="computeroutput"><span class="identifier">Sequence</span></tt> the elements of <code class="computeroutput"><span class="identifier">Sequence</span></code>
not of type <tt class="computeroutput"><span class="identifier">T</span></tt>. Equivalent not of type <code class="computeroutput"><span class="identifier">T</span></code>. Equivalent
to <tt class="computeroutput"><a href="replace_if.html" title="replace_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> to <code class="computeroutput"><a href="replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span></tt>. <span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.remove.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.remove.complexity"></a><h6>
<a name="id618364"></a> <a name="id1187340"></a>
<a href="remove.html#fusion.algorithms.transformation.metafunctions.remove.complexity">Complexity</a> <a href="remove.html#fusion.algorithms.transformation.metafunctions.remove.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.remove.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.remove.header"></a><h6>
<a name="id618395"></a> <a name="id1187347"></a>
<a href="remove.html#fusion.algorithms.transformation.metafunctions.remove.header">Header</a> <a href="remove.html#fusion.algorithms.transformation.metafunctions.remove.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -154,7 +154,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="replace_if.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="remove_if.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="replace_if.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="remove_if.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,39 +3,39 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>remove_if</title> <title>remove_if</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="remove.html" title="remove"> <link rel="prev" href="remove.html" title="remove">
<link rel="next" href="reverse.html" title="reverse"> <link rel="next" href="reverse.html" title="reverse">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="remove.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="reverse.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="remove.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="reverse.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.remove_if"></a><a href="remove_if.html" title="remove_if">remove_if</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.remove_if"></a><a href="remove_if.html" title="remove_if">remove_if</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.remove_if.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.remove_if.description"></a><h6>
<a name="id618525"></a> <a name="id1187483"></a>
<a href="remove_if.html#fusion.algorithms.transformation.metafunctions.remove_if.description">Description</a> <a href="remove_if.html#fusion.algorithms.transformation.metafunctions.remove_if.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/remove_if.html" title="remove_if"><tt class="computeroutput"><span class="identifier">remove_if</span></tt></a>, given the input sequence Returns the result type of <a href="../functions/remove_if.html" title="remove_if"><code class="computeroutput"><span class="identifier">remove_if</span></code></a>, given the input sequence
and unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL and unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL
Lambda Expression</a> predicate types. Lambda Expression</a> predicate types.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.remove_if.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.remove_if.synopsis"></a><h6>
<a name="id618583"></a> <a name="id1187537"></a>
<a href="remove_if.html#fusion.algorithms.transformation.metafunctions.remove_if.synopsis">Synopsis</a> <a href="remove_if.html#fusion.algorithms.transformation.metafunctions.remove_if.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -49,7 +49,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id618704"></a><p class="title"><b>Table<EFBFBD>1.80.<2E>Parameters</b></p> <a name="id1187642"></a><p class="title"><b>Table<EFBFBD>1.79.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -77,7 +77,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -96,7 +96,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Pred</span></tt> <code class="computeroutput"><span class="identifier">Pred</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -107,7 +107,7 @@
</td> </td>
<td> <td>
<p> <p>
Remove elements which evaluate to <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt> Remove elements which evaluate to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>
</p> </p>
</td> </td>
</tr> </tr>
@ -115,33 +115,33 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.remove_if.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.remove_if.expression_semantics"></a><h6>
<a name="id618882"></a> <a name="id1187803"></a>
<a href="remove_if.html#fusion.algorithms.transformation.metafunctions.remove_if.expression_semantics">Expression <a href="remove_if.html#fusion.algorithms.transformation.metafunctions.remove_if.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="remove_if.html" title="remove_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">remove_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="remove_if.html" title="remove_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">remove_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a sequence containing <span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing
the elements of <tt class="computeroutput"><span class="identifier">Sequence</span></tt> the elements of <code class="computeroutput"><span class="identifier">Sequence</span></code>
for which <tt class="computeroutput"><span class="identifier">Pred</span></tt> evaluates for which <code class="computeroutput"><span class="identifier">Pred</span></code> evaluates
to <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></tt>. to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.remove_if.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.remove_if.complexity"></a><h6>
<a name="id619066"></a> <a name="id1187963"></a>
<a href="remove_if.html#fusion.algorithms.transformation.metafunctions.remove_if.complexity">Complexity</a> <a href="remove_if.html#fusion.algorithms.transformation.metafunctions.remove_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.remove_if.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.remove_if.header"></a><h6>
<a name="id619097"></a> <a name="id1187970"></a>
<a href="remove_if.html#fusion.algorithms.transformation.metafunctions.remove_if.header">Header</a> <a href="remove_if.html#fusion.algorithms.transformation.metafunctions.remove_if.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -155,7 +155,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="remove.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="reverse.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="remove.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="reverse.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,38 +3,38 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>replace</title> <title>replace</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="transform.html" title="transform"> <link rel="prev" href="transform.html" title="transform">
<link rel="next" href="replace_if.html" title="replace_if"> <link rel="next" href="replace_if.html" title="replace_if">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="transform.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="replace_if.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="transform.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="replace_if.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.replace"></a><a href="replace.html" title="replace">replace</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.replace"></a><a href="replace.html" title="replace">replace</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.replace.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.replace.description"></a><h6>
<a name="id616479"></a> <a name="id1185672"></a>
<a href="replace.html#fusion.algorithms.transformation.metafunctions.replace.description">Description</a> <a href="replace.html#fusion.algorithms.transformation.metafunctions.replace.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/replace.html" title="replace"><tt class="computeroutput"><span class="identifier">replace</span></tt></a>, given the types of Returns the result type of <a href="../functions/replace.html" title="replace"><code class="computeroutput"><span class="identifier">replace</span></code></a>, given the types of
the input sequence and element to replace. the input sequence and element to replace.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.replace.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.replace.synopsis"></a><h6>
<a name="id616530"></a> <a name="id1185717"></a>
<a href="replace.html#fusion.algorithms.transformation.metafunctions.replace.synopsis">Synopsis</a> <a href="replace.html#fusion.algorithms.transformation.metafunctions.replace.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id616649"></a><p class="title"><b>Table<EFBFBD>1.77.<2E>Parameters</b></p> <a name="id1185822"></a><p class="title"><b>Table<EFBFBD>1.76.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -76,7 +76,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -95,7 +95,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <code class="computeroutput"><span class="identifier">T</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -113,31 +113,31 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.replace.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.replace.expression_semantics"></a><h6>
<a name="id616791"></a> <a name="id1185948"></a>
<a href="replace.html#fusion.algorithms.transformation.metafunctions.replace.expression_semantics">Expression <a href="replace.html#fusion.algorithms.transformation.metafunctions.replace.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="replace.html" title="replace"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="replace.html" title="replace"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns the return type of <span class="bold"><strong>Semantics</strong></span>: Returns the return type of
<a href="../functions/replace.html" title="replace"><tt class="computeroutput"><span class="identifier">replace</span></tt></a>. <a href="../functions/replace.html" title="replace"><code class="computeroutput"><span class="identifier">replace</span></code></a>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.replace.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.replace.complexity"></a><h6>
<a name="id616934"></a> <a name="id1186074"></a>
<a href="replace.html#fusion.algorithms.transformation.metafunctions.replace.complexity">Complexity</a> <a href="replace.html#fusion.algorithms.transformation.metafunctions.replace.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.replace.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.replace.header"></a><h6>
<a name="id616965"></a> <a name="id1186082"></a>
<a href="replace.html#fusion.algorithms.transformation.metafunctions.replace.header">Header</a> <a href="replace.html#fusion.algorithms.transformation.metafunctions.replace.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -151,7 +151,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="transform.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="replace_if.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="transform.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="replace_if.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,40 +3,40 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>replace_if</title> <title>replace_if</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="replace.html" title="replace"> <link rel="prev" href="replace.html" title="replace">
<link rel="next" href="remove.html" title="remove"> <link rel="next" href="remove.html" title="remove">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="replace.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="remove.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="replace.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="remove.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.replace_if"></a><a href="replace_if.html" title="replace_if">replace_if</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.replace_if"></a><a href="replace_if.html" title="replace_if">replace_if</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.replace_if.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.replace_if.description"></a><h6>
<a name="id617095"></a> <a name="id1186217"></a>
<a href="replace_if.html#fusion.algorithms.transformation.metafunctions.replace_if.description">Description</a> <a href="replace_if.html#fusion.algorithms.transformation.metafunctions.replace_if.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/replace_if.html" title="replace_if"><tt class="computeroutput"><span class="identifier">replace_if</span></tt></a>, given the types Returns the result type of <a href="../functions/replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">replace_if</span></code></a>, given the types
of the sequence, <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function of the sequence, <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> predicate and replacement object. Function Object</a> predicate and replacement object.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.replace_if.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.replace_if.synopsis"></a><h6>
<a name="id617155"></a> <a name="id1186271"></a>
<a href="replace_if.html#fusion.algorithms.transformation.metafunctions.replace_if.synopsis">Synopsis</a> <a href="replace_if.html#fusion.algorithms.transformation.metafunctions.replace_if.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -50,7 +50,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id617292"></a><p class="title"><b>Table<EFBFBD>1.78.<2E>Parameters</b></p> <a name="id1186390"></a><p class="title"><b>Table<EFBFBD>1.77.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -78,7 +78,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -97,7 +97,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">F</span></tt> <code class="computeroutput"><span class="identifier">F</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -116,7 +116,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <code class="computeroutput"><span class="identifier">T</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -134,31 +134,31 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.replace_if.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.replace_if.expression_semantics"></a><h6>
<a name="id617476"></a> <a name="id1186556"></a>
<a href="replace_if.html#fusion.algorithms.transformation.metafunctions.replace_if.expression_semantics">Expression <a href="replace_if.html#fusion.algorithms.transformation.metafunctions.replace_if.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="replace_if.html" title="replace_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">F</span><span class="special">,</span><span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">F</span><span class="special">,</span><span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns the return type of <span class="bold"><strong>Semantics</strong></span>: Returns the return type of
<a href="../functions/replace_if.html" title="replace_if"><tt class="computeroutput"><span class="identifier">replace_if</span></tt></a>. <a href="../functions/replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">replace_if</span></code></a>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.replace_if.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.replace_if.complexity"></a><h6>
<a name="id617630"></a> <a name="id1186690"></a>
<a href="replace_if.html#fusion.algorithms.transformation.metafunctions.replace_if.complexity">Complexity</a> <a href="replace_if.html#fusion.algorithms.transformation.metafunctions.replace_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.replace_if.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.replace_if.header"></a><h6>
<a name="id617661"></a> <a name="id1186720"></a>
<a href="replace_if.html#fusion.algorithms.transformation.metafunctions.replace_if.header">Header</a> <a href="replace_if.html#fusion.algorithms.transformation.metafunctions.replace_if.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -172,7 +172,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="replace.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="remove.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="replace.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="remove.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,38 +3,38 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>reverse</title> <title>reverse</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="remove_if.html" title="remove_if"> <link rel="prev" href="remove_if.html" title="remove_if">
<link rel="next" href="clear.html" title="clear"> <link rel="next" href="clear.html" title="clear">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="remove_if.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="clear.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="remove_if.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="clear.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.reverse"></a><a href="reverse.html" title="reverse">reverse</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.reverse"></a><a href="reverse.html" title="reverse">reverse</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.reverse.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.reverse.description"></a><h6>
<a name="id619227"></a> <a name="id1188106"></a>
<a href="reverse.html#fusion.algorithms.transformation.metafunctions.reverse.description">Description</a> <a href="reverse.html#fusion.algorithms.transformation.metafunctions.reverse.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/reverse.html" title="reverse"><tt class="computeroutput"><span class="identifier">reverse</span></tt></a>, given the input sequence Returns the result type of <a href="../functions/reverse.html" title="reverse"><code class="computeroutput"><span class="identifier">reverse</span></code></a>, given the input sequence
type. type.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.reverse.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.reverse.synopsis"></a><h6>
<a name="id619278"></a> <a name="id1188151"></a>
<a href="reverse.html#fusion.algorithms.transformation.metafunctions.reverse.synopsis">Synopsis</a> <a href="reverse.html#fusion.algorithms.transformation.metafunctions.reverse.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id619380"></a><p class="title"><b>Table<EFBFBD>1.81.<2E>Parameters</b></p> <a name="id1188241"></a><p class="title"><b>Table<EFBFBD>1.80.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -74,7 +74,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -93,31 +93,31 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.reverse.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.reverse.expression_semantics"></a><h6>
<a name="id619485"></a> <a name="id1188335"></a>
<a href="reverse.html#fusion.algorithms.transformation.metafunctions.reverse.expression_semantics">Expression <a href="reverse.html#fusion.algorithms.transformation.metafunctions.reverse.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="reverse.html" title="reverse"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">reverse</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="reverse.html" title="reverse"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">reverse</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/bidirectional_sequence.html" title="Bidirectional <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/bidirectional_sequence.html" title="Bidirectional
Sequence">Bidirectional Sequence">Bidirectional
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a sequence with the <span class="bold"><strong>Semantics</strong></span>: Returns a sequence with the
elements in the reverse order to <tt class="computeroutput"><span class="identifier">Sequence</span></tt>. elements in the reverse order to <code class="computeroutput"><span class="identifier">Sequence</span></code>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.reverse.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.reverse.complexity"></a><h6>
<a name="id619611"></a> <a name="id1205924"></a>
<a href="reverse.html#fusion.algorithms.transformation.metafunctions.reverse.complexity">Complexity</a> <a href="reverse.html#fusion.algorithms.transformation.metafunctions.reverse.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.reverse.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.reverse.header"></a><h6>
<a name="id619642"></a> <a name="id1205931"></a>
<a href="reverse.html#fusion.algorithms.transformation.metafunctions.reverse.header">Header</a> <a href="reverse.html#fusion.algorithms.transformation.metafunctions.reverse.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -131,7 +131,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="remove_if.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="clear.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="remove_if.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="clear.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,54 +3,54 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>transform</title> <title>transform</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="filter_if.html" title="filter_if"> <link rel="prev" href="filter_if.html" title="filter_if">
<link rel="next" href="replace.html" title="replace"> <link rel="next" href="replace.html" title="replace">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="filter_if.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="replace.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="filter_if.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="replace.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.transform"></a><a href="transform.html" title="transform">transform</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.transform"></a><a href="transform.html" title="transform">transform</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.transform.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.transform.description"></a><h6>
<a name="id614488"></a> <a name="id1185068"></a>
<a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.description">Description</a> <a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.description">Description</a>
</h6> </h6>
<p> <p>
For a sequence <tt class="computeroutput"><span class="identifier">seq</span></tt> and Returns the result of type <a href="../functions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">transform</span></code></a>, given the sequence
function object or function pointer <tt class="computeroutput"><span class="identifier">f</span></tt>, and <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
<tt class="computeroutput"><span class="identifier">transform</span></tt> returns a new Object">Polymorphic Function
sequence with elements created by applying <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> to each element of <tt class="computeroutput"><span class="identifier">e</span></tt> Object</a> types.
of <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.transform.unary_version_synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.transform.synopsis"></a><h6>
<a name="id614606"></a> <a name="id1185122"></a>
<a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.unary_version_synopsis">Unary <a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.synopsis">Synopsis</a>
version synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">template</span><span class="special">&lt;</span>
<span class="keyword">typename</span> <span class="identifier">Sequence</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">F</span> <span class="keyword">typename</span> <span class="identifier">F</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="transform.html" title="transform"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">transform</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">transform</span><span class="special">(</span> <span class="keyword">struct</span> <span class="identifier">transform</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> <span class="special">{</span>
<span class="keyword">typedef</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">type</span><span class="special">;</span>
<span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id614810"></a><p class="title"><b>Table<EFBFBD>1.75.<2E>Parameters</b></p> <a name="id1185227"></a><p class="title"><b>Table<EFBFBD>1.75.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -78,7 +78,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -97,20 +97,19 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <code class="computeroutput"><span class="identifier">F</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> A model of unary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
is a valid expression for each element <tt class="computeroutput"><span class="identifier">e</span></tt> Object">Polymorphic
of <tt class="computeroutput"><span class="identifier">seq</span></tt>. <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">&lt;</span><span class="identifier">F</span><span class="special">(</span><span class="identifier">E</span><span class="special">)&gt;::</span><span class="identifier">type</span></tt> is the return type of <tt class="computeroutput"><span class="identifier">f</span></tt> when called with a value of Function Object</a>
each element type <tt class="computeroutput"><span class="identifier">E</span></tt>.
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Transformation function Transformation function object
</p> </p>
</td> </td>
</tr> </tr>
@ -118,166 +117,36 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.transform.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.transform.expression_semantics"></a><h6>
<a name="id615083"></a> <a name="id1185361"></a>
<a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.expression_semantics">Expression <a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="../functions/transform.html" title="transform"><tt class="computeroutput"><span class="identifier">transform</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> <a href="transform.html" title="transform"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">transform</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward
Sequence</a>
</p>
<p>
<span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing
the return values of <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> for each element <tt class="computeroutput"><span class="identifier">e</span></tt>
within <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p>
<a name="fusion.algorithms.transformation.metafunctions.transform.binary_version_synopsis"></a><h6>
<a name="id615244"></a>
<a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.binary_version_synopsis">Binary
version synopsis</a>
</h6>
<pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span>
<span class="keyword">typename</span> <span class="identifier">Sequence1</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Sequence2</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">F</span>
<span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="transform.html" title="transform"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">transform</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence1</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Sequence2</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">transform</span><span class="special">(</span>
<span class="identifier">Sequence1</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">Sequence2</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq2</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span>
</pre>
<div class="table">
<a name="id615512"></a><p class="title"><b>Table<EFBFBD>1.76.<2E>Parameters</b></p>
<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">seq1</span></tt>
</p>
</td>
<td>
<p>
A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward
Sequence</a>
</p>
</td>
<td>
<p>
Operation's argument
</p>
</td>
</tr>
<tr>
<td>
<p>
<tt class="computeroutput"><span class="identifier">seq2</span></tt>
</p>
</td>
<td>
<p>
A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward
Sequence</a>
</p>
</td>
<td>
<p>
Operation's argument
</p>
</td>
</tr>
<tr>
<td>
<p>
<tt class="computeroutput"><span class="identifier">f</span></tt>
</p>
</td>
<td>
<p>
<tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e1</span><span class="special">,</span><span class="identifier">e2</span><span class="special">)</span></tt>
is a valid expression for each pair of elements <tt class="computeroutput"><span class="identifier">e1</span></tt>
of <tt class="computeroutput"><span class="identifier">seq1</span></tt> and <tt class="computeroutput"><span class="identifier">e2</span></tt> of <tt class="computeroutput"><span class="identifier">seq2</span></tt>.
<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">&lt;</span><span class="identifier">F</span><span class="special">(</span><span class="identifier">E1</span><span class="special">,</span><span class="identifier">E2</span><span class="special">)&gt;::</span><span class="identifier">type</span></tt> is the return type of <tt class="computeroutput"><span class="identifier">f</span></tt> when called with elements of
type <tt class="computeroutput"><span class="identifier">E1</span></tt> and <tt class="computeroutput"><span class="identifier">E2</span></tt>
</p>
</td>
<td>
<p>
Transformation function
</p>
</td>
</tr>
</tbody>
</table>
</div>
<p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing <span class="bold"><strong>Semantics</strong></span>: Returns a sequence with values
the return values of <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e1</span><span class="special">,</span> <span class="identifier">e2</span><span class="special">)</span></tt> for each pair of elements <tt class="computeroutput"><span class="identifier">e1</span></tt> and <tt class="computeroutput"><span class="identifier">e2</span></tt> <code class="computeroutput"><span class="identifier">F</span><span class="special">::</span><span class="identifier">result</span><span class="special">&lt;</span><span class="identifier">E</span><span class="special">&gt;::</span><span class="identifier">type</span></code> for each element type <code class="computeroutput"><span class="identifier">E</span></code> in <code class="computeroutput"><span class="identifier">Sequence</span></code>.
within <tt class="computeroutput"><span class="identifier">seq1</span></tt> and <tt class="computeroutput"><span class="identifier">seq2</span></tt> respectively.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.transform.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.transform.complexity"></a><h6>
<a name="id616001"></a> <a name="id1185529"></a>
<a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.complexity">Complexity</a> <a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.transform.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.transform.header"></a><h6>
<a name="id616032"></a> <a name="id1185536"></a>
<a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.header">Header</a> <a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">transform</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</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">transformation</span><span class="special">/</span><span class="identifier">transform</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.metafunctions.transform.example"></a><h6>
<a name="id616140"></a>
<a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.example">Example</a>
</h6>
<pre class="programlisting">
<span class="keyword">struct</span> <span class="identifier">triple</span>
<span class="special">{</span>
<span class="keyword">typedef</span> <span class="keyword">int</span> <span class="identifier">result_type</span><span class="special">;</span>
<span class="keyword">int</span> <span class="keyword">operator</span><span class="special">()(</span><span class="keyword">int</span> <span class="identifier">t</span><span class="special">)</span> <span class="keyword">const</span>
<span class="special">{</span>
<span class="keyword">return</span> <span class="identifier">t</span> <span class="special">*</span> <span class="number">3</span><span class="special">;</span>
<span class="special">};</span>
<span class="special">};</span>
<span class="special">...</span>
<span class="identifier">assert</span><span class="special">(</span><a href="../functions/transform.html" title="transform"><tt class="computeroutput"><span class="identifier">transform</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">),</span> <span class="identifier">triple</span><span class="special">())</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">3</span><span class="special">,</span><span class="number">6</span><span class="special">,</span><span class="number">9</span><span class="special">));</span>
</pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td> <td align="left"></td>
@ -286,7 +155,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="filter_if.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="replace.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="filter_if.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="replace.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,30 +3,30 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>zip</title> <title>zip</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="join.html" title="join"> <link rel="prev" href="join.html" title="join">
<link rel="next" href="pop_back.html" title="pop_back"> <link rel="next" href="pop_back.html" title="pop_back">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="join.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="pop_back.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="join.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="pop_back.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.zip"></a><a href="zip.html" title="zip">zip</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.zip"></a><a href="zip.html" title="zip">zip</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.zip.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.zip.description"></a><h6>
<a name="id623648"></a> <a name="id1209495"></a>
<a href="zip.html#fusion.algorithms.transformation.metafunctions.zip.description">Description</a> <a href="zip.html#fusion.algorithms.transformation.metafunctions.zip.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,7 +34,7 @@
of the members of the component sequences. of the members of the component sequences.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.zip.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.zip.synopsis"></a><h6>
<a name="id623681"></a> <a name="id1209525"></a>
<a href="zip.html#fusion.algorithms.transformation.metafunctions.zip.synopsis">Synopsis</a> <a href="zip.html#fusion.algorithms.transformation.metafunctions.zip.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -50,37 +50,37 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.metafunctions.zip.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.zip.expression_semantics"></a><h6>
<a name="id623835"></a> <a name="id1209661"></a>
<a href="zip.html#fusion.algorithms.transformation.metafunctions.zip.expression_semantics">Expression <a href="zip.html#fusion.algorithms.transformation.metafunctions.zip.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="zip.html" title="zip"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">zip</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence1</span><span class="special">,</span> <span class="identifier">Sequence2</span><span class="special">,</span> <span class="special">...</span> <span class="identifier">SequenceN</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="zip.html" title="zip"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">zip</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence1</span><span class="special">,</span> <span class="identifier">Sequence2</span><span class="special">,</span> <span class="special">...</span> <span class="identifier">SequenceN</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of the most restrictive <span class="bold"><strong>Return type</strong></span>: A model of the most restrictive
traversal category of sequences <tt class="computeroutput"><span class="identifier">Sequence1</span></tt> traversal category of sequences <code class="computeroutput"><span class="identifier">Sequence1</span></code>
to <tt class="computeroutput"><span class="identifier">SequenceN</span></tt>. to <code class="computeroutput"><span class="identifier">SequenceN</span></code>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Return a sequence containing <span class="bold"><strong>Semantics</strong></span>: Return a sequence containing
tuples of elements from each sequence. For example, applying zip to tuples tuples of elements from each sequence. For example, applying zip to tuples
<tt class="computeroutput"><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <code class="computeroutput"><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span>
<span class="number">3</span><span class="special">)</span></tt> <span class="number">3</span><span class="special">)</span></code>
and <tt class="computeroutput"><span class="special">(</span><span class="char">'a'</span><span class="special">,</span> <span class="char">'b'</span><span class="special">,</span> and <code class="computeroutput"><span class="special">(</span><span class="char">'a'</span><span class="special">,</span> <span class="char">'b'</span><span class="special">,</span>
<span class="char">'c'</span><span class="special">)</span></tt> <span class="char">'c'</span><span class="special">)</span></code>
would return <tt class="computeroutput"><span class="special">((</span><span class="number">1</span><span class="special">,</span> <span class="char">'a'</span><span class="special">),(</span><span class="number">2</span><span class="special">,</span> <span class="char">'b'</span><span class="special">),(</span><span class="number">3</span><span class="special">,</span> would return <code class="computeroutput"><span class="special">((</span><span class="number">1</span><span class="special">,</span> <span class="char">'a'</span><span class="special">),(</span><span class="number">2</span><span class="special">,</span> <span class="char">'b'</span><span class="special">),(</span><span class="number">3</span><span class="special">,</span>
<span class="char">'c'</span><span class="special">))</span></tt> <span class="char">'c'</span><span class="special">))</span></code>
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.zip.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.zip.complexity"></a><h6>
<a name="id624151"></a> <a name="id1209941"></a>
<a href="zip.html#fusion.algorithms.transformation.metafunctions.zip.complexity">Complexity</a> <a href="zip.html#fusion.algorithms.transformation.metafunctions.zip.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.zip.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.zip.header"></a><h6>
<a name="id624182"></a> <a name="id1209969"></a>
<a href="zip.html#fusion.algorithms.transformation.metafunctions.zip.header">Header</a> <a href="zip.html#fusion.algorithms.transformation.metafunctions.zip.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -94,7 +94,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="join.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="pop_back.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="join.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="pop_back.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,24 +3,24 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Change log</title> <title>Change log</title>
<link rel="stylesheet" href="../boostbook.css" type="text/css"> <link rel="stylesheet" href="../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="prev" href="notes.html" title="Notes"> <link rel="prev" href="notes.html" title="Notes">
<link rel="next" href="acknowledgements.html" title="Acknowledgements"> <link rel="next" href="acknowledgements.html" title="Acknowledgements">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td> <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="../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../libraries.htm">Libraries</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="../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="notes.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="acknowledgements.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="notes.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="acknowledgements.html"><img src="../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both"> <div class="titlepage"><div><div><h2 class="title" style="clear: both">
@ -30,11 +30,11 @@
</p> </p>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
<li> <li>
Sep 27, 2006: Added <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">tuple</span></tt> Sep 27, 2006: Added <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">tuple</span></code>
support. support.
</li> </li>
<li> <li>
Nov 17, 2006: Added <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">variant</span></tt> Nov 17, 2006: Added <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">variant</span></code>
support. support.
</li> </li>
<li> <li>
@ -49,7 +49,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="notes.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="acknowledgements.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="notes.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="acknowledgements.html"><img src="../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,32 +3,32 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Extension</title> <title>Extension</title>
<link rel="stylesheet" href="../boostbook.css" type="text/css"> <link rel="stylesheet" href="../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="prev" href="tuples/pairs.html" title="Pairs"> <link rel="prev" href="tuples/pairs.html" title="Pairs">
<link rel="next" href="functional.html" title="Functional"> <link rel="next" href="functional.html" title="Functional">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td> <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="../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../libraries.htm">Libraries</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="../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="tuples/pairs.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="functional.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="tuples/pairs.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="functional.html"><img src="../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both"> <div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="fusion.extension"></a><a href="extension.html" title="Extension">Extension</a></h2></div></div></div> <a name="fusion.extension"></a><a href="extension.html" title="Extension">Extension</a></h2></div></div></div>
<p> <p>
The Fusion library is designed to be extensible, new sequences types can easily The Fusion library is designed to be extensible, new sequences types can easily
be added. In fact, the library support for <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt>, be added. In fact, the library support for <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></code>,
<tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></tt> and <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a> <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></code> and <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a>
sequences is entirely provided using the extension mechanism. sequences is entirely provided using the extension mechanism.
</p> </p>
<p> <p>
@ -48,7 +48,7 @@
</li> </li>
</ol></div> </ol></div>
<a name="fusion.extension.our_example"></a><h3> <a name="fusion.extension.our_example"></a><h3>
<a name="id635063"></a> <a name="id1218124"></a>
<a href="extension.html#fusion.extension.our_example">Our example</a> <a href="extension.html#fusion.extension.our_example">Our example</a>
</h3> </h3>
<p> <p>
@ -73,14 +73,14 @@
<p> <p>
We are going to pretend that this type has been provided by a 3rd party library, We are going to pretend that this type has been provided by a 3rd party library,
and therefore cannot be modified. We shall work through all the necessary steps and therefore cannot be modified. We shall work through all the necessary steps
to enable <tt class="computeroutput"><span class="identifier">example_struct</span></tt> to to enable <code class="computeroutput"><span class="identifier">example_struct</span></code> to
serve as an <a href="sequences/concepts/associative_sequence.html" title="Associative serve as an <a href="sequences/concepts/associative_sequence.html" title="Associative
Sequence">Associative Sequence">Associative
Sequence</a> as described in the <a href="quick_start.html" title="Quick Start">Quick Sequence</a> as described in the <a href="quick_start.html" title="Quick Start">Quick
Start</a> guide. Start</a> guide.
</p> </p>
<a name="fusion.extension.enabling_tag_dispatching"></a><h3> <a name="fusion.extension.enabling_tag_dispatching"></a><h3>
<a name="id635347"></a> <a name="id1218380"></a>
<a href="extension.html#fusion.extension.enabling_tag_dispatching">Enabling Tag Dispatching</a> <a href="extension.html#fusion.extension.enabling_tag_dispatching">Enabling Tag Dispatching</a>
</h3> </h3>
<p> <p>
@ -95,9 +95,9 @@
</span><span class="special">}</span> </span><span class="special">}</span>
</pre> </pre>
<p> <p>
Next we need to enable the <tt class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span></tt> Next we need to enable the <code class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span></code>
metafunction to return our newly chosen tag type for operations involving our metafunction to return our newly chosen tag type for operations involving our
sequence. This is done by specializing <tt class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span></tt> sequence. This is done by specializing <code class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span></code>
for our sequence type. for our sequence type.
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
@ -112,8 +112,8 @@
<span class="special">}}}</span> <span class="special">}}}</span>
</pre> </pre>
<p> <p>
<tt class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span></tt> also has a second template argument, <code class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span></code> also has a second template argument,
that can be used in conjuction with <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">enable_if</span></tt> that can be used in conjuction with <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">enable_if</span></code>
to provide tag support for groups of related types. This feature is not necessary to provide tag support for groups of related types. This feature is not necessary
for our sequence, but for an example see the code in: for our sequence, but for an example see the code in:
</p> </p>
@ -121,7 +121,7 @@
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">sequence</span><span class="special">/</span><span class="identifier">adapted</span><span class="special">/</span><span class="identifier">mpl</span><span class="special">/</span><span class="identifier">tag_of</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">sequence</span><span class="special">/</span><span class="identifier">adapted</span><span class="special">/</span><span class="identifier">mpl</span><span class="special">/</span><span class="identifier">tag_of</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.extension.designing_a_suitable_iterator"></a><h3> <a name="fusion.extension.designing_a_suitable_iterator"></a><h3>
<a name="id635846"></a> <a name="id1218830"></a>
<a href="extension.html#fusion.extension.designing_a_suitable_iterator">Designing a <a href="extension.html#fusion.extension.designing_a_suitable_iterator">Designing a
suitable iterator</a> suitable iterator</a>
</h3> </h3>
@ -131,9 +131,9 @@
access iterator in our example. access iterator in our example.
</p> </p>
<p> <p>
We will use a simple design, in which the 2 members of <tt class="computeroutput"><span class="identifier">example_struct</span></tt> We will use a simple design, in which the 2 members of <code class="computeroutput"><span class="identifier">example_struct</span></code>
are given numbered indices, 0 for <tt class="computeroutput"><span class="identifier">name</span></tt> are given numbered indices, 0 for <code class="computeroutput"><span class="identifier">name</span></code>
and 1 for <tt class="computeroutput"><span class="identifier">age</span></tt> respectively. and 1 for <code class="computeroutput"><span class="identifier">age</span></code> respectively.
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Struct</span><span class="special">,</span> <span class="keyword">int</span> <span class="identifier">Pos</span><span class="special">&gt;</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Struct</span><span class="special">,</span> <span class="keyword">int</span> <span class="identifier">Pos</span><span class="special">&gt;</span>
@ -160,37 +160,37 @@
of the current element. of the current element.
</li> </li>
<li> <li>
The typedefs <tt class="computeroutput"><span class="identifier">struct_type</span></tt> The typedefs <code class="computeroutput"><span class="identifier">struct_type</span></code>
and <tt class="computeroutput"><span class="identifier">index</span></tt> provide convenient and <code class="computeroutput"><span class="identifier">index</span></code> provide convenient
access to information we will need later in the implementation. access to information we will need later in the implementation.
</li> </li>
<li> <li>
The typedef <tt class="computeroutput"><span class="identifier">category</span></tt> allows The typedef <code class="computeroutput"><span class="identifier">category</span></code> allows
the <tt class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><a href="support/category_of.html" title="category_of"><tt class="computeroutput"><span class="identifier">category_of</span></tt></a></tt> the <code class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><a href="support/category_of.html" title="category_of"><code class="computeroutput"><span class="identifier">category_of</span></code></a></code>
metafunction to establish the traversal category of the iterator. metafunction to establish the traversal category of the iterator.
</li> </li>
<li> <li>
The constructor stores a reference to the <tt class="computeroutput"><span class="identifier">example_struct</span></tt> The constructor stores a reference to the <code class="computeroutput"><span class="identifier">example_struct</span></code>
being iterated over. being iterated over.
</li> </li>
</ol></div> </ol></div>
<p> <p>
We also need to enable <a href="notes.html#fusion.notes.tag_dispatching"><span class="emphasis"><em>tag We also need to enable <a href="notes.html#fusion.notes.tag_dispatching"><span class="emphasis"><em>tag
dispatching</em></span></a> for our iterator type, with another specialization dispatching</em></span></a> for our iterator type, with another specialization
of <tt class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span></tt>. of <code class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span></code>.
</p> </p>
<p> <p>
In isolation, the iterator implementation is pretty dry. Things should become In isolation, the iterator implementation is pretty dry. Things should become
clearer as we add features to our implementation. clearer as we add features to our implementation.
</p> </p>
<a name="fusion.extension.a_first_couple_of_instructive_features"></a><h3> <a name="fusion.extension.a_first_couple_of_instructive_features"></a><h3>
<a name="id636490"></a> <a name="id1219410"></a>
<a href="extension.html#fusion.extension.a_first_couple_of_instructive_features">A first <a href="extension.html#fusion.extension.a_first_couple_of_instructive_features">A first
couple of instructive features</a> couple of instructive features</a>
</h3> </h3>
<p> <p>
To start with, we will get the <a href="iterators/metafunctions/value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_of</span></tt></a> metafunction working. To To start with, we will get the <a href="iterators/metafunctions/value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_of</span></code></a> metafunction working. To
do this, we provide a specialization of the <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">extension</span><span class="special">::</span><span class="identifier">value_of_impl</span></tt> do this, we provide a specialization of the <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">extension</span><span class="special">::</span><span class="identifier">value_of_impl</span></code>
template for our iterator's tag type. template for our iterator's tag type.
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
@ -215,22 +215,22 @@
</pre> </pre>
<p> <p>
The implementation itself is pretty simple, it just uses 2 partial specializations The implementation itself is pretty simple, it just uses 2 partial specializations
to provide the type of the 2 different members of <tt class="computeroutput"><span class="identifier">example_struct</span></tt>, to provide the type of the 2 different members of <code class="computeroutput"><span class="identifier">example_struct</span></code>,
based on the index of the iterator. based on the index of the iterator.
</p> </p>
<p> <p>
To understand how <tt class="computeroutput"><span class="identifier">value_of_impl</span></tt> To understand how <code class="computeroutput"><span class="identifier">value_of_impl</span></code>
is used by the library we will look at the implementation of <a href="iterators/metafunctions/value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">value_of</span></tt></a>: is used by the library we will look at the implementation of <a href="iterators/metafunctions/value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">value_of</span></code></a>:
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Iterator</span><span class="special">&gt;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Iterator</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <a href="iterators/metafunctions/value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">value_of</span></tt></a> <span class="keyword">struct</span> <a href="iterators/metafunctions/value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">value_of</span></code></a>
<span class="special">:</span> <span class="identifier">extension</span><span class="special">::</span><span class="identifier">value_of_impl</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">detail</span><span class="special">::</span><span class="identifier">tag_of</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;::</span> <span class="special">:</span> <span class="identifier">extension</span><span class="special">::</span><span class="identifier">value_of_impl</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">detail</span><span class="special">::</span><span class="identifier">tag_of</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;::</span>
<span class="keyword">template</span> <span class="identifier">apply</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;</span> <span class="keyword">template</span> <span class="identifier">apply</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;</span>
<span class="special">{};</span> <span class="special">{};</span>
</pre> </pre>
<p> <p>
So <a href="iterators/metafunctions/value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">value_of</span></tt></a> So <a href="iterators/metafunctions/value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">value_of</span></code></a>
uses <a href="notes.html#fusion.notes.tag_dispatching"><span class="emphasis"><em>tag dispatching</em></span></a> uses <a href="notes.html#fusion.notes.tag_dispatching"><span class="emphasis"><em>tag dispatching</em></span></a>
to select an <a href="http://www.boost.org/libs/mpl/doc/refmanual/metafunction-class.html" target="_top">MPL to select an <a href="http://www.boost.org/libs/mpl/doc/refmanual/metafunction-class.html" target="_top">MPL
Metafunction Class</a> to provide its functionality. You will notice this Metafunction Class</a> to provide its functionality. You will notice this
@ -238,7 +238,7 @@
</p> </p>
<p> <p>
Ok, lets enable dereferencing of our iterator. In this case we must provide Ok, lets enable dereferencing of our iterator. In this case we must provide
a suitable specialization of <tt class="computeroutput"><span class="identifier">deref_impl</span></tt>. a suitable specialization of <code class="computeroutput"><span class="identifier">deref_impl</span></code>.
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;&gt;</span> <span class="keyword">template</span><span class="special">&lt;&gt;</span>
@ -276,17 +276,17 @@
<span class="special">}</span> <span class="special">}</span>
</pre> </pre>
<p> <p>
The use of <tt class="computeroutput"><span class="identifier">deref_impl</span></tt> is very The use of <code class="computeroutput"><span class="identifier">deref_impl</span></code> is very
similar to that of <tt class="computeroutput"><span class="identifier">value_of_impl</span></tt>, similar to that of <code class="computeroutput"><span class="identifier">value_of_impl</span></code>,
but it also provides some runtime functionality this time via the <tt class="computeroutput"><span class="identifier">call</span></tt> static member function. To see how but it also provides some runtime functionality this time via the <code class="computeroutput"><span class="identifier">call</span></code> static member function. To see how
<tt class="computeroutput"><span class="identifier">deref_impl</span></tt> is used, lets have <code class="computeroutput"><span class="identifier">deref_impl</span></code> is used, lets have
a look at the implementation of <a href="iterators/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a>: a look at the implementation of <a href="iterators/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a>:
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">namespace</span> <span class="identifier">result_of</span> <span class="keyword">namespace</span> <span class="identifier">result_of</span>
<span class="special">{</span> <span class="special">{</span>
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Iterator</span><span class="special">&gt;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Iterator</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <a href="iterators/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a> <span class="keyword">struct</span> <a href="iterators/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a>
<span class="special">:</span> <span class="identifier">extension</span><span class="special">::</span><span class="identifier">deref_impl</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">detail</span><span class="special">::</span><span class="identifier">tag_of</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;::</span> <span class="special">:</span> <span class="identifier">extension</span><span class="special">::</span><span class="identifier">deref_impl</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">detail</span><span class="special">::</span><span class="identifier">tag_of</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;::</span>
<span class="keyword">template</span> <span class="identifier">apply</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;</span> <span class="keyword">template</span> <span class="identifier">apply</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;</span>
<span class="special">{};</span> <span class="special">{};</span>
@ -294,48 +294,54 @@
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Iterator</span><span class="special">&gt;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Iterator</span><span class="special">&gt;</span>
<span class="keyword">typename</span> <span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="keyword">typename</span> <span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;::</span><span class="identifier">type</span>
<a href="iterators/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><span class="identifier">Iterator</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">)</span> <a href="iterators/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><span class="identifier">Iterator</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">)</span>
<span class="special">{</span> <span class="special">{</span>
<span class="keyword">typedef</span> <span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;</span> <span class="identifier">deref_meta</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;</span> <span class="identifier">deref_meta</span><span class="special">;</span>
<span class="keyword">return</span> <span class="identifier">deref_meta</span><span class="special">::</span><span class="identifier">call</span><span class="special">(</span><span class="identifier">i</span><span class="special">);</span> <span class="keyword">return</span> <span class="identifier">deref_meta</span><span class="special">::</span><span class="identifier">call</span><span class="special">(</span><span class="identifier">i</span><span class="special">);</span>
<span class="special">}</span> <span class="special">}</span>
</pre> </pre>
<p> <p>
So again <a href="iterators/metafunctions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></tt></a> uses <a href="notes.html#fusion.notes.tag_dispatching"><span class="emphasis"><em>tag So again <a href="iterators/metafunctions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></code></a> uses <a href="notes.html#fusion.notes.tag_dispatching"><span class="emphasis"><em>tag
dispatching</em></span></a> in exactly the same way as the <a href="iterators/metafunctions/value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">value_of</span></tt></a> implementation. The runtime dispatching</em></span></a> in exactly the same way as the <a href="iterators/metafunctions/value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">value_of</span></code></a> implementation. The runtime
functionality used by <a href="iterators/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a> is provided by the <tt class="computeroutput"><span class="identifier">call</span></tt> static function of the selected <a href="http://www.boost.org/libs/mpl/doc/refmanual/metafunction-class.html" target="_top">MPL functionality used by <a href="iterators/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a> is provided by the <code class="computeroutput"><span class="identifier">call</span></code> static function of the selected <a href="http://www.boost.org/libs/mpl/doc/refmanual/metafunction-class.html" target="_top">MPL
Metafunction Class</a>. Metafunction Class</a>.
</p> </p>
<p> <p>
The actual implementation of <tt class="computeroutput"><span class="identifier">deref_impl</span></tt> The actual implementation of <code class="computeroutput"><span class="identifier">deref_impl</span></code>
is slightly more complex than that of <tt class="computeroutput"><span class="identifier">value_of_impl</span></tt>. is slightly more complex than that of <code class="computeroutput"><span class="identifier">value_of_impl</span></code>.
We also need to implement the <tt class="computeroutput"><span class="identifier">call</span></tt> We also need to implement the <code class="computeroutput"><span class="identifier">call</span></code>
function, which returns a reference to the appropriate member of the underlying function, which returns a reference to the appropriate member of the underlying
sequence. We also require a little bit of metaprogramming to return <tt class="computeroutput"><span class="keyword">const</span></tt> references if the underlying sequence sequence. We also require a little bit of metaprogramming to return <code class="computeroutput"><span class="keyword">const</span></code> references if the underlying sequence
is const. is const.
</p> </p>
<div class="note"><table border="0" summary="Note"> <div class="note"><table border="0" summary="Note">
<tr> <tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../doc/html/images/note.png"></td> <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../images/note.png"></td>
<th align="left">Note</th> <th align="left">Note</th>
</tr> </tr>
<tr><td colspan="2" align="left" valign="top"><p> <tr><td align="left" valign="top">
Although there is a fair amount of left to do to produce a fully fledged <p>
Fusion sequence, <a href="iterators/metafunctions/value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">value_of</span></tt></a> and <a href="iterators/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a> illustrate all the signficant </p>
concepts required. The remainder of the process is very repetitive, simply <p>
requiring implementation of a suitable <tt class="computeroutput"><span class="identifier">xxxx_impl</span></tt> Although there is a fair amount of left to do to produce a fully fledged
for each feature <tt class="computeroutput"><span class="identifier">xxxx</span></tt>. Fusion sequence, <a href="iterators/metafunctions/value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">value_of</span></code></a> and <a href="iterators/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a> illustrate all the signficant
</p></td></tr> concepts required. The remainder of the process is very repetitive, simply
requiring implementation of a suitable <code class="computeroutput"><span class="identifier">xxxx_impl</span></code>
for each feature <code class="computeroutput"><span class="identifier">xxxx</span></code>.
</p>
<p>
</p>
</td></tr>
</table></div> </table></div>
<a name="fusion.extension.implementing_the_remaining_iterator_functionality"></a><h3> <a name="fusion.extension.implementing_the_remaining_iterator_functionality"></a><h3>
<a name="id638798"></a> <a name="id1221456"></a>
<a href="extension.html#fusion.extension.implementing_the_remaining_iterator_functionality">Implementing <a href="extension.html#fusion.extension.implementing_the_remaining_iterator_functionality">Implementing
the remaining iterator functionality</a> the remaining iterator functionality</a>
</h3> </h3>
<p> <p>
Ok, now we have seen the way <a href="iterators/metafunctions/value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">value_of</span></tt></a> and <a href="iterators/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a> work, everything else will work Ok, now we have seen the way <a href="iterators/metafunctions/value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">value_of</span></code></a> and <a href="iterators/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a> work, everything else will work
in pretty much the same way. Lets start with forward iteration, by providing in pretty much the same way. Lets start with forward iteration, by providing
a <tt class="computeroutput"><span class="identifier">next_impl</span></tt>: a <code class="computeroutput"><span class="identifier">next_impl</span></code>:
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;&gt;</span> <span class="keyword">template</span><span class="special">&lt;&gt;</span>
@ -357,40 +363,40 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<p> <p>
This should be very familiar from our <tt class="computeroutput"><span class="identifier">deref_impl</span></tt> This should be very familiar from our <code class="computeroutput"><span class="identifier">deref_impl</span></code>
implementation, we will be using this approach again and again now. Our design implementation, we will be using this approach again and again now. Our design
is simply to increment the <tt class="computeroutput"><span class="identifier">index</span></tt> is simply to increment the <code class="computeroutput"><span class="identifier">index</span></code>
counter to move on to the next element. The various other iterator manipulations counter to move on to the next element. The various other iterator manipulations
we need to perform will all just involve simple calculations with the <tt class="computeroutput"><span class="identifier">index</span></tt> variables. we need to perform will all just involve simple calculations with the <code class="computeroutput"><span class="identifier">index</span></code> variables.
</p> </p>
<p> <p>
We also need to provide a suitable <tt class="computeroutput"><span class="identifier">equal_to_impl</span></tt> We also need to provide a suitable <code class="computeroutput"><span class="identifier">equal_to_impl</span></code>
so that iterators can be correctly compared. A <a href="iterators/concepts/bidirectional_iterator.html" title="Bidirectional so that iterators can be correctly compared. A <a href="iterators/concepts/bidirectional_iterator.html" title="Bidirectional
Iterator">Bidirectional Iterator">Bidirectional
Iterator</a> will also need an implementation of <tt class="computeroutput"><span class="identifier">prior_impl</span></tt>. Iterator</a> will also need an implementation of <code class="computeroutput"><span class="identifier">prior_impl</span></code>.
For a <a href="iterators/concepts/random_access_iterator.html" title="Random For a <a href="iterators/concepts/random_access_iterator.html" title="Random
Access Iterator">Random Access Iterator">Random
Access Iterator</a> <tt class="computeroutput"><span class="identifier">distance_impl</span></tt> Access Iterator</a> <code class="computeroutput"><span class="identifier">distance_impl</span></code>
and <tt class="computeroutput"><span class="identifier">advance_impl</span></tt> also need and <code class="computeroutput"><span class="identifier">advance_impl</span></code> also need
to be provided in order to satisfy the necessary complexity guarantees. As to be provided in order to satisfy the necessary complexity guarantees. As
our iterator is a <a href="iterators/concepts/random_access_iterator.html" title="Random our iterator is a <a href="iterators/concepts/random_access_iterator.html" title="Random
Access Iterator">Random Access Iterator">Random
Access Iterator</a> we will have to implement all of these functions. Access Iterator</a> we will have to implement all of these functions.
</p> </p>
<p> <p>
Full implementations of <tt class="computeroutput"><span class="identifier">prior_impl</span></tt>, Full implementations of <code class="computeroutput"><span class="identifier">prior_impl</span></code>,
<tt class="computeroutput"><span class="identifier">advance_impl</span></tt>, <tt class="computeroutput"><span class="identifier">distance_impl</span></tt> and <tt class="computeroutput"><span class="identifier">equal_to_impl</span></tt> <code class="computeroutput"><span class="identifier">advance_impl</span></code>, <code class="computeroutput"><span class="identifier">distance_impl</span></code> and <code class="computeroutput"><span class="identifier">equal_to_impl</span></code>
are provided in the example code. are provided in the example code.
</p> </p>
<a name="fusion.extension.implementing_the_intrinsic_functions_of_the_sequence"></a><h3> <a name="fusion.extension.implementing_the_intrinsic_functions_of_the_sequence"></a><h3>
<a name="id639449"></a> <a name="id1222031"></a>
<a href="extension.html#fusion.extension.implementing_the_intrinsic_functions_of_the_sequence">Implementing <a href="extension.html#fusion.extension.implementing_the_intrinsic_functions_of_the_sequence">Implementing
the intrinsic functions of the sequence</a> the intrinsic functions of the sequence</a>
</h3> </h3>
<p> <p>
In order that Fusion can correctly identify our sequence as a Fusion sequence, In order that Fusion can correctly identify our sequence as a Fusion sequence,
we need to enable <tt class="computeroutput"><span class="identifier">is_sequence</span></tt> we need to enable <code class="computeroutput"><span class="identifier">is_sequence</span></code>
for our sequence type. As usual we just create an <tt class="computeroutput"><span class="identifier">impl</span></tt> for our sequence type. As usual we just create an <code class="computeroutput"><span class="identifier">impl</span></code>
type specialized for our sequence tag: type specialized for our sequence tag:
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
@ -402,14 +408,14 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<p> <p>
We've some similar formalities to complete, providing <tt class="computeroutput"><span class="identifier">category_of_impl</span></tt> We've some similar formalities to complete, providing <code class="computeroutput"><span class="identifier">category_of_impl</span></code>
so Fusion can correctly identify our sequence type, and <tt class="computeroutput"><span class="identifier">is_view_impl</span></tt> so Fusion can correctly identify our sequence type, and <code class="computeroutput"><span class="identifier">is_view_impl</span></code>
so Fusion can correctly identify our sequence as not being a <a href="sequences/views.html" title="Views">View</a> so Fusion can correctly identify our sequence as not being a <a href="sequences/views.html" title="Views">View</a>
type. Implementations are provide in the example code. type. Implementations are provide in the example code.
</p> </p>
<p> <p>
Now we've completed some formalities, on to more interesting features. Lets Now we've completed some formalities, on to more interesting features. Lets
get <a href="sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a> working so that we can get an get <a href="sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a> working so that we can get an
iterator to start accessing the data in our sequence. iterator to start accessing the data in our sequence.
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
@ -432,32 +438,32 @@
<p> <p>
The implementation uses the same ideas we have applied throughout, in this The implementation uses the same ideas we have applied throughout, in this
case we are just creating one of the iterators we developed earlier, pointing case we are just creating one of the iterators we developed earlier, pointing
to the first element in the sequence. The implementation of <a href="sequences/intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a> is very similar, and is provided to the first element in the sequence. The implementation of <a href="sequences/intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a> is very similar, and is provided
in the example code. in the example code.
</p> </p>
<p> <p>
For our <a href="sequences/concepts/random_access_sequence.html" title="Random For our <a href="sequences/concepts/random_access_sequence.html" title="Random
Access Sequence">Random Access Sequence">Random
Access Sequence</a> we will also need to implement <tt class="computeroutput"><span class="identifier">size_impl</span></tt>, Access Sequence</a> we will also need to implement <code class="computeroutput"><span class="identifier">size_impl</span></code>,
<tt class="computeroutput"><span class="identifier">value_at_impl</span></tt> and <tt class="computeroutput"><span class="identifier">at_impl</span></tt>. <code class="computeroutput"><span class="identifier">value_at_impl</span></code> and <code class="computeroutput"><span class="identifier">at_impl</span></code>.
</p> </p>
<a name="fusion.extension.enabling_our_type_as_an_associative_container"></a><h3> <a name="fusion.extension.enabling_our_type_as_an_associative_container"></a><h3>
<a name="id640054"></a> <a name="id1222565"></a>
<a href="extension.html#fusion.extension.enabling_our_type_as_an_associative_container">Enabling <a href="extension.html#fusion.extension.enabling_our_type_as_an_associative_container">Enabling
our type as an associative container</a> our type as an associative container</a>
</h3> </h3>
<p> <p>
In order for <tt class="computeroutput"><span class="identifier">example_struct</span></tt> In order for <code class="computeroutput"><span class="identifier">example_struct</span></code>
to serve as an associative container, we need to enable 3 lookup features, to serve as an associative container, we need to enable 3 lookup features,
<a href="sequences/intrinsics/functions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">at_key</span></tt></a>, <a href="sequences/intrinsics/metafunctions/value_at_key.html" title="value_at_key"><tt class="computeroutput"><span class="identifier">value_at_key</span></tt></a> and <a href="sequences/intrinsics/functions/has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">has_key</span></tt></a>. We also need to provide an <a href="sequences/intrinsics/functions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">at_key</span></code></a>, <a href="sequences/intrinsics/metafunctions/value_at_key.html" title="value_at_key"><code class="computeroutput"><span class="identifier">value_at_key</span></code></a> and <a href="sequences/intrinsics/functions/has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">has_key</span></code></a>. We also need to provide an
implementation of the <tt class="computeroutput"><span class="identifier">is_associative</span></tt> implementation of the <code class="computeroutput"><span class="identifier">is_associative</span></code>
trait so that our sequence can be correctly identified as an associative container. trait so that our sequence can be correctly identified as an associative container.
</p> </p>
<p> <p>
To implement <tt class="computeroutput"><span class="identifier">at_key_impl</span></tt> we To implement <code class="computeroutput"><span class="identifier">at_key_impl</span></code> we
need to associate the <tt class="computeroutput"><span class="identifier">fields</span><span class="special">::</span><span class="identifier">age</span></tt> and need to associate the <code class="computeroutput"><span class="identifier">fields</span><span class="special">::</span><span class="identifier">age</span></code> and
<tt class="computeroutput"><span class="identifier">fields</span><span class="special">::</span><span class="identifier">age</span></tt> types described in the <a href="quick_start.html" title="Quick Start">Quick <code class="computeroutput"><span class="identifier">fields</span><span class="special">::</span><span class="identifier">age</span></code> types described in the <a href="quick_start.html" title="Quick Start">Quick
Start</a> guide with the appropriate members of <tt class="computeroutput"><span class="identifier">example_struct</span></tt>. Start</a> guide with the appropriate members of <code class="computeroutput"><span class="identifier">example_struct</span></code>.
Our implementation is as follows: Our implementation is as follows:
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
@ -500,15 +506,15 @@
</pre> </pre>
<p> <p>
Its all very similar to the implementations we've seen previously, such as Its all very similar to the implementations we've seen previously, such as
<tt class="computeroutput"><span class="identifier">deref_impl</span></tt> and <tt class="computeroutput"><span class="identifier">value_of_impl</span></tt>. Instead of identifying the <code class="computeroutput"><span class="identifier">deref_impl</span></code> and <code class="computeroutput"><span class="identifier">value_of_impl</span></code>. Instead of identifying the
members by index or position, we are now selecting them using the types <tt class="computeroutput"><span class="identifier">fields</span><span class="special">::</span><span class="identifier">name</span></tt> and <tt class="computeroutput"><span class="identifier">fields</span><span class="special">::</span><span class="identifier">age</span></tt>. The members by index or position, we are now selecting them using the types <code class="computeroutput"><span class="identifier">fields</span><span class="special">::</span><span class="identifier">name</span></code> and <code class="computeroutput"><span class="identifier">fields</span><span class="special">::</span><span class="identifier">age</span></code>. The
implementations of <tt class="computeroutput"><span class="identifier">value_at_key_impl</span></tt> implementations of <code class="computeroutput"><span class="identifier">value_at_key_impl</span></code>
and <tt class="computeroutput"><span class="identifier">has_key_impl</span></tt> are equally and <code class="computeroutput"><span class="identifier">has_key_impl</span></code> are equally
straightforward, and are provided in the example code, along with an implementation straightforward, and are provided in the example code, along with an implementation
of <tt class="computeroutput"><span class="identifier">is_associative_impl</span></tt>. of <code class="computeroutput"><span class="identifier">is_associative_impl</span></code>.
</p> </p>
<a name="fusion.extension.summary"></a><h3> <a name="fusion.extension.summary"></a><h3>
<a name="id641060"></a> <a name="id1240928"></a>
<a href="extension.html#fusion.extension.summary">Summary</a> <a href="extension.html#fusion.extension.summary">Summary</a>
</h3> </h3>
<p> <p>
@ -518,8 +524,8 @@
pattern. pattern.
</p> </p>
<p> <p>
The support for <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt>, <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a> The support for <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></code>, <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a>
sequences, and <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></tt> all use the same approach, and provide sequences, and <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></code> all use the same approach, and provide
additional examples of the approach for a variety of types. additional examples of the approach for a variety of types.
</p> </p>
</div> </div>
@ -530,7 +536,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="tuples/pairs.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="functional.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="tuples/pairs.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="functional.html"><img src="../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,24 +3,24 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Functional</title> <title>Functional</title>
<link rel="stylesheet" href="../boostbook.css" type="text/css"> <link rel="stylesheet" href="../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="prev" href="extension.html" title="Extension"> <link rel="prev" href="extension.html" title="Extension">
<link rel="next" href="functional/concepts.html" title="Concepts"> <link rel="next" href="functional/concepts.html" title="Concepts">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td> <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="../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../libraries.htm">Libraries</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="../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="extension.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="functional/concepts.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="extension.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="functional/concepts.html"><img src="../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both"> <div class="titlepage"><div><div><h2 class="title" style="clear: both">
@ -62,14 +62,14 @@
through a function object interface. through a function object interface.
</p> </p>
<a name="fusion.functional.header"></a><h3> <a name="fusion.functional.header"></a><h3>
<a name="id641172"></a> <a name="id1241027"></a>
<a href="functional.html#fusion.functional.header">Header</a> <a href="functional.html#fusion.functional.header">Header</a>
</h3> </h3>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.functional.fused_and_unfused_forms"></a><h3> <a name="fusion.functional.fused_and_unfused_forms"></a><h3>
<a name="id641256"></a> <a name="id1241101"></a>
<a href="functional.html#fusion.functional.fused_and_unfused_forms">Fused and unfused <a href="functional.html#fusion.functional.fused_and_unfused_forms">Fused and unfused
forms</a> forms</a>
</h3> </h3>
@ -83,7 +83,7 @@
It is a name and a tuple written next to each other, left-to-right. It is a name and a tuple written next to each other, left-to-right.
</p> </p>
<p> <p>
Although the C++ syntax does not allow to replace <tt class="literal">(a,b,c)</tt> Although the C++ syntax does not allow to replace <code class="literal">(a,b,c)</code>
with some Fusion <a href="sequences.html" title="Sequences">Sequence</a>, introducing with some Fusion <a href="sequences.html" title="Sequences">Sequence</a>, introducing
yet another function provides a solution: yet another function provides a solution:
</p> </p>
@ -91,22 +91,22 @@
<span class="identifier">invoke</span><span class="special">(</span><span class="identifier">f</span><span class="special">,</span><span class="identifier">my_sequence</span><span class="special">)</span> <span class="identifier">invoke</span><span class="special">(</span><span class="identifier">f</span><span class="special">,</span><span class="identifier">my_sequence</span><span class="special">)</span>
</pre> </pre>
<p> <p>
Alternatively it is possible to apply a simple transformation to <tt class="literal">f</tt> Alternatively it is possible to apply a simple transformation to <code class="literal">f</code>
in order to achieve the same effect: in order to achieve the same effect:
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
<span class="identifier">f</span> <span class="identifier">tuple</span> <span class="special">&lt;=&gt;</span> f' <span class="special">(</span><span class="identifier">tuple</span><span class="special">)</span> <span class="identifier">f</span> <span class="identifier">tuple</span> <span class="special">&lt;=&gt;</span> f' <span class="special">(</span><span class="identifier">tuple</span><span class="special">)</span>
</pre> </pre>
<p> <p>
Now, <tt class="literal">f'</tt> is an unary function that takes the arguments to Now, <code class="literal">f'</code> is an unary function that takes the arguments to
<tt class="computeroutput"><span class="identifier">f</span></tt> as a tuple; <tt class="literal">f'</tt> <code class="computeroutput"><span class="identifier">f</span></code> as a tuple; <code class="literal">f'</code>
is the <span class="emphasis"><em>fused</em></span> form of <tt class="computeroutput"><span class="identifier">f</span></tt>. is the <span class="emphasis"><em>fused</em></span> form of <code class="computeroutput"><span class="identifier">f</span></code>.
Reading the above equivalence right-to-left to get the inverse transformation, Reading the above equivalence right-to-left to get the inverse transformation,
<tt class="computeroutput"><span class="identifier">f</span></tt> is the <span class="emphasis"><em>unfused</em></span> <code class="computeroutput"><span class="identifier">f</span></code> is the <span class="emphasis"><em>unfused</em></span>
form of <tt class="literal">f'</tt>. form of <code class="literal">f'</code>.
</p> </p>
<a name="fusion.functional.calling_functions_and_function_objects"></a><h3> <a name="fusion.functional.calling_functions_and_function_objects"></a><h3>
<a name="id641521"></a> <a name="id1241336"></a>
<a href="functional.html#fusion.functional.calling_functions_and_function_objects">Calling <a href="functional.html#fusion.functional.calling_functions_and_function_objects">Calling
functions and function objects</a> functions and function objects</a>
</h3> </h3>
@ -134,7 +134,7 @@
instance for the given argument. instance for the given argument.
</p> </p>
<a name="fusion.functional.making_fusion_code_callable_through_a_function_object_interface"></a><h3> <a name="fusion.functional.making_fusion_code_callable_through_a_function_object_interface"></a><h3>
<a name="id641592"></a> <a name="id1241396"></a>
<a href="functional.html#fusion.functional.making_fusion_code_callable_through_a_function_object_interface">Making <a href="functional.html#fusion.functional.making_fusion_code_callable_through_a_function_object_interface">Making
Fusion code callable through a function object interface</a> Fusion code callable through a function object interface</a>
</h3> </h3>
@ -159,7 +159,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="extension.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="functional/concepts.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="extension.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="functional/concepts.html"><img src="../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title> Adapters</title> <title> Adapters</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functional.html" title="Functional"> <link rel="up" href="../functional.html" title="Functional">
<link rel="prev" href="invocation/metafunctions/invoke_fobj.html" title=" <link rel="prev" href="invocation/metafunctions/invoke_fobj.html" title="
@ -11,17 +11,17 @@
<link rel="next" href="adapters/fused.html" title="fused"> <link rel="next" href="adapters/fused.html" title="fused">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td> <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="../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../libraries.htm">Libraries</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="../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="invocation/metafunctions/invoke_fobj.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functional.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="adapters/fused.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="invocation/metafunctions/invoke_fobj.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functional.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="adapters/fused.html"><img src="../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title"> <div class="titlepage"><div><div><h3 class="title">
@ -46,7 +46,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="invocation/metafunctions/invoke_fobj.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functional.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="adapters/fused.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="invocation/metafunctions/invoke_fobj.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functional.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="adapters/fused.html"><img src="../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,30 +3,30 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>fused</title> <title>fused</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../adapters.html" title=" Adapters"> <link rel="up" href="../adapters.html" title=" Adapters">
<link rel="prev" href="../adapters.html" title=" Adapters"> <link rel="prev" href="../adapters.html" title=" Adapters">
<link rel="next" href="fused_procedure.html" title="fused_procedure"> <link rel="next" href="fused_procedure.html" title="fused_procedure">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> <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="../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../libraries.htm">Libraries</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="../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../adapters.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.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="fused_procedure.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../adapters.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="fused_procedure.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.functional.adapters.fused"></a><a href="fused.html" title="fused">fused</a></h4></div></div></div> <a name="fusion.functional.adapters.fused"></a><a href="fused.html" title="fused">fused</a></h4></div></div></div>
<a name="fusion.functional.adapters.fused.description"></a><h5> <a name="fusion.functional.adapters.fused.description"></a><h5>
<a name="id648400"></a> <a name="id1247382"></a>
<a href="fused.html#fusion.functional.adapters.fused.description">Description</a> <a href="fused.html#fusion.functional.adapters.fused.description">Description</a>
</h5> </h5>
<p> <p>
@ -41,29 +41,29 @@
<p> <p>
The type of the target function is allowed to be const qualified or a reference. The type of the target function is allowed to be const qualified or a reference.
Const qualification is preserved and propagated appropriately (in other Const qualification is preserved and propagated appropriately (in other
words, only const versions of <tt class="literal">operator()</tt> can be used words, only const versions of <code class="literal">operator()</code> can be used
for a target function object that is const or, if the target function object 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 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 do with the const qualification of a member function, which is referring
to the type of object pointed to by <tt class="literal">this</tt> which is specified to the type of object pointed to by <code class="literal">this</code> which is specified
with the first element in the sequence passed to the adapter). with the first element in the sequence passed to the adapter).
</p> </p>
<p> <p>
If the target function is a pointer to a class members, the corresponding If the target function is a pointer to a class members, the corresponding
object can be specified as a reference, pointer, or smart pointer. In case object can be specified as a reference, pointer, or smart pointer. In case
of the latter, a freestanding <tt class="literal">get_pointer</tt> function must of the latter, a freestanding <code class="literal">get_pointer</code> function must
be defined (Boost provides this function for <tt class="literal">std::auto_ptr</tt> be defined (Boost provides this function for <code class="literal">std::auto_ptr</code>
and <a href="http://www.boost.org/libs/smart_ptr/shared_ptr.htm" target="_top"><tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">shared_ptr</span></tt></a>). and <a href="http://www.boost.org/libs/smart_ptr/shared_ptr.htm" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">shared_ptr</span></code></a>).
</p> </p>
<a name="fusion.functional.adapters.fused.header"></a><h5> <a name="fusion.functional.adapters.fused.header"></a><h5>
<a name="id648530"></a> <a name="id1247502"></a>
<a href="fused.html#fusion.functional.adapters.fused.header">Header</a> <a href="fused.html#fusion.functional.adapters.fused.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">adapter</span><span class="special">/</span><span class="identifier">fused</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">adapter</span><span class="special">/</span><span class="identifier">fused</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.functional.adapters.fused.synopsis"></a><h5> <a name="fusion.functional.adapters.fused.synopsis"></a><h5>
<a name="id648636"></a> <a name="id1247594"></a>
<a href="fused.html#fusion.functional.adapters.fused.synopsis">Synopsis</a> <a href="fused.html#fusion.functional.adapters.fused.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -71,7 +71,7 @@
<span class="keyword">class</span> <span class="identifier">fused</span><span class="special">;</span> <span class="keyword">class</span> <span class="identifier">fused</span><span class="special">;</span>
</pre> </pre>
<a name="fusion.functional.adapters.fused.template_parameters"></a><h5> <a name="fusion.functional.adapters.fused.template_parameters"></a><h5>
<a name="id648716"></a> <a name="id1247665"></a>
<a href="fused.html#fusion.functional.adapters.fused.template_parameters">Template <a href="fused.html#fusion.functional.adapters.fused.template_parameters">Template
parameters</a> parameters</a>
</h5> </h5>
@ -101,7 +101,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Function</span></tt> <code class="computeroutput"><span class="identifier">Function</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -118,7 +118,7 @@
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.functional.adapters.fused.model_of"></a><h5> <a name="fusion.functional.adapters.fused.model_of"></a><h5>
<a name="id648832"></a> <a name="id1247767"></a>
<a href="fused.html#fusion.functional.adapters.fused.model_of">Model of</a> <a href="fused.html#fusion.functional.adapters.fused.model_of">Model of</a>
</h5> </h5>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
@ -132,29 +132,29 @@
<div class="variablelist"> <div class="variablelist">
<p class="title"><b>Notation</b></p> <p class="title"><b>Notation</b></p>
<dl> <dl>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">R</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">R</span></code></span></dt>
<dd><p> <dd>
A possibly const qualified <a href="../concepts/def_callable.html" title=" Deferred A possibly const qualified <a href="../concepts/def_callable.html" title=" Deferred
Callable Object">Deferred Callable Object">Deferred
Callable Object</a> type or reference type thereof Callable Object</a> type or reference type thereof
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">r</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">r</span></code></span></dt>
<dd><p> <dd>
An object convertible to <tt class="computeroutput"><span class="identifier">R</span></tt> An object convertible to <code class="computeroutput"><span class="identifier">R</span></code>
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
<dd><p> <dd>
A <a href="../../sequences.html" title="Sequences">Sequence</a> of arguments that A <a href="../../sequences.html" title="Sequences">Sequence</a> of arguments that
are accepted by <tt class="computeroutput"><span class="identifier">r</span></tt> are accepted by <code class="computeroutput"><span class="identifier">r</span></code>
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">f</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">f</span></code></span></dt>
<dd><p> <dd>
An instance of <tt class="computeroutput"><span class="identifier">fused</span><span class="special">&lt;</span><span class="identifier">R</span><span class="special">&gt;</span></tt> An instance of <code class="computeroutput"><span class="identifier">fused</span><span class="special">&lt;</span><span class="identifier">R</span><span class="special">&gt;</span></code>
</p></dd> </dd>
</dl> </dl>
</div> </div>
<a name="fusion.functional.adapters.fused.expression_semantics"></a><h5> <a name="fusion.functional.adapters.fused.expression_semantics"></a><h5>
<a name="id649052"></a> <a name="id1247949"></a>
<a href="fused.html#fusion.functional.adapters.fused.expression_semantics">Expression <a href="fused.html#fusion.functional.adapters.fused.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
@ -179,38 +179,38 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">fused</span><span class="special">&lt;</span><span class="identifier">R</span><span class="special">&gt;(</span><span class="identifier">r</span><span class="special">)</span></tt> <code class="computeroutput"><span class="identifier">fused</span><span class="special">&lt;</span><span class="identifier">R</span><span class="special">&gt;(</span><span class="identifier">r</span><span class="special">)</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Creates a fused function as described above, initializes the target Creates a fused function as described above, initializes the target
function with <tt class="computeroutput"><span class="identifier">r</span></tt>. function with <code class="computeroutput"><span class="identifier">r</span></code>.
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">fused</span><span class="special">&lt;</span><span class="identifier">R</span><span class="special">&gt;()</span></tt> <code class="computeroutput"><span class="identifier">fused</span><span class="special">&lt;</span><span class="identifier">R</span><span class="special">&gt;()</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Creates a fused function as described above, attempts to use <tt class="computeroutput"><span class="identifier">R</span></tt>'s default constructor. Creates a fused function as described above, attempts to use <code class="computeroutput"><span class="identifier">R</span></code>'s default constructor.
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt> <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Calls <tt class="computeroutput"><span class="identifier">r</span></tt> with the Calls <code class="computeroutput"><span class="identifier">r</span></code> with the
elements in <tt class="computeroutput"><span class="identifier">s</span></tt> as elements in <code class="computeroutput"><span class="identifier">s</span></code> as
its arguments. its arguments.
</p> </p>
</td> </td>
@ -218,22 +218,22 @@
</tbody> </tbody>
</table></div> </table></div>
<a name="fusion.functional.adapters.fused.example"></a><h5> <a name="fusion.functional.adapters.fused.example"></a><h5>
<a name="id649306"></a> <a name="id1248175"></a>
<a href="fused.html#fusion.functional.adapters.fused.example">Example</a> <a href="fused.html#fusion.functional.adapters.fused.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="identifier">fused</span><span class="special">&lt;</span> <a href="http://www.sgi.com/tech/stl/plus.html" target="_top"><tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">plus</span></tt></a><span class="special">&lt;</span><span class="keyword">long</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="identifier">f</span><span class="special">;</span> <span class="identifier">fused</span><span class="special">&lt;</span> <a href="http://www.sgi.com/tech/stl/plus.html" target="_top"><code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">plus</span></code></a><span class="special">&lt;</span><span class="keyword">long</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="identifier">f</span><span class="special">;</span>
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">f</span><span class="special">(</span><a href="../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2l</span><span class="special">))</span> <span class="special">==</span> <span class="number">3l</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(</span><span class="identifier">f</span><span class="special">(</span><a href="../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2l</span><span class="special">))</span> <span class="special">==</span> <span class="number">3l</span><span class="special">);</span>
</pre> </pre>
<a name="fusion.functional.adapters.fused.see_also"></a><h5> <a name="fusion.functional.adapters.fused.see_also"></a><h5>
<a name="id649484"></a> <a name="id1248332"></a>
<a href="fused.html#fusion.functional.adapters.fused.see_also">See also</a> <a href="fused.html#fusion.functional.adapters.fused.see_also">See also</a>
</h5> </h5>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
<li><a href="fused_procedure.html" title="fused_procedure"><tt class="computeroutput"><span class="identifier">fused_procedure</span></tt></a></li> <li><a href="fused_procedure.html" title="fused_procedure"><code class="computeroutput"><span class="identifier">fused_procedure</span></code></a></li>
<li><a href="fused_function_object.html" title="fused_function_object"><tt class="computeroutput"><span class="identifier">fused_function_object</span></tt></a></li> <li><a href="fused_function_object.html" title="fused_function_object"><code class="computeroutput"><span class="identifier">fused_function_object</span></code></a></li>
<li><a href="../invocation/functions/invoke.html" title="invoke"><tt class="computeroutput"><span class="identifier">invoke</span></tt></a></li> <li><a href="../invocation/functions/invoke.html" title="invoke"><code class="computeroutput"><span class="identifier">invoke</span></code></a></li>
<li><a href="../../support/deduce.html" title="deduce"><tt class="computeroutput"><span class="identifier">deduce</span></tt></a></li> <li><a href="../../support/deduce.html" title="deduce"><code class="computeroutput"><span class="identifier">deduce</span></code></a></li>
</ul></div> </ul></div>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -243,7 +243,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../adapters.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.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="fused_procedure.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../adapters.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="fused_procedure.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,30 +3,30 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>fused_function_object</title> <title>fused_function_object</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../adapters.html" title=" Adapters"> <link rel="up" href="../adapters.html" title=" Adapters">
<link rel="prev" href="fused_procedure.html" title="fused_procedure"> <link rel="prev" href="fused_procedure.html" title="fused_procedure">
<link rel="next" href="unfused_generic.html" title="unfused_generic"> <link rel="next" href="unfused_generic.html" title="unfused_generic">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> <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="../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../libraries.htm">Libraries</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="../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="fused_procedure.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.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="unfused_generic.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="fused_procedure.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="unfused_generic.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.functional.adapters.fused_function_object"></a><a href="fused_function_object.html" title="fused_function_object">fused_function_object</a></h4></div></div></div> <a name="fusion.functional.adapters.fused_function_object"></a><a href="fused_function_object.html" title="fused_function_object">fused_function_object</a></h4></div></div></div>
<a name="fusion.functional.adapters.fused_function_object.description"></a><h5> <a name="fusion.functional.adapters.fused_function_object.description"></a><h5>
<a name="id651278"></a> <a name="id1249911"></a>
<a href="fused_function_object.html#fusion.functional.adapters.fused_function_object.description">Description</a> <a href="fused_function_object.html#fusion.functional.adapters.fused_function_object.description">Description</a>
</h5> </h5>
<p> <p>
@ -41,19 +41,19 @@
<p> <p>
The type of the target function is allowed to be const qualified or a reference. The type of the target function is allowed to be const qualified or a reference.
Const qualification is preserved and propagated appropriately (in other Const qualification is preserved and propagated appropriately (in other
words, only const versions of <tt class="literal">operator()</tt> can be used words, only const versions of <code class="literal">operator()</code> can be used
for an target function object that is const or, if the target function for an target function object that is const or, if the target function
object is held by value, the adapter is const). object is held by value, the adapter is const).
</p> </p>
<a name="fusion.functional.adapters.fused_function_object.header"></a><h5> <a name="fusion.functional.adapters.fused_function_object.header"></a><h5>
<a name="id651355"></a> <a name="id1249980"></a>
<a href="fused_function_object.html#fusion.functional.adapters.fused_function_object.header">Header</a> <a href="fused_function_object.html#fusion.functional.adapters.fused_function_object.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">adapter</span><span class="special">/</span><span class="identifier">fused_function_object</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">adapter</span><span class="special">/</span><span class="identifier">fused_function_object</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.functional.adapters.fused_function_object.synopsis"></a><h5> <a name="fusion.functional.adapters.fused_function_object.synopsis"></a><h5>
<a name="id651462"></a> <a name="id1250074"></a>
<a href="fused_function_object.html#fusion.functional.adapters.fused_function_object.synopsis">Synopsis</a> <a href="fused_function_object.html#fusion.functional.adapters.fused_function_object.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -61,7 +61,7 @@
<span class="keyword">class</span> <span class="identifier">fused_function_object</span><span class="special">;</span> <span class="keyword">class</span> <span class="identifier">fused_function_object</span><span class="special">;</span>
</pre> </pre>
<a name="fusion.functional.adapters.fused_function_object.template_parameters"></a><h5> <a name="fusion.functional.adapters.fused_function_object.template_parameters"></a><h5>
<a name="id651545"></a> <a name="id1250147"></a>
<a href="fused_function_object.html#fusion.functional.adapters.fused_function_object.template_parameters">Template <a href="fused_function_object.html#fusion.functional.adapters.fused_function_object.template_parameters">Template
parameters</a> parameters</a>
</h5> </h5>
@ -91,7 +91,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Function</span></tt> <code class="computeroutput"><span class="identifier">Function</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -108,7 +108,7 @@
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.functional.adapters.fused_function_object.model_of"></a><h5> <a name="fusion.functional.adapters.fused_function_object.model_of"></a><h5>
<a name="id651661"></a> <a name="id1250248"></a>
<a href="fused_function_object.html#fusion.functional.adapters.fused_function_object.model_of">Model <a href="fused_function_object.html#fusion.functional.adapters.fused_function_object.model_of">Model
of</a> of</a>
</h5> </h5>
@ -123,29 +123,29 @@
<div class="variablelist"> <div class="variablelist">
<p class="title"><b>Notation</b></p> <p class="title"><b>Notation</b></p>
<dl> <dl>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">R</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">R</span></code></span></dt>
<dd><p> <dd>
A possibly const qualified <a href="../concepts/poly.html" title=" Polymorphic Function A possibly const qualified <a href="../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> type or reference type thereof Function Object</a> type or reference type thereof
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">r</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">r</span></code></span></dt>
<dd><p> <dd>
An object convertible to <tt class="computeroutput"><span class="identifier">R</span></tt> An object convertible to <code class="computeroutput"><span class="identifier">R</span></code>
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
<dd><p> <dd>
A <a href="../../sequences.html" title="Sequences">Sequence</a> of arguments that A <a href="../../sequences.html" title="Sequences">Sequence</a> of arguments that
are accepted by <tt class="computeroutput"><span class="identifier">r</span></tt> are accepted by <code class="computeroutput"><span class="identifier">r</span></code>
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">f</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">f</span></code></span></dt>
<dd><p> <dd>
An instance of <tt class="computeroutput"><span class="identifier">fused</span><span class="special">&lt;</span><span class="identifier">R</span><span class="special">&gt;</span></tt> An instance of <code class="computeroutput"><span class="identifier">fused</span><span class="special">&lt;</span><span class="identifier">R</span><span class="special">&gt;</span></code>
</p></dd> </dd>
</dl> </dl>
</div> </div>
<a name="fusion.functional.adapters.fused_function_object.expression_semantics"></a><h5> <a name="fusion.functional.adapters.fused_function_object.expression_semantics"></a><h5>
<a name="id651881"></a> <a name="id1250433"></a>
<a href="fused_function_object.html#fusion.functional.adapters.fused_function_object.expression_semantics">Expression <a href="fused_function_object.html#fusion.functional.adapters.fused_function_object.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
@ -170,38 +170,38 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">fused_function_object</span><span class="special">&lt;</span><span class="identifier">R</span><span class="special">&gt;(</span><span class="identifier">r</span><span class="special">)</span></tt> <code class="computeroutput"><span class="identifier">fused_function_object</span><span class="special">&lt;</span><span class="identifier">R</span><span class="special">&gt;(</span><span class="identifier">r</span><span class="special">)</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Creates a fused function as described above, initializes the target Creates a fused function as described above, initializes the target
function with <tt class="computeroutput"><span class="identifier">r</span></tt>. function with <code class="computeroutput"><span class="identifier">r</span></code>.
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">fused_function_object</span><span class="special">&lt;</span><span class="identifier">R</span><span class="special">&gt;()</span></tt> <code class="computeroutput"><span class="identifier">fused_function_object</span><span class="special">&lt;</span><span class="identifier">R</span><span class="special">&gt;()</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Creates a fused function as described above, attempts to use <tt class="computeroutput"><span class="identifier">R</span></tt>'s default constructor. Creates a fused function as described above, attempts to use <code class="computeroutput"><span class="identifier">R</span></code>'s default constructor.
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt> <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Calls <tt class="computeroutput"><span class="identifier">r</span></tt> with the Calls <code class="computeroutput"><span class="identifier">r</span></code> with the
elements in <tt class="computeroutput"><span class="identifier">s</span></tt> as elements in <code class="computeroutput"><span class="identifier">s</span></code> as
its arguments. its arguments.
</p> </p>
</td> </td>
@ -209,16 +209,16 @@
</tbody> </tbody>
</table></div> </table></div>
<a name="fusion.functional.adapters.fused_function_object.example"></a><h5> <a name="fusion.functional.adapters.fused_function_object.example"></a><h5>
<a name="id652139"></a> <a name="id1250660"></a>
<a href="fused_function_object.html#fusion.functional.adapters.fused_function_object.example">Example</a> <a href="fused_function_object.html#fusion.functional.adapters.fused_function_object.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">SeqOfSeqs</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Func</span><span class="special">&gt;</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">SeqOfSeqs</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Func</span><span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../../algorithms/transformation/metafunctions/transform.html" title="transform"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">transform</span></tt></a><span class="special">&lt;</span> <span class="identifier">zip_view</span><span class="special">&lt;</span><span class="identifier">SeqOfSeqs</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">,</span> <span class="keyword">typename</span> <a href="../../algorithms/transformation/metafunctions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">transform</span></code></a><span class="special">&lt;</span> <span class="identifier">zip_view</span><span class="special">&lt;</span><span class="identifier">SeqOfSeqs</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">,</span>
<span class="identifier">fused_function_object</span><span class="special">&lt;</span><span class="identifier">Func</span> <span class="keyword">const</span> <span class="special">&amp;&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">fused_function_object</span><span class="special">&lt;</span><span class="identifier">Func</span> <span class="keyword">const</span> <span class="special">&amp;&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span>
<span class="identifier">n_ary_transform</span><span class="special">(</span><span class="identifier">SeqOfSeqs</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">Func</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">f</span><span class="special">)</span> <span class="identifier">n_ary_transform</span><span class="special">(</span><span class="identifier">SeqOfSeqs</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">Func</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">f</span><span class="special">)</span>
<span class="special">{</span> <span class="special">{</span>
<span class="keyword">return</span> <a href="../../algorithms/transformation/functions/transform.html" title="transform"><tt class="computeroutput"><span class="identifier">transform</span></tt></a><span class="special">(</span><span class="identifier">zip_view</span><span class="special">&lt;</span><span class="identifier">SeqOfSeqs</span><span class="special">&gt;(</span><span class="identifier">s</span><span class="special">),</span> <span class="keyword">return</span> <a href="../../algorithms/transformation/functions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">transform</span></code></a><span class="special">(</span><span class="identifier">zip_view</span><span class="special">&lt;</span><span class="identifier">SeqOfSeqs</span><span class="special">&gt;(</span><span class="identifier">s</span><span class="special">),</span>
<span class="identifier">fused_function_object</span><span class="special">&lt;</span><span class="identifier">Func</span> <span class="keyword">const</span> <span class="special">&amp;&gt;(</span><span class="identifier">f</span><span class="special">));</span> <span class="identifier">fused_function_object</span><span class="special">&lt;</span><span class="identifier">Func</span> <span class="keyword">const</span> <span class="special">&amp;&gt;(</span><span class="identifier">f</span><span class="special">));</span>
<span class="special">}</span> <span class="special">}</span>
@ -240,23 +240,23 @@
<span class="keyword">void</span> <span class="identifier">try_it</span><span class="special">()</span> <span class="keyword">void</span> <span class="identifier">try_it</span><span class="special">()</span>
<span class="special">{</span> <span class="special">{</span>
<a href="../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">a</span><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">2.0f</span><span class="special">);</span> <a href="../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">a</span><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">2.0f</span><span class="special">);</span>
<a href="../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">b</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">1.5f</span><span class="special">);</span> <a href="../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">b</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">1.5f</span><span class="special">);</span>
<a href="../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">c</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">0.5f</span><span class="special">);</span> <a href="../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">c</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">0.5f</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">c</span> <span class="special">==</span> <span class="identifier">n_ary_transform</span><span class="special">(</span><a href="../../sequences/generation/functions/vector_tie.html" title="vector_tie"><tt class="computeroutput"><span class="identifier">vector_tie</span></tt></a><span class="special">(</span><span class="identifier">a</span><span class="special">,</span><span class="identifier">b</span><span class="special">),</span> <span class="identifier">sub</span><span class="special">()));</span> <span class="identifier">assert</span><span class="special">(</span><span class="identifier">c</span> <span class="special">==</span> <span class="identifier">n_ary_transform</span><span class="special">(</span><a href="../../sequences/generation/functions/vector_tie.html" title="vector_tie"><code class="computeroutput"><span class="identifier">vector_tie</span></code></a><span class="special">(</span><span class="identifier">a</span><span class="special">,</span><span class="identifier">b</span><span class="special">),</span> <span class="identifier">sub</span><span class="special">()));</span>
<span class="special">}</span> <span class="special">}</span>
</pre> </pre>
<a name="fusion.functional.adapters.fused_function_object.see_also"></a><h5> <a name="fusion.functional.adapters.fused_function_object.see_also"></a><h5>
<a name="id653198"></a> <a name="id1251595"></a>
<a href="fused_function_object.html#fusion.functional.adapters.fused_function_object.see_also">See <a href="fused_function_object.html#fusion.functional.adapters.fused_function_object.see_also">See
also</a> also</a>
</h5> </h5>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
<li><a href="fused.html" title="fused"><tt class="computeroutput"><span class="identifier">fused</span></tt></a></li> <li><a href="fused.html" title="fused"><code class="computeroutput"><span class="identifier">fused</span></code></a></li>
<li><a href="fused_procedure.html" title="fused_procedure"><tt class="computeroutput"><span class="identifier">fused_procedure</span></tt></a></li> <li><a href="fused_procedure.html" title="fused_procedure"><code class="computeroutput"><span class="identifier">fused_procedure</span></code></a></li>
<li><a href="../invocation/functions/invoke_fobj.html" title=" <li><a href="../invocation/functions/invoke_fobj.html" title="
invoke_function_object"><tt class="computeroutput"><span class="identifier">invoke_function_object</span></tt></a></li> invoke_function_object"><code class="computeroutput"><span class="identifier">invoke_function_object</span></code></a></li>
<li><a href="../../support/deduce.html" title="deduce"><tt class="computeroutput"><span class="identifier">deduce</span></tt></a></li> <li><a href="../../support/deduce.html" title="deduce"><code class="computeroutput"><span class="identifier">deduce</span></code></a></li>
</ul></div> </ul></div>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -266,7 +266,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="fused_procedure.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.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="unfused_generic.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="fused_procedure.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="unfused_generic.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,30 +3,30 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>fused_procedure</title> <title>fused_procedure</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../adapters.html" title=" Adapters"> <link rel="up" href="../adapters.html" title=" Adapters">
<link rel="prev" href="fused.html" title="fused"> <link rel="prev" href="fused.html" title="fused">
<link rel="next" href="fused_function_object.html" title="fused_function_object"> <link rel="next" href="fused_function_object.html" title="fused_function_object">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> <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="../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../libraries.htm">Libraries</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="../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="fused.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.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="fused_function_object.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="fused.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="fused_function_object.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.functional.adapters.fused_procedure"></a><a href="fused_procedure.html" title="fused_procedure">fused_procedure</a></h4></div></div></div> <a name="fusion.functional.adapters.fused_procedure"></a><a href="fused_procedure.html" title="fused_procedure">fused_procedure</a></h4></div></div></div>
<a name="fusion.functional.adapters.fused_procedure.description"></a><h5> <a name="fusion.functional.adapters.fused_procedure.description"></a><h5>
<a name="id649617"></a> <a name="id1248449"></a>
<a href="fused_procedure.html#fusion.functional.adapters.fused_procedure.description">Description</a> <a href="fused_procedure.html#fusion.functional.adapters.fused_procedure.description">Description</a>
</h5> </h5>
<p> <p>
@ -38,24 +38,24 @@
Sequence</a> that contains the arguments for the target function. Sequence</a> that contains the arguments for the target function.
</p> </p>
<p> <p>
The result is discared and the adapter's return type is <tt class="computeroutput"><span class="keyword">void</span></tt>. The result is discared and the adapter's return type is <code class="computeroutput"><span class="keyword">void</span></code>.
</p> </p>
<p> <p>
The type of the target function is allowed to be const qualified or a reference. The type of the target function is allowed to be const qualified or a reference.
Const qualification is preserved and propagated appropriately (in other Const qualification is preserved and propagated appropriately (in other
words, only const versions of <tt class="literal">operator()</tt> can be used words, only const versions of <code class="literal">operator()</code> can be used
for a target function object that is const or, if the target function object 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 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 do with the const qualification of a member function, which is referring
to the type of object pointed to by <tt class="literal">this</tt> which is specified to the type of object pointed to by <code class="literal">this</code> which is specified
with the first element in the sequence passed to the adapter). with the first element in the sequence passed to the adapter).
</p> </p>
<p> <p>
If the target function is a pointer to a members function, the corresponding If the target function is a pointer to a members function, the corresponding
object can be specified as a reference, pointer, or smart pointer. In case object can be specified as a reference, pointer, or smart pointer. In case
of the latter, a freestanding <tt class="literal">get_pointer</tt> function must of the latter, a freestanding <code class="literal">get_pointer</code> function must
be defined (Boost provides this function for <tt class="literal">std::auto_ptr</tt> be defined (Boost provides this function for <code class="literal">std::auto_ptr</code>
and <a href="http://www.boost.org/libs/smart_ptr/shared_ptr.htm" target="_top"><tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">shared_ptr</span></tt></a>). and <a href="http://www.boost.org/libs/smart_ptr/shared_ptr.htm" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">shared_ptr</span></code></a>).
</p> </p>
<p> <p>
The target function must not be a pointer to a member object (dereferencing The target function must not be a pointer to a member object (dereferencing
@ -63,14 +63,14 @@
case is not implemented). case is not implemented).
</p> </p>
<a name="fusion.functional.adapters.fused_procedure.header"></a><h5> <a name="fusion.functional.adapters.fused_procedure.header"></a><h5>
<a name="id649776"></a> <a name="id1248592"></a>
<a href="fused_procedure.html#fusion.functional.adapters.fused_procedure.header">Header</a> <a href="fused_procedure.html#fusion.functional.adapters.fused_procedure.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">adapter</span><span class="special">/</span><span class="identifier">fused_procedure</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">adapter</span><span class="special">/</span><span class="identifier">fused_procedure</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.functional.adapters.fused_procedure.synopsis"></a><h5> <a name="fusion.functional.adapters.fused_procedure.synopsis"></a><h5>
<a name="id649881"></a> <a name="id1248685"></a>
<a href="fused_procedure.html#fusion.functional.adapters.fused_procedure.synopsis">Synopsis</a> <a href="fused_procedure.html#fusion.functional.adapters.fused_procedure.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -78,7 +78,7 @@
<span class="keyword">class</span> <span class="identifier">fused_procedure</span><span class="special">;</span> <span class="keyword">class</span> <span class="identifier">fused_procedure</span><span class="special">;</span>
</pre> </pre>
<a name="fusion.functional.adapters.fused_procedure.template_parameters"></a><h5> <a name="fusion.functional.adapters.fused_procedure.template_parameters"></a><h5>
<a name="id649962"></a> <a name="id1248756"></a>
<a href="fused_procedure.html#fusion.functional.adapters.fused_procedure.template_parameters">Template <a href="fused_procedure.html#fusion.functional.adapters.fused_procedure.template_parameters">Template
parameters</a> parameters</a>
</h5> </h5>
@ -108,7 +108,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Function</span></tt> <code class="computeroutput"><span class="identifier">Function</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -124,7 +124,7 @@
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.functional.adapters.fused_procedure.model_of"></a><h5> <a name="fusion.functional.adapters.fused_procedure.model_of"></a><h5>
<a name="id650076"></a> <a name="id1248857"></a>
<a href="fused_procedure.html#fusion.functional.adapters.fused_procedure.model_of">Model <a href="fused_procedure.html#fusion.functional.adapters.fused_procedure.model_of">Model
of</a> of</a>
</h5> </h5>
@ -139,28 +139,28 @@
<div class="variablelist"> <div class="variablelist">
<p class="title"><b>Notation</b></p> <p class="title"><b>Notation</b></p>
<dl> <dl>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">R</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">R</span></code></span></dt>
<dd><p> <dd>
A possibly const qualified <a href="../concepts/callable.html" title=" Callable Object">Callable A possibly const qualified <a href="../concepts/callable.html" title=" Callable Object">Callable
Object</a> type or reference type thereof Object</a> type or reference type thereof
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">r</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">r</span></code></span></dt>
<dd><p> <dd>
An object convertible to <tt class="computeroutput"><span class="identifier">R</span></tt> An object convertible to <code class="computeroutput"><span class="identifier">R</span></code>
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
<dd><p> <dd>
A <a href="../../sequences.html" title="Sequences">Sequence</a> of arguments that A <a href="../../sequences.html" title="Sequences">Sequence</a> of arguments that
are accepted by <tt class="computeroutput"><span class="identifier">r</span></tt> are accepted by <code class="computeroutput"><span class="identifier">r</span></code>
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">f</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">f</span></code></span></dt>
<dd><p> <dd>
An instance of <tt class="computeroutput"><span class="identifier">fused</span><span class="special">&lt;</span><span class="identifier">R</span><span class="special">&gt;</span></tt> An instance of <code class="computeroutput"><span class="identifier">fused</span><span class="special">&lt;</span><span class="identifier">R</span><span class="special">&gt;</span></code>
</p></dd> </dd>
</dl> </dl>
</div> </div>
<a name="fusion.functional.adapters.fused_procedure.expression_semantics"></a><h5> <a name="fusion.functional.adapters.fused_procedure.expression_semantics"></a><h5>
<a name="id650297"></a> <a name="id1249041"></a>
<a href="fused_procedure.html#fusion.functional.adapters.fused_procedure.expression_semantics">Expression <a href="fused_procedure.html#fusion.functional.adapters.fused_procedure.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
@ -185,38 +185,38 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">fused_procedure</span><span class="special">&lt;</span><span class="identifier">R</span><span class="special">&gt;(</span><span class="identifier">r</span><span class="special">)</span></tt> <code class="computeroutput"><span class="identifier">fused_procedure</span><span class="special">&lt;</span><span class="identifier">R</span><span class="special">&gt;(</span><span class="identifier">r</span><span class="special">)</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Creates a fused function as described above, initializes the target Creates a fused function as described above, initializes the target
function with <tt class="computeroutput"><span class="identifier">r</span></tt>. function with <code class="computeroutput"><span class="identifier">r</span></code>.
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">fused_procedure</span><span class="special">&lt;</span><span class="identifier">R</span><span class="special">&gt;()</span></tt> <code class="computeroutput"><span class="identifier">fused_procedure</span><span class="special">&lt;</span><span class="identifier">R</span><span class="special">&gt;()</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Creates a fused function as described above, attempts to use <tt class="computeroutput"><span class="identifier">R</span></tt>'s default constructor. Creates a fused function as described above, attempts to use <code class="computeroutput"><span class="identifier">R</span></code>'s default constructor.
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt> <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Calls <tt class="computeroutput"><span class="identifier">r</span></tt> with the Calls <code class="computeroutput"><span class="identifier">r</span></code> with the
elements in <tt class="computeroutput"><span class="identifier">s</span></tt> as elements in <code class="computeroutput"><span class="identifier">s</span></code> as
its arguments. its arguments.
</p> </p>
</td> </td>
@ -224,36 +224,36 @@
</tbody> </tbody>
</table></div> </table></div>
<a name="fusion.functional.adapters.fused_procedure.example"></a><h5> <a name="fusion.functional.adapters.fused_procedure.example"></a><h5>
<a name="id650555"></a> <a name="id1249268"></a>
<a href="fused_procedure.html#fusion.functional.adapters.fused_procedure.example">Example</a> <a href="fused_procedure.html#fusion.functional.adapters.fused_procedure.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">SequenceOfSequences</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Func</span><span class="special">&gt;</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">SequenceOfSequences</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Func</span><span class="special">&gt;</span>
<span class="keyword">void</span> <span class="identifier">n_ary_for_each</span><span class="special">(</span><span class="identifier">SequenceOfSequences</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">Func</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">f</span><span class="special">)</span> <span class="keyword">void</span> <span class="identifier">n_ary_for_each</span><span class="special">(</span><span class="identifier">SequenceOfSequences</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">Func</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">f</span><span class="special">)</span>
<span class="special">{</span> <span class="special">{</span>
<a href="../../algorithms/iteration/functions/for_each.html" title="for_each"><tt class="computeroutput"><span class="identifier">for_each</span></tt></a><span class="special">(</span><a href="../../sequences/views/zip_view.html" title="zip_view"><tt class="computeroutput"><span class="identifier">zip_view</span></tt></a><span class="special">&lt;</span><span class="identifier">SequenceOfSequences</span><span class="special">&gt;(</span><span class="identifier">s</span><span class="special">),</span> <a href="../../algorithms/iteration/functions/for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">for_each</span></code></a><span class="special">(</span><a href="../../sequences/views/zip_view.html" title="zip_view"><code class="computeroutput"><span class="identifier">zip_view</span></code></a><span class="special">&lt;</span><span class="identifier">SequenceOfSequences</span><span class="special">&gt;(</span><span class="identifier">s</span><span class="special">),</span>
<span class="identifier">fused_procedure</span><span class="special">&lt;</span><span class="identifier">Func</span> <span class="keyword">const</span> <span class="special">&amp;&gt;(</span><span class="identifier">f</span><span class="special">));</span> <span class="identifier">fused_procedure</span><span class="special">&lt;</span><span class="identifier">Func</span> <span class="keyword">const</span> <span class="special">&amp;&gt;(</span><span class="identifier">f</span><span class="special">));</span>
<span class="special">}</span> <span class="special">}</span>
<span class="keyword">void</span> <span class="identifier">try_it</span><span class="special">()</span> <span class="keyword">void</span> <span class="identifier">try_it</span><span class="special">()</span>
<span class="special">{</span> <span class="special">{</span>
<a href="../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">a</span><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">2.0f</span><span class="special">);</span> <a href="../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">a</span><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">2.0f</span><span class="special">);</span>
<a href="../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">b</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">1.5f</span><span class="special">);</span> <a href="../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">b</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">1.5f</span><span class="special">);</span>
<span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">lambda</span><span class="special">;</span> <span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">lambda</span><span class="special">;</span>
<span class="identifier">n_ary_for_each</span><span class="special">(</span><a href="../../sequences/generation/functions/vector_tie.html" title="vector_tie"><tt class="computeroutput"><span class="identifier">vector_tie</span></tt></a><span class="special">(</span><span class="identifier">a</span><span class="special">,</span><span class="identifier">b</span><span class="special">),</span> <span class="identifier">_1</span> <span class="special">-=</span> <span class="identifier">_2</span><span class="special">);</span> <span class="identifier">n_ary_for_each</span><span class="special">(</span><a href="../../sequences/generation/functions/vector_tie.html" title="vector_tie"><code class="computeroutput"><span class="identifier">vector_tie</span></code></a><span class="special">(</span><span class="identifier">a</span><span class="special">,</span><span class="identifier">b</span><span class="special">),</span> <span class="identifier">_1</span> <span class="special">-=</span> <span class="identifier">_2</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">a</span> <span class="special">==</span> <a href="../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">0.5f</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><span class="identifier">a</span> <span class="special">==</span> <a href="../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">0.5f</span><span class="special">));</span>
<span class="special">}</span> <span class="special">}</span>
</pre> </pre>
<a name="fusion.functional.adapters.fused_procedure.see_also"></a><h5> <a name="fusion.functional.adapters.fused_procedure.see_also"></a><h5>
<a name="id651165"></a> <a name="id1249808"></a>
<a href="fused_procedure.html#fusion.functional.adapters.fused_procedure.see_also">See <a href="fused_procedure.html#fusion.functional.adapters.fused_procedure.see_also">See
also</a> also</a>
</h5> </h5>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
<li><a href="fused.html" title="fused"><tt class="computeroutput"><span class="identifier">fused</span></tt></a></li> <li><a href="fused.html" title="fused"><code class="computeroutput"><span class="identifier">fused</span></code></a></li>
<li><a href="fused_function_object.html" title="fused_function_object"><tt class="computeroutput"><span class="identifier">fused_function_object</span></tt></a></li> <li><a href="fused_function_object.html" title="fused_function_object"><code class="computeroutput"><span class="identifier">fused_function_object</span></code></a></li>
<li><a href="../invocation/functions/invoke_proc.html" title=" <li><a href="../invocation/functions/invoke_proc.html" title="
invoke_procedure"><tt class="computeroutput"><span class="identifier">invoke_procedure</span></tt></a></li> invoke_procedure"><code class="computeroutput"><span class="identifier">invoke_procedure</span></code></a></li>
</ul></div> </ul></div>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -263,7 +263,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="fused.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.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="fused_function_object.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="fused.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="fused_function_object.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,30 +3,30 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>unfused_generic</title> <title>unfused_generic</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../adapters.html" title=" Adapters"> <link rel="up" href="../adapters.html" title=" Adapters">
<link rel="prev" href="fused_function_object.html" title="fused_function_object"> <link rel="prev" href="fused_function_object.html" title="fused_function_object">
<link rel="next" href="unfused_lvalue_args.html" title="unfused_lvalue_args"> <link rel="next" href="unfused_lvalue_args.html" title="unfused_lvalue_args">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> <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="../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../libraries.htm">Libraries</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="../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="fused_function_object.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.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="unfused_lvalue_args.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="fused_function_object.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="unfused_lvalue_args.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.functional.adapters.unfused_generic"></a><a href="unfused_generic.html" title="unfused_generic">unfused_generic</a></h4></div></div></div> <a name="fusion.functional.adapters.unfused_generic"></a><a href="unfused_generic.html" title="unfused_generic">unfused_generic</a></h4></div></div></div>
<a name="fusion.functional.adapters.unfused_generic.description"></a><h5> <a name="fusion.functional.adapters.unfused_generic.description"></a><h5>
<a name="id653334"></a> <a name="id1251715"></a>
<a href="unfused_generic.html#fusion.functional.adapters.unfused_generic.description">Description</a> <a href="unfused_generic.html#fusion.functional.adapters.unfused_generic.description">Description</a>
</h5> </h5>
<p> <p>
@ -45,24 +45,24 @@
<span class="inlinemediaobject"><img src="../../../images/tip.png" alt="tip"></span> Detecting mutable LValues on a per-argument basis <span class="inlinemediaobject"><img src="../../../images/tip.png" alt="tip"></span> Detecting mutable LValues on a per-argument basis
is currently a compile time expensive operation (see <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2002/n1385.htm" target="_top">The is currently a compile time expensive operation (see <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2002/n1385.htm" target="_top">The
Forwarding Problem</a> for details). Therefore, there are two, lightweight Forwarding Problem</a> for details). Therefore, there are two, lightweight
and more restricted variants of this class template, <a href="unfused_lvalue_args.html" title="unfused_lvalue_args"><tt class="computeroutput"><span class="identifier">unfused_lvalue_args</span></tt></a> and <a href="unfused_rvalue_args.html" title="unfused_rvalue_args"><tt class="computeroutput"><span class="identifier">unfused_rvalue_args</span></tt></a>. and more restricted variants of this class template, <a href="unfused_lvalue_args.html" title="unfused_lvalue_args"><code class="computeroutput"><span class="identifier">unfused_lvalue_args</span></code></a> and <a href="unfused_rvalue_args.html" title="unfused_rvalue_args"><code class="computeroutput"><span class="identifier">unfused_rvalue_args</span></code></a>.
</p></div> </p></div>
<p> <p>
The type of the target function is allowed to be const qualified or a reference. The type of the target function is allowed to be const qualified or a reference.
Const qualification is preserved and propagated appropriately (in other Const qualification is preserved and propagated appropriately (in other
words, only const versions of <tt class="literal">operator()</tt> can be used words, only const versions of <code class="literal">operator()</code> can be used
if the target function object is const - or, in case the target function if the target function object is const - or, in case the target function
object is held by value, the adapter is const). object is held by value, the adapter is const).
</p> </p>
<a name="fusion.functional.adapters.unfused_generic.header"></a><h5> <a name="fusion.functional.adapters.unfused_generic.header"></a><h5>
<a name="id653487"></a> <a name="id1251857"></a>
<a href="unfused_generic.html#fusion.functional.adapters.unfused_generic.header">Header</a> <a href="unfused_generic.html#fusion.functional.adapters.unfused_generic.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">adapter</span><span class="special">/</span><span class="identifier">unfused_generic</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">adapter</span><span class="special">/</span><span class="identifier">unfused_generic</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.functional.adapters.unfused_generic.synopsis"></a><h5> <a name="fusion.functional.adapters.unfused_generic.synopsis"></a><h5>
<a name="id653594"></a> <a name="id1251952"></a>
<a href="unfused_generic.html#fusion.functional.adapters.unfused_generic.synopsis">Synopsis</a> <a href="unfused_generic.html#fusion.functional.adapters.unfused_generic.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -70,7 +70,7 @@
<span class="keyword">class</span> <span class="identifier">unfused_generic</span><span class="special">;</span> <span class="keyword">class</span> <span class="identifier">unfused_generic</span><span class="special">;</span>
</pre> </pre>
<a name="fusion.functional.adapters.unfused_generic.template_parameters"></a><h5> <a name="fusion.functional.adapters.unfused_generic.template_parameters"></a><h5>
<a name="id653675"></a> <a name="id1252023"></a>
<a href="unfused_generic.html#fusion.functional.adapters.unfused_generic.template_parameters">Template <a href="unfused_generic.html#fusion.functional.adapters.unfused_generic.template_parameters">Template
parameters</a> parameters</a>
</h5> </h5>
@ -100,7 +100,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Function</span></tt> <code class="computeroutput"><span class="identifier">Function</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -117,7 +117,7 @@
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.functional.adapters.unfused_generic.model_of"></a><h5> <a name="fusion.functional.adapters.unfused_generic.model_of"></a><h5>
<a name="id653790"></a> <a name="id1252124"></a>
<a href="unfused_generic.html#fusion.functional.adapters.unfused_generic.model_of">Model <a href="unfused_generic.html#fusion.functional.adapters.unfused_generic.model_of">Model
of</a> of</a>
</h5> </h5>
@ -132,33 +132,33 @@
<div class="variablelist"> <div class="variablelist">
<p class="title"><b>Notation</b></p> <p class="title"><b>Notation</b></p>
<dl> <dl>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">F</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">F</span></code></span></dt>
<dd><p> <dd>
A possibly const qualified, unary <a href="../concepts/poly.html" title=" Polymorphic Function A possibly const qualified, unary <a href="../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> type or reference type thereof Function Object</a> type or reference type thereof
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">f</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">f</span></code></span></dt>
<dd><p> <dd>
An object convertible to <tt class="computeroutput"><span class="identifier">F</span></tt> An object convertible to <code class="computeroutput"><span class="identifier">F</span></code>
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">UG</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">UG</span></code></span></dt>
<dd><p> <dd>
The type <tt class="computeroutput"><span class="identifier">unfused_generic</span><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;</span></tt> The type <code class="computeroutput"><span class="identifier">unfused_generic</span><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;</span></code>
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">ug</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">ug</span></code></span></dt>
<dd><p> <dd>
An instance of <tt class="computeroutput"><span class="identifier">UG</span></tt>, An instance of <code class="computeroutput"><span class="identifier">UG</span></code>, initialized
initialized with <tt class="computeroutput"><span class="identifier">f</span></tt> with <code class="computeroutput"><span class="identifier">f</span></code>
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">a0</span></tt>...<tt class="computeroutput"><span class="identifier">aN</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">a0</span></code>...<code class="computeroutput"><span class="identifier">aN</span></code></span></dt>
<dd><p> <dd>
Arguments to <tt class="computeroutput"><span class="identifier">ug</span></tt> Arguments to <code class="computeroutput"><span class="identifier">ug</span></code>
</p></dd> </dd>
</dl> </dl>
</div> </div>
<a name="fusion.functional.adapters.unfused_generic.expression_semantics"></a><h5> <a name="fusion.functional.adapters.unfused_generic.expression_semantics"></a><h5>
<a name="id654058"></a> <a name="id1252346"></a>
<a href="unfused_generic.html#fusion.functional.adapters.unfused_generic.expression_semantics">Expression <a href="unfused_generic.html#fusion.functional.adapters.unfused_generic.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
@ -183,46 +183,46 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">UG</span><span class="special">(</span><span class="identifier">f</span><span class="special">)</span></tt> <code class="computeroutput"><span class="identifier">UG</span><span class="special">(</span><span class="identifier">f</span><span class="special">)</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Creates a fused function as described above, initializes the target Creates a fused function as described above, initializes the target
function with <tt class="computeroutput"><span class="identifier">f</span></tt>. function with <code class="computeroutput"><span class="identifier">f</span></code>.
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">UG</span><span class="special">()</span></tt> <code class="computeroutput"><span class="identifier">UG</span><span class="special">()</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Creates a fused function as described above, attempts to use <tt class="computeroutput"><span class="identifier">F</span></tt>'s default constructor. Creates a fused function as described above, attempts to use <code class="computeroutput"><span class="identifier">F</span></code>'s default constructor.
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">ug</span><span class="special">(</span><span class="identifier">a0</span></tt>...<tt class="computeroutput"><span class="identifier">aN</span><span class="special">)</span></tt> <code class="computeroutput"><span class="identifier">ug</span><span class="special">(</span><span class="identifier">a0</span></code>...<code class="computeroutput"><span class="identifier">aN</span><span class="special">)</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Calls <tt class="computeroutput"><span class="identifier">f</span></tt> with a Calls <code class="computeroutput"><span class="identifier">f</span></code> with a
<a href="../../sequences.html" title="Sequences">Sequence</a> that contains <a href="../../sequences.html" title="Sequences">Sequence</a> that contains
references to the arguments <tt class="computeroutput"><span class="identifier">a0</span></tt>...<tt class="computeroutput"><span class="identifier">aN</span></tt>. references to the arguments <code class="computeroutput"><span class="identifier">a0</span></code>...<code class="computeroutput"><span class="identifier">aN</span></code>.
</p> </p>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table></div> </table></div>
<a name="fusion.functional.adapters.unfused_generic.example"></a><h5> <a name="fusion.functional.adapters.unfused_generic.example"></a><h5>
<a name="id654324"></a> <a name="id1252581"></a>
<a href="unfused_generic.html#fusion.functional.adapters.unfused_generic.example">Example</a> <a href="unfused_generic.html#fusion.functional.adapters.unfused_generic.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -273,16 +273,16 @@
<span class="special">}</span> <span class="special">}</span>
</pre> </pre>
<a name="fusion.functional.adapters.unfused_generic.see_also"></a><h5> <a name="fusion.functional.adapters.unfused_generic.see_also"></a><h5>
<a name="id655720"></a> <a name="id1253810"></a>
<a href="unfused_generic.html#fusion.functional.adapters.unfused_generic.see_also">See <a href="unfused_generic.html#fusion.functional.adapters.unfused_generic.see_also">See
also</a> also</a>
</h5> </h5>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
<li><a href="unfused_lvalue_args.html" title="unfused_lvalue_args"><tt class="computeroutput"><span class="identifier">unfused_lvalue_args</span></tt></a></li> <li><a href="unfused_lvalue_args.html" title="unfused_lvalue_args"><code class="computeroutput"><span class="identifier">unfused_lvalue_args</span></code></a></li>
<li><a href="unfused_rvalue_args.html" title="unfused_rvalue_args"><tt class="computeroutput"><span class="identifier">unfused_rvalue_args</span></tt></a></li> <li><a href="unfused_rvalue_args.html" title="unfused_rvalue_args"><code class="computeroutput"><span class="identifier">unfused_rvalue_args</span></code></a></li>
<li><a href="unfused_typed.html" title="unfused_typed"><tt class="computeroutput"><span class="identifier">unfused_typed</span></tt></a></li> <li><a href="unfused_typed.html" title="unfused_typed"><code class="computeroutput"><span class="identifier">unfused_typed</span></code></a></li>
<li><a href="../../support/deduce.html" title="deduce"><tt class="computeroutput"><span class="identifier">deduce</span></tt></a></li> <li><a href="../../support/deduce.html" title="deduce"><code class="computeroutput"><span class="identifier">deduce</span></code></a></li>
<li><a href="../../support/deduce_sequence.html" title="deduce_sequence"><tt class="computeroutput"><span class="identifier">deduce_sequence</span></tt></a></li> <li><a href="../../support/deduce_sequence.html" title="deduce_sequence"><code class="computeroutput"><span class="identifier">deduce_sequence</span></code></a></li>
</ul></div> </ul></div>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -292,7 +292,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="fused_function_object.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.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="unfused_lvalue_args.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="fused_function_object.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="unfused_lvalue_args.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,30 +3,30 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>unfused_lvalue_args</title> <title>unfused_lvalue_args</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../adapters.html" title=" Adapters"> <link rel="up" href="../adapters.html" title=" Adapters">
<link rel="prev" href="unfused_generic.html" title="unfused_generic"> <link rel="prev" href="unfused_generic.html" title="unfused_generic">
<link rel="next" href="unfused_rvalue_args.html" title="unfused_rvalue_args"> <link rel="next" href="unfused_rvalue_args.html" title="unfused_rvalue_args">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> <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="../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../libraries.htm">Libraries</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="../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="unfused_generic.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.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="unfused_rvalue_args.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="unfused_generic.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="unfused_rvalue_args.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.functional.adapters.unfused_lvalue_args"></a><a href="unfused_lvalue_args.html" title="unfused_lvalue_args">unfused_lvalue_args</a></h4></div></div></div> <a name="fusion.functional.adapters.unfused_lvalue_args"></a><a href="unfused_lvalue_args.html" title="unfused_lvalue_args">unfused_lvalue_args</a></h4></div></div></div>
<a name="fusion.functional.adapters.unfused_lvalue_args.description"></a><h5> <a name="fusion.functional.adapters.unfused_lvalue_args.description"></a><h5>
<a name="id655877"></a> <a name="id1253949"></a>
<a href="unfused_lvalue_args.html#fusion.functional.adapters.unfused_lvalue_args.description">Description</a> <a href="unfused_lvalue_args.html#fusion.functional.adapters.unfused_lvalue_args.description">Description</a>
</h5> </h5>
<p> <p>
@ -43,19 +43,19 @@
<p> <p>
The type of the target function is allowed to be const qualified or a reference. The type of the target function is allowed to be const qualified or a reference.
Const qualification is preserved and propagated appropriately (in other Const qualification is preserved and propagated appropriately (in other
words, only const versions of <tt class="literal">operator()</tt> can be used words, only const versions of <code class="literal">operator()</code> can be used
if the target function object is const - or, in case the target function if the target function object is const - or, in case the target function
object is held by value, the adapter is const). object is held by value, the adapter is const).
</p> </p>
<a name="fusion.functional.adapters.unfused_lvalue_args.header"></a><h5> <a name="fusion.functional.adapters.unfused_lvalue_args.header"></a><h5>
<a name="id655956"></a> <a name="id1254020"></a>
<a href="unfused_lvalue_args.html#fusion.functional.adapters.unfused_lvalue_args.header">Header</a> <a href="unfused_lvalue_args.html#fusion.functional.adapters.unfused_lvalue_args.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">adapter</span><span class="special">/</span><span class="identifier">unfused_lvalue_args</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">adapter</span><span class="special">/</span><span class="identifier">unfused_lvalue_args</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.functional.adapters.unfused_lvalue_args.synopsis"></a><h5> <a name="fusion.functional.adapters.unfused_lvalue_args.synopsis"></a><h5>
<a name="id656063"></a> <a name="id1254115"></a>
<a href="unfused_lvalue_args.html#fusion.functional.adapters.unfused_lvalue_args.synopsis">Synopsis</a> <a href="unfused_lvalue_args.html#fusion.functional.adapters.unfused_lvalue_args.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -63,7 +63,7 @@
<span class="keyword">class</span> <span class="identifier">unfused_lvalue_args</span><span class="special">;</span> <span class="keyword">class</span> <span class="identifier">unfused_lvalue_args</span><span class="special">;</span>
</pre> </pre>
<a name="fusion.functional.adapters.unfused_lvalue_args.template_parameters"></a><h5> <a name="fusion.functional.adapters.unfused_lvalue_args.template_parameters"></a><h5>
<a name="id656146"></a> <a name="id1254189"></a>
<a href="unfused_lvalue_args.html#fusion.functional.adapters.unfused_lvalue_args.template_parameters">Template <a href="unfused_lvalue_args.html#fusion.functional.adapters.unfused_lvalue_args.template_parameters">Template
parameters</a> parameters</a>
</h5> </h5>
@ -93,7 +93,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Function</span></tt> <code class="computeroutput"><span class="identifier">Function</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -110,7 +110,7 @@
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.functional.adapters.unfused_lvalue_args.model_of"></a><h5> <a name="fusion.functional.adapters.unfused_lvalue_args.model_of"></a><h5>
<a name="id656261"></a> <a name="id1254289"></a>
<a href="unfused_lvalue_args.html#fusion.functional.adapters.unfused_lvalue_args.model_of">Model <a href="unfused_lvalue_args.html#fusion.functional.adapters.unfused_lvalue_args.model_of">Model
of</a> of</a>
</h5> </h5>
@ -125,33 +125,33 @@
<div class="variablelist"> <div class="variablelist">
<p class="title"><b>Notation</b></p> <p class="title"><b>Notation</b></p>
<dl> <dl>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">F</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">F</span></code></span></dt>
<dd><p> <dd>
A possibly const qualified, unary <a href="../concepts/poly.html" title=" Polymorphic Function A possibly const qualified, unary <a href="../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> type or reference type thereof Function Object</a> type or reference type thereof
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">f</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">f</span></code></span></dt>
<dd><p> <dd>
An object convertible to <tt class="computeroutput"><span class="identifier">F</span></tt> An object convertible to <code class="computeroutput"><span class="identifier">F</span></code>
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">UL</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">UL</span></code></span></dt>
<dd><p> <dd>
The type <tt class="computeroutput"><span class="identifier">unfused_lvalue_args</span><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;</span></tt> The type <code class="computeroutput"><span class="identifier">unfused_lvalue_args</span><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;</span></code>
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">ul</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">ul</span></code></span></dt>
<dd><p> <dd>
An instance of <tt class="computeroutput"><span class="identifier">UL</span></tt>, An instance of <code class="computeroutput"><span class="identifier">UL</span></code>, initialized
initialized with <tt class="computeroutput"><span class="identifier">f</span></tt> with <code class="computeroutput"><span class="identifier">f</span></code>
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">a0</span></tt>...<tt class="computeroutput"><span class="identifier">aN</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">a0</span></code>...<code class="computeroutput"><span class="identifier">aN</span></code></span></dt>
<dd><p> <dd>
Arguments to <tt class="computeroutput"><span class="identifier">ul</span></tt> Arguments to <code class="computeroutput"><span class="identifier">ul</span></code>
</p></dd> </dd>
</dl> </dl>
</div> </div>
<a name="fusion.functional.adapters.unfused_lvalue_args.expression_semantics"></a><h5> <a name="fusion.functional.adapters.unfused_lvalue_args.expression_semantics"></a><h5>
<a name="id656531"></a> <a name="id1254514"></a>
<a href="unfused_lvalue_args.html#fusion.functional.adapters.unfused_lvalue_args.expression_semantics">Expression <a href="unfused_lvalue_args.html#fusion.functional.adapters.unfused_lvalue_args.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
@ -176,46 +176,46 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">UL</span><span class="special">(</span><span class="identifier">f</span><span class="special">)</span></tt> <code class="computeroutput"><span class="identifier">UL</span><span class="special">(</span><span class="identifier">f</span><span class="special">)</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Creates a fused function as described above, initializes the target Creates a fused function as described above, initializes the target
function with <tt class="computeroutput"><span class="identifier">f</span></tt>. function with <code class="computeroutput"><span class="identifier">f</span></code>.
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">UL</span><span class="special">()</span></tt> <code class="computeroutput"><span class="identifier">UL</span><span class="special">()</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Creates a fused function as described above, attempts to use <tt class="computeroutput"><span class="identifier">F</span></tt>'s default constructor. Creates a fused function as described above, attempts to use <code class="computeroutput"><span class="identifier">F</span></code>'s default constructor.
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">ul</span><span class="special">(</span><span class="identifier">a0</span></tt>...<tt class="computeroutput"><span class="identifier">aN</span><span class="special">)</span></tt> <code class="computeroutput"><span class="identifier">ul</span><span class="special">(</span><span class="identifier">a0</span></code>...<code class="computeroutput"><span class="identifier">aN</span><span class="special">)</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Calls <tt class="computeroutput"><span class="identifier">f</span></tt> with a Calls <code class="computeroutput"><span class="identifier">f</span></code> with a
<a href="../../sequences.html" title="Sequences">Sequence</a> that contains <a href="../../sequences.html" title="Sequences">Sequence</a> that contains
references to the arguments <tt class="computeroutput"><span class="identifier">a0</span></tt>...<tt class="computeroutput"><span class="identifier">aN</span></tt>. references to the arguments <code class="computeroutput"><span class="identifier">a0</span></code>...<code class="computeroutput"><span class="identifier">aN</span></code>.
</p> </p>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table></div> </table></div>
<a name="fusion.functional.adapters.unfused_lvalue_args.example"></a><h5> <a name="fusion.functional.adapters.unfused_lvalue_args.example"></a><h5>
<a name="id656798"></a> <a name="id1254749"></a>
<a href="unfused_lvalue_args.html#fusion.functional.adapters.unfused_lvalue_args.example">Example</a> <a href="unfused_lvalue_args.html#fusion.functional.adapters.unfused_lvalue_args.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -230,7 +230,7 @@
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Seq</span><span class="special">&gt;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Seq</span><span class="special">&gt;</span>
<span class="keyword">void</span> <span class="keyword">operator</span><span class="special">()(</span><span class="identifier">Seq</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">s</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">void</span> <span class="keyword">operator</span><span class="special">()(</span><span class="identifier">Seq</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">s</span><span class="special">)</span> <span class="keyword">const</span>
<span class="special">{</span> <span class="special">{</span>
<a href="../../algorithms/iteration/functions/for_each.html" title="for_each"><tt class="computeroutput"><span class="identifier">for_each</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">,++</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">lambda</span><span class="special">::</span><span class="identifier">_1</span><span class="special">);</span> <a href="../../algorithms/iteration/functions/for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">for_each</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">,++</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">lambda</span><span class="special">::</span><span class="identifier">_1</span><span class="special">);</span>
<span class="special">}</span> <span class="special">}</span>
<span class="special">};</span> <span class="special">};</span>
@ -243,14 +243,14 @@
<span class="special">}</span> <span class="special">}</span>
</pre> </pre>
<a name="fusion.functional.adapters.unfused_lvalue_args.see_also"></a><h5> <a name="fusion.functional.adapters.unfused_lvalue_args.see_also"></a><h5>
<a name="id657296"></a> <a name="id1255190"></a>
<a href="unfused_lvalue_args.html#fusion.functional.adapters.unfused_lvalue_args.see_also">See <a href="unfused_lvalue_args.html#fusion.functional.adapters.unfused_lvalue_args.see_also">See
also</a> also</a>
</h5> </h5>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
<li><a href="unfused_rvalue_args.html" title="unfused_rvalue_args"><tt class="computeroutput"><span class="identifier">unfused_rvalue_args</span></tt></a></li> <li><a href="unfused_rvalue_args.html" title="unfused_rvalue_args"><code class="computeroutput"><span class="identifier">unfused_rvalue_args</span></code></a></li>
<li><a href="unfused_generic.html" title="unfused_generic"><tt class="computeroutput"><span class="identifier">unfused_generic</span></tt></a></li> <li><a href="unfused_generic.html" title="unfused_generic"><code class="computeroutput"><span class="identifier">unfused_generic</span></code></a></li>
<li><a href="unfused_typed.html" title="unfused_typed"><tt class="computeroutput"><span class="identifier">unfused_typed</span></tt></a></li> <li><a href="unfused_typed.html" title="unfused_typed"><code class="computeroutput"><span class="identifier">unfused_typed</span></code></a></li>
</ul></div> </ul></div>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -260,7 +260,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="unfused_generic.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.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="unfused_rvalue_args.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="unfused_generic.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="unfused_rvalue_args.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,30 +3,30 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>unfused_rvalue_args</title> <title>unfused_rvalue_args</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../adapters.html" title=" Adapters"> <link rel="up" href="../adapters.html" title=" Adapters">
<link rel="prev" href="unfused_lvalue_args.html" title="unfused_lvalue_args"> <link rel="prev" href="unfused_lvalue_args.html" title="unfused_lvalue_args">
<link rel="next" href="unfused_typed.html" title="unfused_typed"> <link rel="next" href="unfused_typed.html" title="unfused_typed">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> <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="../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../libraries.htm">Libraries</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="../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="unfused_lvalue_args.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.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="unfused_typed.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="unfused_lvalue_args.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="unfused_typed.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.functional.adapters.unfused_rvalue_args"></a><a href="unfused_rvalue_args.html" title="unfused_rvalue_args">unfused_rvalue_args</a></h4></div></div></div> <a name="fusion.functional.adapters.unfused_rvalue_args"></a><a href="unfused_rvalue_args.html" title="unfused_rvalue_args">unfused_rvalue_args</a></h4></div></div></div>
<a name="fusion.functional.adapters.unfused_rvalue_args.description"></a><h5> <a name="fusion.functional.adapters.unfused_rvalue_args.description"></a><h5>
<a name="id657410"></a> <a name="id1255291"></a>
<a href="unfused_rvalue_args.html#fusion.functional.adapters.unfused_rvalue_args.description">Description</a> <a href="unfused_rvalue_args.html#fusion.functional.adapters.unfused_rvalue_args.description">Description</a>
</h5> </h5>
<p> <p>
@ -43,19 +43,19 @@
<p> <p>
The type of the target function is allowed to be const qualified or a reference. The type of the target function is allowed to be const qualified or a reference.
Const qualification is preserved and propagated appropriately (in other Const qualification is preserved and propagated appropriately (in other
words, only const versions of <tt class="literal">operator()</tt> can be used words, only const versions of <code class="literal">operator()</code> can be used
if the target function object is const - or, in case the target function if the target function object is const - or, in case the target function
object is held by value, the adapter is const). object is held by value, the adapter is const).
</p> </p>
<a name="fusion.functional.adapters.unfused_rvalue_args.header"></a><h5> <a name="fusion.functional.adapters.unfused_rvalue_args.header"></a><h5>
<a name="id657489"></a> <a name="id1255362"></a>
<a href="unfused_rvalue_args.html#fusion.functional.adapters.unfused_rvalue_args.header">Header</a> <a href="unfused_rvalue_args.html#fusion.functional.adapters.unfused_rvalue_args.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">adapter</span><span class="special">/</span><span class="identifier">unfused_rvalue_args</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">adapter</span><span class="special">/</span><span class="identifier">unfused_rvalue_args</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.functional.adapters.unfused_rvalue_args.synopsis"></a><h5> <a name="fusion.functional.adapters.unfused_rvalue_args.synopsis"></a><h5>
<a name="id657596"></a> <a name="id1255457"></a>
<a href="unfused_rvalue_args.html#fusion.functional.adapters.unfused_rvalue_args.synopsis">Synopsis</a> <a href="unfused_rvalue_args.html#fusion.functional.adapters.unfused_rvalue_args.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -63,7 +63,7 @@
<span class="keyword">class</span> <span class="identifier">unfused_rvalue_args</span><span class="special">;</span> <span class="keyword">class</span> <span class="identifier">unfused_rvalue_args</span><span class="special">;</span>
</pre> </pre>
<a name="fusion.functional.adapters.unfused_rvalue_args.template_parameters"></a><h5> <a name="fusion.functional.adapters.unfused_rvalue_args.template_parameters"></a><h5>
<a name="id657678"></a> <a name="id1255531"></a>
<a href="unfused_rvalue_args.html#fusion.functional.adapters.unfused_rvalue_args.template_parameters">Template <a href="unfused_rvalue_args.html#fusion.functional.adapters.unfused_rvalue_args.template_parameters">Template
parameters</a> parameters</a>
</h5> </h5>
@ -93,7 +93,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Function</span></tt> <code class="computeroutput"><span class="identifier">Function</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -110,7 +110,7 @@
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.functional.adapters.unfused_rvalue_args.model_of"></a><h5> <a name="fusion.functional.adapters.unfused_rvalue_args.model_of"></a><h5>
<a name="id657793"></a> <a name="id1255632"></a>
<a href="unfused_rvalue_args.html#fusion.functional.adapters.unfused_rvalue_args.model_of">Model <a href="unfused_rvalue_args.html#fusion.functional.adapters.unfused_rvalue_args.model_of">Model
of</a> of</a>
</h5> </h5>
@ -125,33 +125,33 @@
<div class="variablelist"> <div class="variablelist">
<p class="title"><b>Notation</b></p> <p class="title"><b>Notation</b></p>
<dl> <dl>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">F</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">F</span></code></span></dt>
<dd><p> <dd>
A possibly const qualified, unary <a href="../concepts/poly.html" title=" Polymorphic Function A possibly const qualified, unary <a href="../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> type or reference type thereof Function Object</a> type or reference type thereof
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">f</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">f</span></code></span></dt>
<dd><p> <dd>
An object convertible to <tt class="computeroutput"><span class="identifier">F</span></tt> An object convertible to <code class="computeroutput"><span class="identifier">F</span></code>
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">UR</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">UR</span></code></span></dt>
<dd><p> <dd>
The type <tt class="computeroutput"><span class="identifier">unfused_rvalue_args</span><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;</span></tt> The type <code class="computeroutput"><span class="identifier">unfused_rvalue_args</span><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;</span></code>
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">ur</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">ur</span></code></span></dt>
<dd><p> <dd>
An instance of <tt class="computeroutput"><span class="identifier">UR</span></tt>, An instance of <code class="computeroutput"><span class="identifier">UR</span></code>, initialized
initialized with <tt class="computeroutput"><span class="identifier">f</span></tt> with <code class="computeroutput"><span class="identifier">f</span></code>
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">a0</span></tt>...<tt class="computeroutput"><span class="identifier">aN</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">a0</span></code>...<code class="computeroutput"><span class="identifier">aN</span></code></span></dt>
<dd><p> <dd>
Arguments to <tt class="computeroutput"><span class="identifier">ur</span></tt> Arguments to <code class="computeroutput"><span class="identifier">ur</span></code>
</p></dd> </dd>
</dl> </dl>
</div> </div>
<a name="fusion.functional.adapters.unfused_rvalue_args.expression_semantics"></a><h5> <a name="fusion.functional.adapters.unfused_rvalue_args.expression_semantics"></a><h5>
<a name="id658063"></a> <a name="id1255857"></a>
<a href="unfused_rvalue_args.html#fusion.functional.adapters.unfused_rvalue_args.expression_semantics">Expression <a href="unfused_rvalue_args.html#fusion.functional.adapters.unfused_rvalue_args.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
@ -176,46 +176,46 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">UR</span><span class="special">(</span><span class="identifier">f</span><span class="special">)</span></tt> <code class="computeroutput"><span class="identifier">UR</span><span class="special">(</span><span class="identifier">f</span><span class="special">)</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Creates a fused function as described above, initializes the target Creates a fused function as described above, initializes the target
function with <tt class="computeroutput"><span class="identifier">f</span></tt>. function with <code class="computeroutput"><span class="identifier">f</span></code>.
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">UR</span><span class="special">()</span></tt> <code class="computeroutput"><span class="identifier">UR</span><span class="special">()</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Creates a fused function as described above, attempts to use <tt class="computeroutput"><span class="identifier">F</span></tt>'s default constructor. Creates a fused function as described above, attempts to use <code class="computeroutput"><span class="identifier">F</span></code>'s default constructor.
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">ur</span><span class="special">(</span><span class="identifier">a0</span></tt>...<tt class="computeroutput"><span class="identifier">aN</span><span class="special">)</span></tt> <code class="computeroutput"><span class="identifier">ur</span><span class="special">(</span><span class="identifier">a0</span></code>...<code class="computeroutput"><span class="identifier">aN</span><span class="special">)</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Calls <tt class="computeroutput"><span class="identifier">f</span></tt> with a Calls <code class="computeroutput"><span class="identifier">f</span></code> with a
<a href="../../sequences.html" title="Sequences">Sequence</a> that contains <a href="../../sequences.html" title="Sequences">Sequence</a> that contains
references to the arguments <tt class="computeroutput"><span class="identifier">a0</span></tt>...<tt class="computeroutput"><span class="identifier">aN</span></tt>. references to the arguments <code class="computeroutput"><span class="identifier">a0</span></code>...<code class="computeroutput"><span class="identifier">aN</span></code>.
</p> </p>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table></div> </table></div>
<a name="fusion.functional.adapters.unfused_rvalue_args.example"></a><h5> <a name="fusion.functional.adapters.unfused_rvalue_args.example"></a><h5>
<a name="id658330"></a> <a name="id1256093"></a>
<a href="unfused_rvalue_args.html#fusion.functional.adapters.unfused_rvalue_args.example">Example</a> <a href="unfused_rvalue_args.html#fusion.functional.adapters.unfused_rvalue_args.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -241,16 +241,16 @@
<span class="special">}</span> <span class="special">}</span>
</pre> </pre>
<a name="fusion.functional.adapters.unfused_rvalue_args.see_also"></a><h5> <a name="fusion.functional.adapters.unfused_rvalue_args.see_also"></a><h5>
<a name="id658728"></a> <a name="id1256446"></a>
<a href="unfused_rvalue_args.html#fusion.functional.adapters.unfused_rvalue_args.see_also">See <a href="unfused_rvalue_args.html#fusion.functional.adapters.unfused_rvalue_args.see_also">See
also</a> also</a>
</h5> </h5>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
<li><a href="unfused_lvalue_args.html" title="unfused_lvalue_args"><tt class="computeroutput"><span class="identifier">unfused_lvalue_args</span></tt></a></li> <li><a href="unfused_lvalue_args.html" title="unfused_lvalue_args"><code class="computeroutput"><span class="identifier">unfused_lvalue_args</span></code></a></li>
<li><a href="unfused_generic.html" title="unfused_generic"><tt class="computeroutput"><span class="identifier">unfused_generic</span></tt></a></li> <li><a href="unfused_generic.html" title="unfused_generic"><code class="computeroutput"><span class="identifier">unfused_generic</span></code></a></li>
<li><a href="unfused_typed.html" title="unfused_typed"><tt class="computeroutput"><span class="identifier">unfused_typed</span></tt></a></li> <li><a href="unfused_typed.html" title="unfused_typed"><code class="computeroutput"><span class="identifier">unfused_typed</span></code></a></li>
<li><a href="../../support/deduce.html" title="deduce"><tt class="computeroutput"><span class="identifier">deduce</span></tt></a></li> <li><a href="../../support/deduce.html" title="deduce"><code class="computeroutput"><span class="identifier">deduce</span></code></a></li>
<li><a href="../../support/deduce_sequence.html" title="deduce_sequence"><tt class="computeroutput"><span class="identifier">deduce_sequence</span></tt></a></li> <li><a href="../../support/deduce_sequence.html" title="deduce_sequence"><code class="computeroutput"><span class="identifier">deduce_sequence</span></code></a></li>
</ul></div> </ul></div>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -260,7 +260,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="unfused_lvalue_args.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.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="unfused_typed.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="unfused_lvalue_args.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="unfused_typed.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,30 +3,30 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>unfused_typed</title> <title>unfused_typed</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../adapters.html" title=" Adapters"> <link rel="up" href="../adapters.html" title=" Adapters">
<link rel="prev" href="unfused_rvalue_args.html" title="unfused_rvalue_args"> <link rel="prev" href="unfused_rvalue_args.html" title="unfused_rvalue_args">
<link rel="next" href="../generation.html" title="Generation"> <link rel="next" href="../generation.html" title="Generation">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> <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="../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../libraries.htm">Libraries</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="../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="unfused_rvalue_args.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.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="../generation.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="unfused_rvalue_args.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="../generation.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.functional.adapters.unfused_typed"></a><a href="unfused_typed.html" title="unfused_typed">unfused_typed</a></h4></div></div></div> <a name="fusion.functional.adapters.unfused_typed"></a><a href="unfused_typed.html" title="unfused_typed">unfused_typed</a></h4></div></div></div>
<a name="fusion.functional.adapters.unfused_typed.description"></a><h5> <a name="fusion.functional.adapters.unfused_typed.description"></a><h5>
<a name="id658883"></a> <a name="id1256583"></a>
<a href="unfused_typed.html#fusion.functional.adapters.unfused_typed.description">Description</a> <a href="unfused_typed.html#fusion.functional.adapters.unfused_typed.description">Description</a>
</h5> </h5>
<p> <p>
@ -46,7 +46,7 @@
<p> <p>
The type of the target function is allowed to be const qualified or a reference. The type of the target function is allowed to be const qualified or a reference.
Const qualification is preserved and propagated appropriately (in other Const qualification is preserved and propagated appropriately (in other
words, only const versions of <tt class="literal">operator()</tt> can be used words, only const versions of <code class="literal">operator()</code> can be used
if the target function object is const - or, in case the target function if the target function object is const - or, in case the target function
object is held by value, the adapter is const). object is held by value, the adapter is const).
</p> </p>
@ -62,14 +62,14 @@
signature is optimized automatically to avoid by-value parameters. signature is optimized automatically to avoid by-value parameters.
</p></div> </p></div>
<a name="fusion.functional.adapters.unfused_typed.header"></a><h5> <a name="fusion.functional.adapters.unfused_typed.header"></a><h5>
<a name="id659034"></a> <a name="id1256720"></a>
<a href="unfused_typed.html#fusion.functional.adapters.unfused_typed.header">Header</a> <a href="unfused_typed.html#fusion.functional.adapters.unfused_typed.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">adapter</span><span class="special">/</span><span class="identifier">unfused_typed</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">adapter</span><span class="special">/</span><span class="identifier">unfused_typed</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.functional.adapters.unfused_typed.synopsis"></a><h5> <a name="fusion.functional.adapters.unfused_typed.synopsis"></a><h5>
<a name="id659140"></a> <a name="id1256812"></a>
<a href="unfused_typed.html#fusion.functional.adapters.unfused_typed.synopsis">Synopsis</a> <a href="unfused_typed.html#fusion.functional.adapters.unfused_typed.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -77,7 +77,7 @@
<span class="keyword">class</span> <span class="identifier">unfused_typed</span><span class="special">;</span> <span class="keyword">class</span> <span class="identifier">unfused_typed</span><span class="special">;</span>
</pre> </pre>
<a name="fusion.functional.adapters.unfused_typed.template_parameters"></a><h5> <a name="fusion.functional.adapters.unfused_typed.template_parameters"></a><h5>
<a name="id659239"></a> <a name="id1256900"></a>
<a href="unfused_typed.html#fusion.functional.adapters.unfused_typed.template_parameters">Template <a href="unfused_typed.html#fusion.functional.adapters.unfused_typed.template_parameters">Template
parameters</a> parameters</a>
</h5> </h5>
@ -108,7 +108,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Function</span></tt> <code class="computeroutput"><span class="identifier">Function</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -126,7 +126,7 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <code class="computeroutput"><span class="identifier">Sequence</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -142,7 +142,7 @@
</tbody> </tbody>
</table></div> </table></div>
<a name="fusion.functional.adapters.unfused_typed.model_of"></a><h5> <a name="fusion.functional.adapters.unfused_typed.model_of"></a><h5>
<a name="id659397"></a> <a name="id1257040"></a>
<a href="unfused_typed.html#fusion.functional.adapters.unfused_typed.model_of">Model <a href="unfused_typed.html#fusion.functional.adapters.unfused_typed.model_of">Model
of</a> of</a>
</h5> </h5>
@ -157,38 +157,38 @@
<div class="variablelist"> <div class="variablelist">
<p class="title"><b>Notation</b></p> <p class="title"><b>Notation</b></p>
<dl> <dl>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">F</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">F</span></code></span></dt>
<dd><p> <dd>
A possibly const qualified, unary <a href="../concepts/poly.html" title=" Polymorphic Function A possibly const qualified, unary <a href="../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> type or reference type thereof Function Object</a> type or reference type thereof
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">f</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">f</span></code></span></dt>
<dd><p> <dd>
An object convertible to <tt class="computeroutput"><span class="identifier">F</span></tt> An object convertible to <code class="computeroutput"><span class="identifier">F</span></code>
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">S</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">S</span></code></span></dt>
<dd><p> <dd>
A <a href="../../sequences.html" title="Sequences">Sequence</a> of parameter types A <a href="../../sequences.html" title="Sequences">Sequence</a> of parameter types
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">UT</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">UT</span></code></span></dt>
<dd><p> <dd>
The type <tt class="computeroutput"><span class="identifier">unfused_typed</span><span class="special">&lt;</span><span class="identifier">F</span><span class="special">,</span><span class="identifier">S</span><span class="special">&gt;</span></tt> The type <code class="computeroutput"><span class="identifier">unfused_typed</span><span class="special">&lt;</span><span class="identifier">F</span><span class="special">,</span><span class="identifier">S</span><span class="special">&gt;</span></code>
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">ut</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">ut</span></code></span></dt>
<dd><p> <dd>
An instance of <tt class="computeroutput"><span class="identifier">UT</span></tt>, An instance of <code class="computeroutput"><span class="identifier">UT</span></code>, initialized
initialized with <tt class="computeroutput"><span class="identifier">f</span></tt> with <code class="computeroutput"><span class="identifier">f</span></code>
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">a0</span></tt>...<tt class="computeroutput"><span class="identifier">aN</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">a0</span></code>...<code class="computeroutput"><span class="identifier">aN</span></code></span></dt>
<dd><p> <dd>
Arguments to <tt class="computeroutput"><span class="identifier">ut</span></tt>, convertible Arguments to <code class="computeroutput"><span class="identifier">ut</span></code>, convertible
to the types in <tt class="computeroutput"><span class="identifier">S</span></tt> to the types in <code class="computeroutput"><span class="identifier">S</span></code>
</p></dd> </dd>
</dl> </dl>
</div> </div>
<a name="fusion.functional.adapters.unfused_typed.expression_semantics"></a><h5> <a name="fusion.functional.adapters.unfused_typed.expression_semantics"></a><h5>
<a name="id659720"></a> <a name="id1257305"></a>
<a href="unfused_typed.html#fusion.functional.adapters.unfused_typed.expression_semantics">Expression <a href="unfused_typed.html#fusion.functional.adapters.unfused_typed.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
@ -213,48 +213,48 @@
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">UT</span><span class="special">(</span><span class="identifier">f</span><span class="special">)</span></tt> <code class="computeroutput"><span class="identifier">UT</span><span class="special">(</span><span class="identifier">f</span><span class="special">)</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Creates a fused function as described above, initializes the target Creates a fused function as described above, initializes the target
function with <tt class="computeroutput"><span class="identifier">f</span></tt>. function with <code class="computeroutput"><span class="identifier">f</span></code>.
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">UT</span><span class="special">()</span></tt> <code class="computeroutput"><span class="identifier">UT</span><span class="special">()</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Creates a fused function as described above, attempts to use <tt class="computeroutput"><span class="identifier">F</span></tt>'s default constructor. Creates a fused function as described above, attempts to use <code class="computeroutput"><span class="identifier">F</span></code>'s default constructor.
</p> </p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">ut</span><span class="special">(</span><span class="identifier">a0</span></tt>...<tt class="computeroutput"><span class="identifier">aN</span><span class="special">)</span></tt> <code class="computeroutput"><span class="identifier">ut</span><span class="special">(</span><span class="identifier">a0</span></code>...<code class="computeroutput"><span class="identifier">aN</span><span class="special">)</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Calls <tt class="computeroutput"><span class="identifier">f</span></tt> with an Calls <code class="computeroutput"><span class="identifier">f</span></code> with an
instance of <tt class="computeroutput"><span class="identifier">S</span></tt> (or instance of <code class="computeroutput"><span class="identifier">S</span></code> (or
a subsequence of <tt class="computeroutput"><span class="identifier">S</span></tt> a subsequence of <code class="computeroutput"><span class="identifier">S</span></code>
starting at the first element, if fewer arguments are given and starting at the first element, if fewer arguments are given and
the overload hasn't been disabled) initialized with <tt class="computeroutput"><span class="identifier">a0</span></tt>...<tt class="computeroutput"><span class="identifier">aN</span></tt>. the overload hasn't been disabled) initialized with <code class="computeroutput"><span class="identifier">a0</span></code>...<code class="computeroutput"><span class="identifier">aN</span></code>.
</p> </p>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table></div> </table></div>
<a name="fusion.functional.adapters.unfused_typed.example"></a><h5> <a name="fusion.functional.adapters.unfused_typed.example"></a><h5>
<a name="id660003"></a> <a name="id1257555"></a>
<a href="unfused_typed.html#fusion.functional.adapters.unfused_typed.example">Example</a> <a href="unfused_typed.html#fusion.functional.adapters.unfused_typed.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -323,15 +323,15 @@
<span class="special">}</span> <span class="special">}</span>
</pre> </pre>
<a name="fusion.functional.adapters.unfused_typed.see_also"></a><h5> <a name="fusion.functional.adapters.unfused_typed.see_also"></a><h5>
<a name="id661493"></a> <a name="id1276348"></a>
<a href="unfused_typed.html#fusion.functional.adapters.unfused_typed.see_also">See also</a> <a href="unfused_typed.html#fusion.functional.adapters.unfused_typed.see_also">See also</a>
</h5> </h5>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
<li><a href="unfused_generic.html" title="unfused_generic"><tt class="computeroutput"><span class="identifier">unfused_generic</span></tt></a></li> <li><a href="unfused_generic.html" title="unfused_generic"><code class="computeroutput"><span class="identifier">unfused_generic</span></code></a></li>
<li><a href="unfused_lvalue_args.html" title="unfused_lvalue_args"><tt class="computeroutput"><span class="identifier">unfused_lvalue_args</span></tt></a></li> <li><a href="unfused_lvalue_args.html" title="unfused_lvalue_args"><code class="computeroutput"><span class="identifier">unfused_lvalue_args</span></code></a></li>
<li><a href="unfused_rvalue_args.html" title="unfused_rvalue_args"><tt class="computeroutput"><span class="identifier">unfused_rvalue_args</span></tt></a></li> <li><a href="unfused_rvalue_args.html" title="unfused_rvalue_args"><code class="computeroutput"><span class="identifier">unfused_rvalue_args</span></code></a></li>
<li><a href="../../support/deduce.html" title="deduce"><tt class="computeroutput"><span class="identifier">deduce</span></tt></a></li> <li><a href="../../support/deduce.html" title="deduce"><code class="computeroutput"><span class="identifier">deduce</span></code></a></li>
<li><a href="../../support/deduce_sequence.html" title="deduce_sequence"><tt class="computeroutput"><span class="identifier">deduce_sequence</span></tt></a></li> <li><a href="../../support/deduce_sequence.html" title="deduce_sequence"><code class="computeroutput"><span class="identifier">deduce_sequence</span></code></a></li>
</ul></div> </ul></div>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -341,7 +341,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="unfused_rvalue_args.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.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="../generation.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="unfused_rvalue_args.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapters.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="../generation.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,24 +3,24 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Concepts</title> <title>Concepts</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functional.html" title="Functional"> <link rel="up" href="../functional.html" title="Functional">
<link rel="prev" href="../functional.html" title="Functional"> <link rel="prev" href="../functional.html" title="Functional">
<link rel="next" href="concepts/callable.html" title=" Callable Object"> <link rel="next" href="concepts/callable.html" title=" Callable Object">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td> <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="../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../libraries.htm">Libraries</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="../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../functional.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functional.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="concepts/callable.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../functional.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functional.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="concepts/callable.html"><img src="../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title"> <div class="titlepage"><div><div><h3 class="title">
@ -42,7 +42,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../functional.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functional.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="concepts/callable.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../functional.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functional.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="concepts/callable.html"><img src="../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title> Callable Object</title> <title> Callable Object</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../concepts.html" title="Concepts"> <link rel="up" href="../concepts.html" title="Concepts">
<link rel="prev" href="../concepts.html" title="Concepts"> <link rel="prev" href="../concepts.html" title="Concepts">
@ -11,23 +11,23 @@
Object"> Object">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> <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="../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../libraries.htm">Libraries</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="../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../concepts.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.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="reg_callable.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../concepts.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="reg_callable.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.functional.concepts.callable"></a><a href="callable.html" title=" Callable Object"> Callable Object</a></h4></div></div></div> <a name="fusion.functional.concepts.callable"></a><a href="callable.html" title=" Callable Object"> Callable Object</a></h4></div></div></div>
<a name="fusion.functional.concepts.callable.description"></a><h5> <a name="fusion.functional.concepts.callable.description"></a><h5>
<a name="id641686"></a> <a name="id1241477"></a>
<a href="callable.html#fusion.functional.concepts.callable.description">Description</a> <a href="callable.html#fusion.functional.concepts.callable.description">Description</a>
</h5> </h5>
<p> <p>
@ -36,7 +36,7 @@
of a function call operator. of a function call operator.
</p> </p>
<a name="fusion.functional.concepts.callable.models"></a><h5> <a name="fusion.functional.concepts.callable.models"></a><h5>
<a name="id641717"></a> <a name="id1241506"></a>
<a href="callable.html#fusion.functional.concepts.callable.models">Models</a> <a href="callable.html#fusion.functional.concepts.callable.models">Models</a>
</h5> </h5>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
@ -58,7 +58,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../concepts.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.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="reg_callable.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../concepts.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="reg_callable.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -4,7 +4,7 @@
<title> Deferred <title> Deferred
Callable Object</title> Callable Object</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../concepts.html" title="Concepts"> <link rel="up" href="../concepts.html" title="Concepts">
<link rel="prev" href="reg_callable.html" title=" Regular Callable <link rel="prev" href="reg_callable.html" title=" Regular Callable
@ -13,17 +13,17 @@
Object"> Object">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> <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="../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../libraries.htm">Libraries</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="../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="reg_callable.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.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="poly.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="reg_callable.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="poly.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
@ -31,7 +31,7 @@
Callable Object"> Deferred Callable Object"> Deferred
Callable Object</a></h4></div></div></div> Callable Object</a></h4></div></div></div>
<a name="fusion.functional.concepts.def_callable.description"></a><h5> <a name="fusion.functional.concepts.def_callable.description"></a><h5>
<a name="id642200"></a> <a name="id1241924"></a>
<a href="def_callable.html#fusion.functional.concepts.def_callable.description">Description</a> <a href="def_callable.html#fusion.functional.concepts.def_callable.description">Description</a>
</h5> </h5>
<p> <p>
@ -40,48 +40,49 @@
to determine the result of a call. to determine the result of a call.
</p> </p>
<a name="fusion.functional.concepts.def_callable.refinement_of"></a><h5> <a name="fusion.functional.concepts.def_callable.refinement_of"></a><h5>
<a name="id642246"></a> <a name="id1241966"></a>
<a href="def_callable.html#fusion.functional.concepts.def_callable.refinement_of">Refinement <a href="def_callable.html#fusion.functional.concepts.def_callable.refinement_of">Refinement
of</a> of</a>
</h5> </h5>
<div class="itemizedlist"><ul type="disc"><li><a href="callable.html" title=" Callable Object">Callable Object</a></li></ul></div> <div class="itemizedlist"><ul type="disc"><li><a href="callable.html" title=" Callable Object">Callable Object</a></li></ul></div>
<div class="sidebar"><p> <div class="sidebar"><p>
note Once C++ supports the <tt class="literal">decltype</tt> keyword, all models note Once C++ supports the <code class="literal">decltype</code> keyword, all models
of <a href="callable.html" title=" Callable Object">Callable Object</a> of <a href="callable.html" title=" Callable Object">Callable Object</a>
will also be models of <a href="def_callable.html" title=" Deferred will also be models of <a href="def_callable.html" title=" Deferred
Callable Object">Deferred Callable Object">Deferred
Callable Object</a>, because function objects won't need client-side Callable Object</a>, because function objects won't need client-side
support for <tt class="computeroutput"><span class="identifier">result_of</span></tt>. support for <code class="computeroutput"><span class="identifier">result_of</span></code>.
</p></div> </p></div>
<div class="variablelist"> <div class="variablelist">
<p class="title"><b>Notation</b></p> <p class="title"><b>Notation</b></p>
<dl> <dl>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">F</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">F</span></code></span></dt>
<dd><p> <dd>
A possibly const qualified Deferred Callable Object type A possibly const qualified Deferred Callable Object type
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">A1</span> <dt><span class="term"><code class="computeroutput"><span class="identifier">A1</span>
<span class="special">...</span><span class="identifier">AN</span></tt></span></dt> <span class="special">...</span><span class="identifier">AN</span></code></span></dt>
<dd><p> <dd>
Argument types Argument types
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">a1</span> <dt><span class="term"><code class="computeroutput"><span class="identifier">a1</span>
<span class="special">...</span><span class="identifier">aN</span></tt></span></dt> <span class="special">...</span><span class="identifier">aN</span></code></span></dt>
<dd><p> <dd>
Objects or references to objects with types <tt class="computeroutput"><span class="identifier">A1</span> Objects or references to objects with types <code class="computeroutput"><span class="identifier">A1</span>
<span class="special">...</span><span class="identifier">AN</span></tt> <span class="special">...</span><span class="identifier">AN</span></code>
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">T1</span> <dt><span class="term"><code class="computeroutput"><span class="identifier">T1</span>
<span class="special">...</span><span class="identifier">TN</span></tt></span></dt> <span class="special">...</span><span class="identifier">TN</span></code></span></dt>
<dd><p> <dd>
<tt class="computeroutput"><span class="identifier">T</span></tt>i is <tt class="computeroutput"><span class="identifier">A</span></tt>i <tt class="computeroutput"><span class="special">&amp;</span></tt> <code class="computeroutput"><span class="identifier">T</span></code>i is <code class="computeroutput"><span class="identifier">A</span></code>i
if <tt class="computeroutput"><span class="identifier">a</span></tt>i is an LValue, <code class="computeroutput"><span class="special">&amp;</span></code> if <code class="computeroutput"><span class="identifier">a</span></code>i
same as <tt class="computeroutput"><span class="identifier">A</span></tt>i, otherwise is an LValue, same as <code class="computeroutput"><span class="identifier">A</span></code>i,
</p></dd> otherwise
</dd>
</dl> </dl>
</div> </div>
<a name="fusion.functional.concepts.def_callable.expression_requirements"></a><h5> <a name="fusion.functional.concepts.def_callable.expression_requirements"></a><h5>
<a name="id642552"></a> <a name="id1242224"></a>
<a href="def_callable.html#fusion.functional.concepts.def_callable.expression_requirements">Expression <a href="def_callable.html#fusion.functional.concepts.def_callable.expression_requirements">Expression
requirements</a> requirements</a>
</h5> </h5>
@ -105,21 +106,21 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<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><tt class="computeroutput"><span class="special">&lt;</span> <span class="identifier">F</span><span class="special">(</span><span class="identifier">T1</span> <a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></code></a><code class="computeroutput"><span class="special">&lt;</span> <span class="identifier">F</span><span class="special">(</span><span class="identifier">T1</span>
<span class="special">...</span><span class="identifier">TN</span><span class="special">)</span> <span class="special">&gt;::</span><span class="identifier">type</span></tt> <span class="special">...</span><span class="identifier">TN</span><span class="special">)</span> <span class="special">&gt;::</span><span class="identifier">type</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
Result of a call with <tt class="computeroutput"><span class="identifier">A1</span> Result of a call with <code class="computeroutput"><span class="identifier">A1</span>
<span class="special">...</span><span class="identifier">AN</span></tt>-typed <span class="special">...</span><span class="identifier">AN</span></code>-typed
arguments arguments
</p> </p>
</td> </td>
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.functional.concepts.def_callable.models"></a><h5> <a name="fusion.functional.concepts.def_callable.models"></a><h5>
<a name="id642736"></a> <a name="id1242387"></a>
<a href="def_callable.html#fusion.functional.concepts.def_callable.models">Models</a> <a href="def_callable.html#fusion.functional.concepts.def_callable.models">Models</a>
</h5> </h5>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
@ -140,7 +141,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="reg_callable.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.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="poly.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="reg_callable.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="poly.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -4,7 +4,7 @@
<title> Polymorphic Function <title> Polymorphic Function
Object</title> Object</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../concepts.html" title="Concepts"> <link rel="up" href="../concepts.html" title="Concepts">
<link rel="prev" href="def_callable.html" title=" Deferred <link rel="prev" href="def_callable.html" title=" Deferred
@ -12,17 +12,17 @@
<link rel="next" href="../invocation.html" title="Invocation"> <link rel="next" href="../invocation.html" title="Invocation">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> <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="../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../libraries.htm">Libraries</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="../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="def_callable.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.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="../invocation.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="def_callable.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="../invocation.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
@ -30,7 +30,7 @@
Object"> Polymorphic Function Object"> Polymorphic Function
Object</a></h4></div></div></div> Object</a></h4></div></div></div>
<a name="fusion.functional.concepts.poly.description"></a><h5> <a name="fusion.functional.concepts.poly.description"></a><h5>
<a name="id642800"></a> <a name="id1242444"></a>
<a href="poly.html#fusion.functional.concepts.poly.description">Description</a> <a href="poly.html#fusion.functional.concepts.poly.description">Description</a>
</h5> </h5>
<p> <p>
@ -39,7 +39,7 @@
Callable Object</a> type. Callable Object</a> type.
</p> </p>
<a name="fusion.functional.concepts.poly.refinement_of"></a><h5> <a name="fusion.functional.concepts.poly.refinement_of"></a><h5>
<a name="id642839"></a> <a name="id1242479"></a>
<a href="poly.html#fusion.functional.concepts.poly.refinement_of">Refinement <a href="poly.html#fusion.functional.concepts.poly.refinement_of">Refinement
of</a> of</a>
</h5> </h5>
@ -54,36 +54,37 @@
<div class="variablelist"> <div class="variablelist">
<p class="title"><b>Notation</b></p> <p class="title"><b>Notation</b></p>
<dl> <dl>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">F</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">F</span></code></span></dt>
<dd><p> <dd>
A possibly const-qualified Polymorphic Function Object type A possibly const-qualified Polymorphic Function Object type
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">f</span></tt></span></dt> <dt><span class="term"><code class="computeroutput"><span class="identifier">f</span></code></span></dt>
<dd><p> <dd>
An object or reference to an object of type F An object or reference to an object of type F
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">A1</span> <dt><span class="term"><code class="computeroutput"><span class="identifier">A1</span>
<span class="special">...</span><span class="identifier">AN</span></tt></span></dt> <span class="special">...</span><span class="identifier">AN</span></code></span></dt>
<dd><p> <dd>
Argument types Argument types
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">a1</span> <dt><span class="term"><code class="computeroutput"><span class="identifier">a1</span>
<span class="special">...</span><span class="identifier">aN</span></tt></span></dt> <span class="special">...</span><span class="identifier">aN</span></code></span></dt>
<dd><p> <dd>
Objects or references to objects with types <tt class="computeroutput"><span class="identifier">A1</span> Objects or references to objects with types <code class="computeroutput"><span class="identifier">A1</span>
<span class="special">...</span><span class="identifier">AN</span></tt> <span class="special">...</span><span class="identifier">AN</span></code>
</p></dd> </dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">T1</span> <dt><span class="term"><code class="computeroutput"><span class="identifier">T1</span>
<span class="special">...</span><span class="identifier">TN</span></tt></span></dt> <span class="special">...</span><span class="identifier">TN</span></code></span></dt>
<dd><p> <dd>
<tt class="computeroutput"><span class="identifier">T</span></tt>i is <tt class="computeroutput"><span class="identifier">A</span></tt>i <tt class="computeroutput"><span class="special">&amp;</span></tt> <code class="computeroutput"><span class="identifier">T</span></code>i is <code class="computeroutput"><span class="identifier">A</span></code>i
if <tt class="computeroutput"><span class="identifier">a</span></tt>i is an LValue, <code class="computeroutput"><span class="special">&amp;</span></code> if <code class="computeroutput"><span class="identifier">a</span></code>i
same as <tt class="computeroutput"><span class="identifier">A</span></tt>i, otherwise is an LValue, same as <code class="computeroutput"><span class="identifier">A</span></code>i,
</p></dd> otherwise
</dd>
</dl> </dl>
</div> </div>
<a name="fusion.functional.concepts.poly.expression_requirements"></a><h5> <a name="fusion.functional.concepts.poly.expression_requirements"></a><h5>
<a name="id643131"></a> <a name="id1242720"></a>
<a href="poly.html#fusion.functional.concepts.poly.expression_requirements">Expression <a href="poly.html#fusion.functional.concepts.poly.expression_requirements">Expression
requirements</a> requirements</a>
</h5> </h5>
@ -113,15 +114,15 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">a1</span><span class="special">,</span> <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">a1</span><span class="special">,</span>
<span class="special">...</span><span class="identifier">aN</span><span class="special">)</span></tt> <span class="special">...</span><span class="identifier">aN</span><span class="special">)</span></code>
</p> </p>
</td> </td>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">result_of</span><span class="special">&lt;</span> <code class="computeroutput"><span class="identifier">result_of</span><span class="special">&lt;</span>
<span class="identifier">F</span><span class="special">(</span><span class="identifier">T1</span><span class="special">,</span> <span class="identifier">F</span><span class="special">(</span><span class="identifier">T1</span><span class="special">,</span>
<span class="special">...</span><span class="identifier">TN</span><span class="special">)</span> <span class="special">&gt;::</span><span class="identifier">type</span></tt> <span class="special">...</span><span class="identifier">TN</span><span class="special">)</span> <span class="special">&gt;::</span><span class="identifier">type</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -132,7 +133,7 @@
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.functional.concepts.poly.models"></a><h5> <a name="fusion.functional.concepts.poly.models"></a><h5>
<a name="id643329"></a> <a name="id1242898"></a>
<a href="poly.html#fusion.functional.concepts.poly.models">Models</a> <a href="poly.html#fusion.functional.concepts.poly.models">Models</a>
</h5> </h5>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
@ -154,7 +155,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="def_callable.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.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="../invocation.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="def_callable.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="../invocation.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -1,141 +0,0 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title> Regular Callable
Object</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<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="../concepts.html" title="Concepts">
<link rel="prev" href="callable.html" title=" Callable Object">
<link rel="next" href="def_callable.html" title=" Deferred
Callable Object">
</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="callable.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.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="def_callable.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="fusion.functional.concepts.reg_callable"></a><a href="reg_callable.html" title=" Regular Callable
Object"> Regular Callable
Object</a></h4></div></div></div>
<a name="fusion.functional.concepts.reg_callable.description"></a><h5>
<a name="id641778"></a>
<a href="reg_callable.html#fusion.functional.concepts.reg_callable.description">Description</a>
</h5>
<p>
A non-member-pointer <a href="callable.html" title=" Callable Object">Callable
Object</a> type: A pointer to a function or a class type whose objects
can appear immediately to the left of a function call operator.
</p>
<a name="fusion.functional.concepts.reg_callable.refinement_of"></a><h5>
<a name="id641819"></a>
<a href="reg_callable.html#fusion.functional.concepts.reg_callable.refinement_of">Refinement
of</a>
</h5>
<div class="itemizedlist"><ul type="disc"><li><a href="callable.html" title=" Callable Object">Callable Object</a></li></ul></div>
<div class="variablelist">
<p class="title"><b>Notation</b></p>
<dl>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">F</span></tt></span></dt>
<dd><p>
A possibly const qualified Deferred Callable Object type
</p></dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">f</span></tt></span></dt>
<dd><p>
An object or reference to an object of type F
</p></dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">A1</span>
<span class="special">...</span><span class="identifier">AN</span></tt></span></dt>
<dd><p>
Argument types
</p></dd>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">a1</span>
<span class="special">...</span><span class="identifier">aN</span></tt></span></dt>
<dd><p>
Objects or references to objects with types <tt class="computeroutput"><span class="identifier">A1</span>
<span class="special">...</span><span class="identifier">AN</span></tt>
</p></dd>
</dl>
</div>
<a name="fusion.functional.concepts.reg_callable.expression_requirements"></a><h5>
<a name="id642005"></a>
<a href="reg_callable.html#fusion.functional.concepts.reg_callable.expression_requirements">Expression
requirements</a>
</h5>
<div class="informaltable"><table class="table">
<colgroup>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th>
<p>
Expression
</p>
</th>
<th>
<p>
Return Type
</p>
</th>
<th>
<p>
Runtime Complexity
</p>
</th>
</tr></thead>
<tbody><tr>
<td>
<p>
<tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">a1</span><span class="special">,</span>
<span class="special">...</span><span class="identifier">aN</span><span class="special">)</span></tt>
</p>
</td>
<td>
<p>
Unspecified
</p>
</td>
<td>
<p>
Unspecified
</p>
</td>
</tr></tbody>
</table></div>
<a name="fusion.functional.concepts.reg_callable.models"></a><h5>
<a name="id642141"></a>
<a href="reg_callable.html#fusion.functional.concepts.reg_callable.models">Models</a>
</h5>
<div class="itemizedlist"><ul type="disc">
<li>
function pointer types
</li>
<li>
all kinds of function objects
</li>
</ul></div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger</small></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="callable.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.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="def_callable.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@ -3,24 +3,24 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Generation</title> <title>Generation</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functional.html" title="Functional"> <link rel="up" href="../functional.html" title="Functional">
<link rel="prev" href="adapters/unfused_typed.html" title="unfused_typed"> <link rel="prev" href="adapters/unfused_typed.html" title="unfused_typed">
<link rel="next" href="generation/functions.html" title="Functions"> <link rel="next" href="generation/functions.html" title="Functions">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td> <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="../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../libraries.htm">Libraries</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="../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="adapters/unfused_typed.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functional.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="generation/functions.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="adapters/unfused_typed.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functional.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="generation/functions.html"><img src="../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title"> <div class="titlepage"><div><div><h3 class="title">
@ -37,7 +37,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="adapters/unfused_typed.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functional.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="generation/functions.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="adapters/unfused_typed.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functional.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="generation/functions.html"><img src="../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Functions</title> <title>Functions</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../generation.html" title="Generation"> <link rel="up" href="../generation.html" title="Generation">
<link rel="prev" href="../generation.html" title="Generation"> <link rel="prev" href="../generation.html" title="Generation">
@ -11,17 +11,17 @@
make_fused"> make_fused">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> <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="../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../libraries.htm">Libraries</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="../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../generation.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../generation.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="functions/mk_fused.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../generation.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../generation.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="functions/mk_fused.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
@ -48,7 +48,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../generation.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../generation.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="functions/mk_fused.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../generation.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../generation.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="functions/mk_fused.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -4,7 +4,7 @@
<title> <title>
make_fused</title> make_fused</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="../functions.html" title="Functions"> <link rel="prev" href="../functions.html" title="Functions">
@ -12,17 +12,17 @@
make_fused_procedure"> make_fused_procedure">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <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="mk_fused_proc.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../functions.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="mk_fused_proc.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
@ -30,27 +30,27 @@
make_fused"> make_fused">
make_fused</a></h5></div></div></div> make_fused</a></h5></div></div></div>
<a name="fusion.functional.generation.functions.mk_fused.description"></a><h6> <a name="fusion.functional.generation.functions.mk_fused.description"></a><h6>
<a name="id661691"></a> <a name="id1276522"></a>
<a href="mk_fused.html#fusion.functional.generation.functions.mk_fused.description">Description</a> <a href="mk_fused.html#fusion.functional.generation.functions.mk_fused.description">Description</a>
</h6> </h6>
<p> <p>
Creates a <a href="../../adapters/fused.html" title="fused"><tt class="computeroutput"><span class="identifier">fused</span></tt></a> adapter for a given <a href="../../concepts/def_callable.html" title=" Deferred Creates a <a href="../../adapters/fused.html" title="fused"><code class="computeroutput"><span class="identifier">fused</span></code></a> adapter for a given <a href="../../concepts/def_callable.html" title=" Deferred
Callable Object">Deferred Callable Object</a>. Callable Object">Deferred Callable Object</a>.
The usual <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element The usual <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
conversion</em></span></a> is applied to the target function. conversion</em></span></a> is applied to the target function.
</p> </p>
<a name="fusion.functional.generation.functions.mk_fused.synopsis"></a><h6> <a name="fusion.functional.generation.functions.mk_fused.synopsis"></a><h6>
<a name="id661759"></a> <a name="id1276584"></a>
<a href="mk_fused.html#fusion.functional.generation.functions.mk_fused.synopsis">Synopsis</a> <a href="mk_fused.html#fusion.functional.generation.functions.mk_fused.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">F</span><span class="special">&gt;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">F</span><span class="special">&gt;</span>
<span class="keyword">inline</span> <span class="keyword">typename</span> <a href="../metafunctions/mk_fused.html" title=" <span class="keyword">inline</span> <span class="keyword">typename</span> <a href="../metafunctions/mk_fused.html" title="
make_fused"><tt class="computeroutput"><span class="identifier">make_fused</span></tt></a><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> make_fused"><code class="computeroutput"><span class="identifier">make_fused</span></code></a><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span>
<span class="identifier">make_fused</span><span class="special">(</span><span class="identifier">F</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">make_fused</span><span class="special">(</span><span class="identifier">F</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<a name="fusion.functional.generation.functions.mk_fused.parameters"></a><h6> <a name="fusion.functional.generation.functions.mk_fused.parameters"></a><h6>
<a name="id661913"></a> <a name="id1276719"></a>
<a href="mk_fused.html#fusion.functional.generation.functions.mk_fused.parameters">Parameters</a> <a href="mk_fused.html#fusion.functional.generation.functions.mk_fused.parameters">Parameters</a>
</h6> </h6>
<div class="informaltable"><table class="table"> <div class="informaltable"><table class="table">
@ -79,7 +79,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <code class="computeroutput"><span class="identifier">f</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -97,7 +97,7 @@
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.functional.generation.functions.mk_fused.expression_semantics"></a><h6> <a name="fusion.functional.generation.functions.mk_fused.expression_semantics"></a><h6>
<a name="id662030"></a> <a name="id1276825"></a>
<a href="mk_fused.html#fusion.functional.generation.functions.mk_fused.expression_semantics">Expression <a href="mk_fused.html#fusion.functional.generation.functions.mk_fused.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
@ -105,20 +105,20 @@
<span class="identifier">make_fused</span><span class="special">(</span><span class="identifier">f</span><span class="special">);</span> <span class="identifier">make_fused</span><span class="special">(</span><span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A specialization of <a href="../../adapters/fused.html" title="fused"><tt class="computeroutput"><span class="identifier">fused</span></tt></a>. <span class="bold"><strong>Return type</strong></span>: A specialization of <a href="../../adapters/fused.html" title="fused"><code class="computeroutput"><span class="identifier">fused</span></code></a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a <a href="../../adapters/fused.html" title="fused"><tt class="computeroutput"><span class="identifier">fused</span></tt></a> adapter for <tt class="computeroutput"><span class="identifier">f</span></tt>. <span class="bold"><strong>Semantics</strong></span>: Returns a <a href="../../adapters/fused.html" title="fused"><code class="computeroutput"><span class="identifier">fused</span></code></a> adapter for <code class="computeroutput"><span class="identifier">f</span></code>.
</p> </p>
<a name="fusion.functional.generation.functions.mk_fused.header"></a><h6> <a name="fusion.functional.generation.functions.mk_fused.header"></a><h6>
<a name="id662155"></a> <a name="id1276934"></a>
<a href="mk_fused.html#fusion.functional.generation.functions.mk_fused.header">Header</a> <a href="mk_fused.html#fusion.functional.generation.functions.mk_fused.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_fused</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_fused</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.functional.generation.functions.mk_fused.example"></a><h6> <a name="fusion.functional.generation.functions.mk_fused.example"></a><h6>
<a name="id662262"></a> <a name="id1277028"></a>
<a href="mk_fused.html#fusion.functional.generation.functions.mk_fused.example">Example</a> <a href="mk_fused.html#fusion.functional.generation.functions.mk_fused.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -126,23 +126,23 @@
<span class="keyword">void</span> <span class="identifier">try_it</span><span class="special">()</span> <span class="keyword">void</span> <span class="identifier">try_it</span><span class="special">()</span>
<span class="special">{</span> <span class="special">{</span>
<a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">a</span><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">2.0f</span><span class="special">);</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">a</span><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">2.0f</span><span class="special">);</span>
<a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">b</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">1.5f</span><span class="special">);</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">b</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">1.5f</span><span class="special">);</span>
<a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">float</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">c</span><span class="special">(</span><span class="number">1.0f</span><span class="special">,</span><span class="number">0.5f</span><span class="special">);</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">float</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">c</span><span class="special">(</span><span class="number">1.0f</span><span class="special">,</span><span class="number">0.5f</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">c</span> <span class="special">==</span> <a href="../../../algorithms/transformation/functions/transform.html" title="transform"><tt class="computeroutput"><span class="identifier">transform</span></tt></a><span class="special">(</span><a href="../../../algorithms/transformation/functions/zip.html" title="zip"><tt class="computeroutput"><span class="identifier">zip</span></tt></a><span class="special">(</span><span class="identifier">a</span><span class="special">,</span><span class="identifier">b</span><span class="special">),</span> <span class="identifier">make_fused</span><span class="special">(&amp;</span> <span class="identifier">sub</span><span class="special">)));</span> <span class="identifier">assert</span><span class="special">(</span><span class="identifier">c</span> <span class="special">==</span> <a href="../../../algorithms/transformation/functions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">transform</span></code></a><span class="special">(</span><a href="../../../algorithms/transformation/functions/zip.html" title="zip"><code class="computeroutput"><span class="identifier">zip</span></code></a><span class="special">(</span><span class="identifier">a</span><span class="special">,</span><span class="identifier">b</span><span class="special">),</span> <span class="identifier">make_fused</span><span class="special">(&amp;</span> <span class="identifier">sub</span><span class="special">)));</span>
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">c</span> <span class="special">==</span> <a href="../../../algorithms/transformation/functions/transform.html" title="transform"><tt class="computeroutput"><span class="identifier">transform</span></tt></a><span class="special">(</span><a href="../../../algorithms/transformation/functions/zip.html" title="zip"><tt class="computeroutput"><span class="identifier">zip</span></tt></a><span class="special">(</span><span class="identifier">a</span><span class="special">,</span><span class="identifier">b</span><span class="special">),</span> <span class="identifier">make_fused</span><span class="special">(</span><a href="http://www.sgi.com/tech/stl/minus.html" target="_top"><tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">minus</span></tt></a><span class="special">&lt;</span><span class="keyword">float</span><span class="special">&gt;())));</span> <span class="identifier">assert</span><span class="special">(</span><span class="identifier">c</span> <span class="special">==</span> <a href="../../../algorithms/transformation/functions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">transform</span></code></a><span class="special">(</span><a href="../../../algorithms/transformation/functions/zip.html" title="zip"><code class="computeroutput"><span class="identifier">zip</span></code></a><span class="special">(</span><span class="identifier">a</span><span class="special">,</span><span class="identifier">b</span><span class="special">),</span> <span class="identifier">make_fused</span><span class="special">(</span><a href="http://www.sgi.com/tech/stl/minus.html" target="_top"><code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">minus</span></code></a><span class="special">&lt;</span><span class="keyword">float</span><span class="special">&gt;())));</span>
<span class="special">}</span> <span class="special">}</span>
</pre> </pre>
<a name="fusion.functional.generation.functions.mk_fused.see_also"></a><h6> <a name="fusion.functional.generation.functions.mk_fused.see_also"></a><h6>
<a name="id662867"></a> <a name="id1277564"></a>
<a href="mk_fused.html#fusion.functional.generation.functions.mk_fused.see_also">See <a href="mk_fused.html#fusion.functional.generation.functions.mk_fused.see_also">See
also</a> also</a>
</h6> </h6>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
<li><a href="../../adapters/fused.html" title="fused"><tt class="computeroutput"><span class="identifier">fused</span></tt></a></li> <li><a href="../../adapters/fused.html" title="fused"><code class="computeroutput"><span class="identifier">fused</span></code></a></li>
<li><a href="../../../support/deduce.html" title="deduce"><tt class="computeroutput"><span class="identifier">deduce</span></tt></a></li> <li><a href="../../../support/deduce.html" title="deduce"><code class="computeroutput"><span class="identifier">deduce</span></code></a></li>
<li><a href="../metafunctions/mk_fused.html" title=" <li><a href="../metafunctions/mk_fused.html" title="
make_fused"><tt class="computeroutput"><span class="identifier">make_fused</span></tt></a></li> make_fused"><code class="computeroutput"><span class="identifier">make_fused</span></code></a></li>
</ul></div> </ul></div>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -152,7 +152,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <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="mk_fused_proc.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../functions.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="mk_fused_proc.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -4,7 +4,7 @@
<title> <title>
make_fused_function_object</title> make_fused_function_object</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="mk_fused_proc.html" title=" <link rel="prev" href="mk_fused_proc.html" title="
@ -13,17 +13,17 @@
make_unfused_generic"> make_unfused_generic">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="mk_fused_proc.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="mk_unfused_genrc.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="mk_fused_proc.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="mk_unfused_genrc.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
@ -31,28 +31,28 @@
make_fused_function_object"> make_fused_function_object">
make_fused_function_object</a></h5></div></div></div> make_fused_function_object</a></h5></div></div></div>
<a name="fusion.functional.generation.functions.mk_fused_fobj.description"></a><h6> <a name="fusion.functional.generation.functions.mk_fused_fobj.description"></a><h6>
<a name="id663950"></a> <a name="id1278524"></a>
<a href="mk_fused_fobj.html#fusion.functional.generation.functions.mk_fused_fobj.description">Description</a> <a href="mk_fused_fobj.html#fusion.functional.generation.functions.mk_fused_fobj.description">Description</a>
</h6> </h6>
<p> <p>
Creates a <a href="../../adapters/fused_function_object.html" title="fused_function_object"><tt class="computeroutput"><span class="identifier">fused_function_object</span></tt></a> adapter Creates a <a href="../../adapters/fused_function_object.html" title="fused_function_object"><code class="computeroutput"><span class="identifier">fused_function_object</span></code></a> adapter
for a given <a href="../../concepts/def_callable.html" title=" Deferred for a given <a href="../../concepts/def_callable.html" title=" Deferred
Callable Object">Deferred Callable Object">Deferred
Callable Object</a>. The usual <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element Callable Object</a>. The usual <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
conversion</em></span></a> is applied to the target function. conversion</em></span></a> is applied to the target function.
</p> </p>
<a name="fusion.functional.generation.functions.mk_fused_fobj.synopsis"></a><h6> <a name="fusion.functional.generation.functions.mk_fused_fobj.synopsis"></a><h6>
<a name="id664021"></a> <a name="id1278585"></a>
<a href="mk_fused_fobj.html#fusion.functional.generation.functions.mk_fused_fobj.synopsis">Synopsis</a> <a href="mk_fused_fobj.html#fusion.functional.generation.functions.mk_fused_fobj.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">F</span><span class="special">&gt;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">F</span><span class="special">&gt;</span>
<span class="keyword">inline</span> <span class="keyword">typename</span> <a href="../metafunctions/mk_fused_fobj.html" title=" <span class="keyword">inline</span> <span class="keyword">typename</span> <a href="../metafunctions/mk_fused_fobj.html" title="
make_fused_function_object"><tt class="computeroutput"><span class="identifier">make_fused_function_object</span></tt></a><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> make_fused_function_object"><code class="computeroutput"><span class="identifier">make_fused_function_object</span></code></a><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span>
<span class="identifier">make_fused_function_object</span><span class="special">(</span><span class="identifier">F</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">make_fused_function_object</span><span class="special">(</span><span class="identifier">F</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<a name="fusion.functional.generation.functions.mk_fused_fobj.parameters"></a><h6> <a name="fusion.functional.generation.functions.mk_fused_fobj.parameters"></a><h6>
<a name="id664177"></a> <a name="id1278722"></a>
<a href="mk_fused_fobj.html#fusion.functional.generation.functions.mk_fused_fobj.parameters">Parameters</a> <a href="mk_fused_fobj.html#fusion.functional.generation.functions.mk_fused_fobj.parameters">Parameters</a>
</h6> </h6>
<div class="informaltable"><table class="table"> <div class="informaltable"><table class="table">
@ -81,7 +81,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <code class="computeroutput"><span class="identifier">f</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -99,7 +99,7 @@
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.functional.generation.functions.mk_fused_fobj.expression_semantics"></a><h6> <a name="fusion.functional.generation.functions.mk_fused_fobj.expression_semantics"></a><h6>
<a name="id664292"></a> <a name="id1278827"></a>
<a href="mk_fused_fobj.html#fusion.functional.generation.functions.mk_fused_fobj.expression_semantics">Expression <a href="mk_fused_fobj.html#fusion.functional.generation.functions.mk_fused_fobj.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
@ -107,21 +107,21 @@
<span class="identifier">make_fused_function_object</span><span class="special">(</span><span class="identifier">f</span><span class="special">);</span> <span class="identifier">make_fused_function_object</span><span class="special">(</span><span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A specialization of <a href="../../adapters/fused_function_object.html" title="fused_function_object"><tt class="computeroutput"><span class="identifier">fused_function_object</span></tt></a>. <span class="bold"><strong>Return type</strong></span>: A specialization of <a href="../../adapters/fused_function_object.html" title="fused_function_object"><code class="computeroutput"><span class="identifier">fused_function_object</span></code></a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a <a href="../../adapters/fused_function_object.html" title="fused_function_object"><tt class="computeroutput"><span class="identifier">fused_function_object</span></tt></a> adapter <span class="bold"><strong>Semantics</strong></span>: Returns a <a href="../../adapters/fused_function_object.html" title="fused_function_object"><code class="computeroutput"><span class="identifier">fused_function_object</span></code></a> adapter
for <tt class="computeroutput"><span class="identifier">f</span></tt>. for <code class="computeroutput"><span class="identifier">f</span></code>.
</p> </p>
<a name="fusion.functional.generation.functions.mk_fused_fobj.header"></a><h6> <a name="fusion.functional.generation.functions.mk_fused_fobj.header"></a><h6>
<a name="id664420"></a> <a name="id1278938"></a>
<a href="mk_fused_fobj.html#fusion.functional.generation.functions.mk_fused_fobj.header">Header</a> <a href="mk_fused_fobj.html#fusion.functional.generation.functions.mk_fused_fobj.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_fused_function_object</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_fused_function_object</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.functional.generation.functions.mk_fused_fobj.example"></a><h6> <a name="fusion.functional.generation.functions.mk_fused_fobj.example"></a><h6>
<a name="id664528"></a> <a name="id1279033"></a>
<a href="mk_fused_fobj.html#fusion.functional.generation.functions.mk_fused_fobj.example">Example</a> <a href="mk_fused_fobj.html#fusion.functional.generation.functions.mk_fused_fobj.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -143,22 +143,22 @@
<span class="keyword">void</span> <span class="identifier">try_it</span><span class="special">()</span> <span class="keyword">void</span> <span class="identifier">try_it</span><span class="special">()</span>
<span class="special">{</span> <span class="special">{</span>
<a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">a</span><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">2.0f</span><span class="special">);</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">a</span><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">2.0f</span><span class="special">);</span>
<a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">b</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">1.5f</span><span class="special">);</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">b</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">1.5f</span><span class="special">);</span>
<a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">c</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">0.5f</span><span class="special">);</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="identifier">c</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">0.5f</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">c</span> <span class="special">==</span> <a href="../../../algorithms/transformation/functions/transform.html" title="transform"><tt class="computeroutput"><span class="identifier">transform</span></tt></a><span class="special">(</span><a href="../../../algorithms/transformation/functions/zip.html" title="zip"><tt class="computeroutput"><span class="identifier">zip</span></tt></a><span class="special">(</span><span class="identifier">a</span><span class="special">,</span><span class="identifier">b</span><span class="special">),</span> <span class="identifier">make_fused_function_object</span><span class="special">(</span><span class="identifier">sub</span><span class="special">())));</span> <span class="identifier">assert</span><span class="special">(</span><span class="identifier">c</span> <span class="special">==</span> <a href="../../../algorithms/transformation/functions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">transform</span></code></a><span class="special">(</span><a href="../../../algorithms/transformation/functions/zip.html" title="zip"><code class="computeroutput"><span class="identifier">zip</span></code></a><span class="special">(</span><span class="identifier">a</span><span class="special">,</span><span class="identifier">b</span><span class="special">),</span> <span class="identifier">make_fused_function_object</span><span class="special">(</span><span class="identifier">sub</span><span class="special">())));</span>
<span class="special">}</span> <span class="special">}</span>
</pre> </pre>
<a name="fusion.functional.generation.functions.mk_fused_fobj.see_also"></a><h6> <a name="fusion.functional.generation.functions.mk_fused_fobj.see_also"></a><h6>
<a name="id665270"></a> <a name="id1279689"></a>
<a href="mk_fused_fobj.html#fusion.functional.generation.functions.mk_fused_fobj.see_also">See <a href="mk_fused_fobj.html#fusion.functional.generation.functions.mk_fused_fobj.see_also">See
also</a> also</a>
</h6> </h6>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
<li><a href="../../adapters/fused_function_object.html" title="fused_function_object"><tt class="computeroutput"><span class="identifier">fused_function_object</span></tt></a></li> <li><a href="../../adapters/fused_function_object.html" title="fused_function_object"><code class="computeroutput"><span class="identifier">fused_function_object</span></code></a></li>
<li><a href="../../../support/deduce.html" title="deduce"><tt class="computeroutput"><span class="identifier">deduce</span></tt></a></li> <li><a href="../../../support/deduce.html" title="deduce"><code class="computeroutput"><span class="identifier">deduce</span></code></a></li>
<li><a href="../metafunctions/mk_fused_fobj.html" title=" <li><a href="../metafunctions/mk_fused_fobj.html" title="
make_fused_function_object"><tt class="computeroutput"><span class="identifier">make_fused_function_object</span></tt></a></li> make_fused_function_object"><code class="computeroutput"><span class="identifier">make_fused_function_object</span></code></a></li>
</ul></div> </ul></div>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -168,7 +168,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="mk_fused_proc.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="mk_unfused_genrc.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="mk_fused_proc.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="mk_unfused_genrc.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -4,7 +4,7 @@
<title> <title>
make_fused_procedure</title> make_fused_procedure</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="mk_fused.html" title=" <link rel="prev" href="mk_fused.html" title="
@ -13,17 +13,17 @@
make_fused_function_object"> make_fused_function_object">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="mk_fused.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="mk_fused_fobj.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="mk_fused.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="mk_fused_fobj.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
@ -31,28 +31,28 @@
make_fused_procedure"> make_fused_procedure">
make_fused_procedure</a></h5></div></div></div> make_fused_procedure</a></h5></div></div></div>
<a name="fusion.functional.generation.functions.mk_fused_proc.description"></a><h6> <a name="fusion.functional.generation.functions.mk_fused_proc.description"></a><h6>
<a name="id662984"></a> <a name="id1277670"></a>
<a href="mk_fused_proc.html#fusion.functional.generation.functions.mk_fused_proc.description">Description</a> <a href="mk_fused_proc.html#fusion.functional.generation.functions.mk_fused_proc.description">Description</a>
</h6> </h6>
<p> <p>
Creates a <a href="../../adapters/fused_procedure.html" title="fused_procedure"><tt class="computeroutput"><span class="identifier">fused_procedure</span></tt></a> adapter for Creates a <a href="../../adapters/fused_procedure.html" title="fused_procedure"><code class="computeroutput"><span class="identifier">fused_procedure</span></code></a> adapter for
a given <a href="../../concepts/def_callable.html" title=" Deferred a given <a href="../../concepts/def_callable.html" title=" Deferred
Callable Object">Deferred Callable Object">Deferred
Callable Object</a>. The usual <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element Callable Object</a>. The usual <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
conversion</em></span></a> applied to the target function. conversion</em></span></a> applied to the target function.
</p> </p>
<a name="fusion.functional.generation.functions.mk_fused_proc.synopsis"></a><h6> <a name="fusion.functional.generation.functions.mk_fused_proc.synopsis"></a><h6>
<a name="id663054"></a> <a name="id1277731"></a>
<a href="mk_fused_proc.html#fusion.functional.generation.functions.mk_fused_proc.synopsis">Synopsis</a> <a href="mk_fused_proc.html#fusion.functional.generation.functions.mk_fused_proc.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">F</span><span class="special">&gt;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">F</span><span class="special">&gt;</span>
<span class="keyword">inline</span> <span class="keyword">typename</span> <a href="../metafunctions/mk_fused_proc.html" title=" <span class="keyword">inline</span> <span class="keyword">typename</span> <a href="../metafunctions/mk_fused_proc.html" title="
make_fused_procedure"><tt class="computeroutput"><span class="identifier">make_fused_procedure</span></tt></a><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> make_fused_procedure"><code class="computeroutput"><span class="identifier">make_fused_procedure</span></code></a><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span>
<span class="identifier">make_fused_procedure</span><span class="special">(</span><span class="identifier">F</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">make_fused_procedure</span><span class="special">(</span><span class="identifier">F</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<a name="fusion.functional.generation.functions.mk_fused_proc.parameters"></a><h6> <a name="fusion.functional.generation.functions.mk_fused_proc.parameters"></a><h6>
<a name="id663210"></a> <a name="id1277868"></a>
<a href="mk_fused_proc.html#fusion.functional.generation.functions.mk_fused_proc.parameters">Parameters</a> <a href="mk_fused_proc.html#fusion.functional.generation.functions.mk_fused_proc.parameters">Parameters</a>
</h6> </h6>
<div class="informaltable"><table class="table"> <div class="informaltable"><table class="table">
@ -81,7 +81,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <code class="computeroutput"><span class="identifier">f</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -98,7 +98,7 @@
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.functional.generation.functions.mk_fused_proc.expression_semantics"></a><h6> <a name="fusion.functional.generation.functions.mk_fused_proc.expression_semantics"></a><h6>
<a name="id663326"></a> <a name="id1277974"></a>
<a href="mk_fused_proc.html#fusion.functional.generation.functions.mk_fused_proc.expression_semantics">Expression <a href="mk_fused_proc.html#fusion.functional.generation.functions.mk_fused_proc.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
@ -106,39 +106,39 @@
<span class="identifier">make_fused_procedure</span><span class="special">(</span><span class="identifier">f</span><span class="special">);</span> <span class="identifier">make_fused_procedure</span><span class="special">(</span><span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A specialization of <a href="../../adapters/fused_procedure.html" title="fused_procedure"><tt class="computeroutput"><span class="identifier">fused_procedure</span></tt></a>. <span class="bold"><strong>Return type</strong></span>: A specialization of <a href="../../adapters/fused_procedure.html" title="fused_procedure"><code class="computeroutput"><span class="identifier">fused_procedure</span></code></a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a <a href="../../adapters/fused_procedure.html" title="fused_procedure"><tt class="computeroutput"><span class="identifier">fused_procedure</span></tt></a> adapter for <span class="bold"><strong>Semantics</strong></span>: Returns a <a href="../../adapters/fused_procedure.html" title="fused_procedure"><code class="computeroutput"><span class="identifier">fused_procedure</span></code></a> adapter for
<tt class="computeroutput"><span class="identifier">f</span></tt>. <code class="computeroutput"><span class="identifier">f</span></code>.
</p> </p>
<a name="fusion.functional.generation.functions.mk_fused_proc.header"></a><h6> <a name="fusion.functional.generation.functions.mk_fused_proc.header"></a><h6>
<a name="id663452"></a> <a name="id1278082"></a>
<a href="mk_fused_proc.html#fusion.functional.generation.functions.mk_fused_proc.header">Header</a> <a href="mk_fused_proc.html#fusion.functional.generation.functions.mk_fused_proc.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_fused_procedure</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_fused_procedure</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.functional.generation.functions.mk_fused_proc.example"></a><h6> <a name="fusion.functional.generation.functions.mk_fused_proc.example"></a><h6>
<a name="id663559"></a> <a name="id1278177"></a>
<a href="mk_fused_proc.html#fusion.functional.generation.functions.mk_fused_proc.example">Example</a> <a href="mk_fused_proc.html#fusion.functional.generation.functions.mk_fused_proc.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">v</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="number">3</span><span class="special">);</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">v</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="number">3</span><span class="special">);</span>
<span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">lambda</span><span class="special">;</span> <span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">lambda</span><span class="special">;</span>
<span class="identifier">make_fused_procedure</span><span class="special">(</span><span class="identifier">_1</span> <span class="special">+=</span> <span class="identifier">_2</span> <span class="special">-</span> <span class="identifier">_3</span><span class="special">)(</span><span class="identifier">v</span><span class="special">);</span> <span class="identifier">make_fused_procedure</span><span class="special">(</span><span class="identifier">_1</span> <span class="special">+=</span> <span class="identifier">_2</span> <span class="special">-</span> <span class="identifier">_3</span><span class="special">)(</span><span class="identifier">v</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="../../../sequences/intrinsics/functions/front.html" title="front"><tt class="computeroutput"><span class="identifier">front</span></tt></a><span class="special">(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">==</span> <span class="number">0</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(</span><a href="../../../sequences/intrinsics/functions/front.html" title="front"><code class="computeroutput"><span class="identifier">front</span></code></a><span class="special">(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">==</span> <span class="number">0</span><span class="special">);</span>
</pre> </pre>
<a name="fusion.functional.generation.functions.mk_fused_proc.see_also"></a><h6> <a name="fusion.functional.generation.functions.mk_fused_proc.see_also"></a><h6>
<a name="id663830"></a> <a name="id1278416"></a>
<a href="mk_fused_proc.html#fusion.functional.generation.functions.mk_fused_proc.see_also">See <a href="mk_fused_proc.html#fusion.functional.generation.functions.mk_fused_proc.see_also">See
also</a> also</a>
</h6> </h6>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
<li><a href="../../adapters/fused_procedure.html" title="fused_procedure"><tt class="computeroutput"><span class="identifier">fused_procedure</span></tt></a></li> <li><a href="../../adapters/fused_procedure.html" title="fused_procedure"><code class="computeroutput"><span class="identifier">fused_procedure</span></code></a></li>
<li><a href="../../../support/deduce.html" title="deduce"><tt class="computeroutput"><span class="identifier">deduce</span></tt></a></li> <li><a href="../../../support/deduce.html" title="deduce"><code class="computeroutput"><span class="identifier">deduce</span></code></a></li>
<li><a href="../metafunctions/mk_fused_proc.html" title=" <li><a href="../metafunctions/mk_fused_proc.html" title="
make_fused_procedure"><tt class="computeroutput"><span class="identifier">make_fused_procedure</span></tt></a></li> make_fused_procedure"><code class="computeroutput"><span class="identifier">make_fused_procedure</span></code></a></li>
</ul></div> </ul></div>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -148,7 +148,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="mk_fused.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="mk_fused_fobj.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="mk_fused.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="mk_fused_fobj.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -4,7 +4,7 @@
<title> <title>
make_unfused_generic</title> make_unfused_generic</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="mk_fused_fobj.html" title=" <link rel="prev" href="mk_fused_fobj.html" title="
@ -13,17 +13,17 @@
make_unfused_lvalue_args"> make_unfused_lvalue_args">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="mk_fused_fobj.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="mk_unfused_lvargs.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="mk_fused_fobj.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="mk_unfused_lvargs.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
@ -31,28 +31,28 @@
make_unfused_generic"> make_unfused_generic">
make_unfused_generic</a></h5></div></div></div> make_unfused_generic</a></h5></div></div></div>
<a name="fusion.functional.generation.functions.mk_unfused_genrc.description"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_genrc.description"></a><h6>
<a name="id665387"></a> <a name="id1279794"></a>
<a href="mk_unfused_genrc.html#fusion.functional.generation.functions.mk_unfused_genrc.description">Description</a> <a href="mk_unfused_genrc.html#fusion.functional.generation.functions.mk_unfused_genrc.description">Description</a>
</h6> </h6>
<p> <p>
Creates a <a href="../../adapters/unfused_generic.html" title="unfused_generic"><tt class="computeroutput"><span class="identifier">unfused_generic</span></tt></a> adapter for Creates a <a href="../../adapters/unfused_generic.html" title="unfused_generic"><code class="computeroutput"><span class="identifier">unfused_generic</span></code></a> adapter for
a given, unary <a href="../../concepts/poly.html" title=" Polymorphic Function a given, unary <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a>. The usual <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element Function Object</a>. The usual <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
conversion</em></span></a> is applied to the target function. conversion</em></span></a> is applied to the target function.
</p> </p>
<a name="fusion.functional.generation.functions.mk_unfused_genrc.synopsis"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_genrc.synopsis"></a><h6>
<a name="id665457"></a> <a name="id1279857"></a>
<a href="mk_unfused_genrc.html#fusion.functional.generation.functions.mk_unfused_genrc.synopsis">Synopsis</a> <a href="mk_unfused_genrc.html#fusion.functional.generation.functions.mk_unfused_genrc.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">F</span><span class="special">&gt;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">F</span><span class="special">&gt;</span>
<span class="keyword">inline</span> <span class="keyword">typename</span> <a href="../metafunctions/mk_unfused_genrc.html" title=" <span class="keyword">inline</span> <span class="keyword">typename</span> <a href="../metafunctions/mk_unfused_genrc.html" title="
make_unfused_generic"><tt class="computeroutput"><span class="identifier">make_unfused_generic</span></tt></a><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> make_unfused_generic"><code class="computeroutput"><span class="identifier">make_unfused_generic</span></code></a><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span>
<span class="identifier">make_unfused_generic</span><span class="special">(</span><span class="identifier">F</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">make_unfused_generic</span><span class="special">(</span><span class="identifier">F</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<a name="fusion.functional.generation.functions.mk_unfused_genrc.parameters"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_genrc.parameters"></a><h6>
<a name="id665614"></a> <a name="id1279995"></a>
<a href="mk_unfused_genrc.html#fusion.functional.generation.functions.mk_unfused_genrc.parameters">Parameters</a> <a href="mk_unfused_genrc.html#fusion.functional.generation.functions.mk_unfused_genrc.parameters">Parameters</a>
</h6> </h6>
<div class="informaltable"><table class="table"> <div class="informaltable"><table class="table">
@ -81,7 +81,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <code class="computeroutput"><span class="identifier">f</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -99,7 +99,7 @@
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.functional.generation.functions.mk_unfused_genrc.expression_semantics"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_genrc.expression_semantics"></a><h6>
<a name="id665729"></a> <a name="id1280099"></a>
<a href="mk_unfused_genrc.html#fusion.functional.generation.functions.mk_unfused_genrc.expression_semantics">Expression <a href="mk_unfused_genrc.html#fusion.functional.generation.functions.mk_unfused_genrc.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
@ -107,21 +107,21 @@
<span class="identifier">make_unfused_generic</span><span class="special">(</span><span class="identifier">f</span><span class="special">);</span> <span class="identifier">make_unfused_generic</span><span class="special">(</span><span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A specialization of <a href="../../adapters/unfused_generic.html" title="unfused_generic"><tt class="computeroutput"><span class="identifier">unfused_generic</span></tt></a>. <span class="bold"><strong>Return type</strong></span>: A specialization of <a href="../../adapters/unfused_generic.html" title="unfused_generic"><code class="computeroutput"><span class="identifier">unfused_generic</span></code></a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a <a href="../../adapters/unfused_generic.html" title="unfused_generic"><tt class="computeroutput"><span class="identifier">unfused_generic</span></tt></a> adapter for <span class="bold"><strong>Semantics</strong></span>: Returns a <a href="../../adapters/unfused_generic.html" title="unfused_generic"><code class="computeroutput"><span class="identifier">unfused_generic</span></code></a> adapter for
<tt class="computeroutput"><span class="identifier">f</span></tt>. <code class="computeroutput"><span class="identifier">f</span></code>.
</p> </p>
<a name="fusion.functional.generation.functions.mk_unfused_genrc.header"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_genrc.header"></a><h6>
<a name="id665854"></a> <a name="id1280208"></a>
<a href="mk_unfused_genrc.html#fusion.functional.generation.functions.mk_unfused_genrc.header">Header</a> <a href="mk_unfused_genrc.html#fusion.functional.generation.functions.mk_unfused_genrc.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_unfused_generic</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_unfused_generic</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.functional.generation.functions.mk_unfused_genrc.example"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_genrc.example"></a><h6>
<a name="id665961"></a> <a name="id1280302"></a>
<a href="mk_unfused_genrc.html#fusion.functional.generation.functions.mk_unfused_genrc.example">Example</a> <a href="mk_unfused_genrc.html#fusion.functional.generation.functions.mk_unfused_genrc.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -157,15 +157,15 @@
</span><span class="special">}</span> </span><span class="special">}</span>
</pre> </pre>
<a name="fusion.functional.generation.functions.mk_unfused_genrc.see_also"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_genrc.see_also"></a><h6>
<a name="id666765"></a> <a name="id1281014"></a>
<a href="mk_unfused_genrc.html#fusion.functional.generation.functions.mk_unfused_genrc.see_also">See <a href="mk_unfused_genrc.html#fusion.functional.generation.functions.mk_unfused_genrc.see_also">See
also</a> also</a>
</h6> </h6>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
<li><a href="../../adapters/unfused_generic.html" title="unfused_generic"><tt class="computeroutput"><span class="identifier">unfused_generic</span></tt></a></li> <li><a href="../../adapters/unfused_generic.html" title="unfused_generic"><code class="computeroutput"><span class="identifier">unfused_generic</span></code></a></li>
<li><a href="../../../support/deduce.html" title="deduce"><tt class="computeroutput"><span class="identifier">deduce</span></tt></a></li> <li><a href="../../../support/deduce.html" title="deduce"><code class="computeroutput"><span class="identifier">deduce</span></code></a></li>
<li><a href="../metafunctions/mk_unfused_genrc.html" title=" <li><a href="../metafunctions/mk_unfused_genrc.html" title="
make_unfused_generic"><tt class="computeroutput"><span class="identifier">make_unfused_generic</span></tt></a></li> make_unfused_generic"><code class="computeroutput"><span class="identifier">make_unfused_generic</span></code></a></li>
</ul></div> </ul></div>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -175,7 +175,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="mk_fused_fobj.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="mk_unfused_lvargs.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="mk_fused_fobj.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="mk_unfused_lvargs.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -4,7 +4,7 @@
<title> <title>
make_unfused_lvalue_args</title> make_unfused_lvalue_args</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="mk_unfused_genrc.html" title=" <link rel="prev" href="mk_unfused_genrc.html" title="
@ -13,17 +13,17 @@
make_unfused_rvalue_args"> make_unfused_rvalue_args">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="mk_unfused_genrc.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="mk_unfused_rvargs.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="mk_unfused_genrc.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="mk_unfused_rvargs.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
@ -31,28 +31,28 @@
make_unfused_lvalue_args"> make_unfused_lvalue_args">
make_unfused_lvalue_args</a></h5></div></div></div> make_unfused_lvalue_args</a></h5></div></div></div>
<a name="fusion.functional.generation.functions.mk_unfused_lvargs.description"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_lvargs.description"></a><h6>
<a name="id666885"></a> <a name="id1281120"></a>
<a href="mk_unfused_lvargs.html#fusion.functional.generation.functions.mk_unfused_lvargs.description">Description</a> <a href="mk_unfused_lvargs.html#fusion.functional.generation.functions.mk_unfused_lvargs.description">Description</a>
</h6> </h6>
<p> <p>
Creates a <a href="../../adapters/unfused_lvalue_args.html" title="unfused_lvalue_args"><tt class="computeroutput"><span class="identifier">unfused_lvalue_args</span></tt></a> adapter Creates a <a href="../../adapters/unfused_lvalue_args.html" title="unfused_lvalue_args"><code class="computeroutput"><span class="identifier">unfused_lvalue_args</span></code></a> adapter
for a given, unary <a href="../../concepts/poly.html" title=" Polymorphic Function for a given, unary <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a>. The usual <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element Function Object</a>. The usual <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
conversion</em></span></a> is applied to the target function. conversion</em></span></a> is applied to the target function.
</p> </p>
<a name="fusion.functional.generation.functions.mk_unfused_lvargs.synopsis"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_lvargs.synopsis"></a><h6>
<a name="id666956"></a> <a name="id1281184"></a>
<a href="mk_unfused_lvargs.html#fusion.functional.generation.functions.mk_unfused_lvargs.synopsis">Synopsis</a> <a href="mk_unfused_lvargs.html#fusion.functional.generation.functions.mk_unfused_lvargs.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">F</span><span class="special">&gt;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">F</span><span class="special">&gt;</span>
<span class="keyword">inline</span> <span class="keyword">typename</span> <a href="../metafunctions/mk_unfused_lvargs.html" title=" <span class="keyword">inline</span> <span class="keyword">typename</span> <a href="../metafunctions/mk_unfused_lvargs.html" title="
make_unfused_lvalue_args"><tt class="computeroutput"><span class="identifier">make_unfused_lvalue_args</span></tt></a><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> make_unfused_lvalue_args"><code class="computeroutput"><span class="identifier">make_unfused_lvalue_args</span></code></a><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span>
<span class="identifier">make_unfused_lvalue_args</span><span class="special">(</span><span class="identifier">F</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">make_unfused_lvalue_args</span><span class="special">(</span><span class="identifier">F</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<a name="fusion.functional.generation.functions.mk_unfused_lvargs.parameters"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_lvargs.parameters"></a><h6>
<a name="id667113"></a> <a name="id1281322"></a>
<a href="mk_unfused_lvargs.html#fusion.functional.generation.functions.mk_unfused_lvargs.parameters">Parameters</a> <a href="mk_unfused_lvargs.html#fusion.functional.generation.functions.mk_unfused_lvargs.parameters">Parameters</a>
</h6> </h6>
<div class="informaltable"><table class="table"> <div class="informaltable"><table class="table">
@ -81,7 +81,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <code class="computeroutput"><span class="identifier">f</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -99,7 +99,7 @@
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.functional.generation.functions.mk_unfused_lvargs.expression_semantics"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_lvargs.expression_semantics"></a><h6>
<a name="id667230"></a> <a name="id1281427"></a>
<a href="mk_unfused_lvargs.html#fusion.functional.generation.functions.mk_unfused_lvargs.expression_semantics">Expression <a href="mk_unfused_lvargs.html#fusion.functional.generation.functions.mk_unfused_lvargs.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
@ -107,21 +107,21 @@
<span class="identifier">make_unfused_lvalue_args</span><span class="special">(</span><span class="identifier">f</span><span class="special">);</span> <span class="identifier">make_unfused_lvalue_args</span><span class="special">(</span><span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A specialization of <a href="../../adapters/unfused_lvalue_args.html" title="unfused_lvalue_args"><tt class="computeroutput"><span class="identifier">unfused_lvalue_args</span></tt></a>. <span class="bold"><strong>Return type</strong></span>: A specialization of <a href="../../adapters/unfused_lvalue_args.html" title="unfused_lvalue_args"><code class="computeroutput"><span class="identifier">unfused_lvalue_args</span></code></a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a <a href="../../adapters/unfused_lvalue_args.html" title="unfused_lvalue_args"><tt class="computeroutput"><span class="identifier">unfused_lvalue_args</span></tt></a> adapter <span class="bold"><strong>Semantics</strong></span>: Returns a <a href="../../adapters/unfused_lvalue_args.html" title="unfused_lvalue_args"><code class="computeroutput"><span class="identifier">unfused_lvalue_args</span></code></a> adapter
for <tt class="computeroutput"><span class="identifier">f</span></tt>. for <code class="computeroutput"><span class="identifier">f</span></code>.
</p> </p>
<a name="fusion.functional.generation.functions.mk_unfused_lvargs.header"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_lvargs.header"></a><h6>
<a name="id667355"></a> <a name="id1281536"></a>
<a href="mk_unfused_lvargs.html#fusion.functional.generation.functions.mk_unfused_lvargs.header">Header</a> <a href="mk_unfused_lvargs.html#fusion.functional.generation.functions.mk_unfused_lvargs.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_unfused_lvalue_args</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_unfused_lvalue_args</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.functional.generation.functions.mk_unfused_lvargs.example"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_lvargs.example"></a><h6>
<a name="id667464"></a> <a name="id1281632"></a>
<a href="mk_unfused_lvargs.html#fusion.functional.generation.functions.mk_unfused_lvargs.example">Example</a> <a href="mk_unfused_lvargs.html#fusion.functional.generation.functions.mk_unfused_lvargs.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -136,7 +136,7 @@
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Seq</span><span class="special">&gt;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">class</span> <span class="identifier">Seq</span><span class="special">&gt;</span>
<span class="keyword">void</span> <span class="keyword">operator</span><span class="special">()(</span><span class="identifier">Seq</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">s</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">void</span> <span class="keyword">operator</span><span class="special">()(</span><span class="identifier">Seq</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">s</span><span class="special">)</span> <span class="keyword">const</span>
<span class="special">{</span> <span class="special">{</span>
<a href="../../../algorithms/iteration/functions/for_each.html" title="for_each"><tt class="computeroutput"><span class="identifier">for_each</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">,++</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">lambda</span><span class="special">::</span><span class="identifier">_1</span><span class="special">);</span> <a href="../../../algorithms/iteration/functions/for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">for_each</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">,++</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">lambda</span><span class="special">::</span><span class="identifier">_1</span><span class="special">);</span>
<span class="special">}</span> <span class="special">}</span>
<span class="special">};</span> <span class="special">};</span>
@ -148,15 +148,15 @@
<span class="special">}</span> <span class="special">}</span>
</pre> </pre>
<a name="fusion.functional.generation.functions.mk_unfused_lvargs.see_also"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_lvargs.see_also"></a><h6>
<a name="id667941"></a> <a name="id1282054"></a>
<a href="mk_unfused_lvargs.html#fusion.functional.generation.functions.mk_unfused_lvargs.see_also">See <a href="mk_unfused_lvargs.html#fusion.functional.generation.functions.mk_unfused_lvargs.see_also">See
also</a> also</a>
</h6> </h6>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
<li><a href="../../adapters/unfused_lvalue_args.html" title="unfused_lvalue_args"><tt class="computeroutput"><span class="identifier">unfused_lvalue_args</span></tt></a></li> <li><a href="../../adapters/unfused_lvalue_args.html" title="unfused_lvalue_args"><code class="computeroutput"><span class="identifier">unfused_lvalue_args</span></code></a></li>
<li><a href="../../../support/deduce.html" title="deduce"><tt class="computeroutput"><span class="identifier">deduce</span></tt></a></li> <li><a href="../../../support/deduce.html" title="deduce"><code class="computeroutput"><span class="identifier">deduce</span></code></a></li>
<li><a href="../metafunctions/mk_unfused_lvargs.html" title=" <li><a href="../metafunctions/mk_unfused_lvargs.html" title="
make_unfused_lvalue_args"><tt class="computeroutput"><span class="identifier">make_unfused_lvalue_args</span></tt></a></li> make_unfused_lvalue_args"><code class="computeroutput"><span class="identifier">make_unfused_lvalue_args</span></code></a></li>
</ul></div> </ul></div>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -166,7 +166,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="mk_unfused_genrc.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="mk_unfused_rvargs.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="mk_unfused_genrc.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="mk_unfused_rvargs.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -4,7 +4,7 @@
<title> <title>
make_unfused_rvalue_args</title> make_unfused_rvalue_args</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="mk_unfused_lvargs.html" title=" <link rel="prev" href="mk_unfused_lvargs.html" title="
@ -12,17 +12,17 @@
<link rel="next" href="../metafunctions.html" title="Metafunctions"> <link rel="next" href="../metafunctions.html" title="Metafunctions">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="mk_unfused_lvargs.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="../metafunctions.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="mk_unfused_lvargs.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="../metafunctions.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
@ -30,28 +30,28 @@
make_unfused_rvalue_args"> make_unfused_rvalue_args">
make_unfused_rvalue_args</a></h5></div></div></div> make_unfused_rvalue_args</a></h5></div></div></div>
<a name="fusion.functional.generation.functions.mk_unfused_rvargs.description"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_rvargs.description"></a><h6>
<a name="id668059"></a> <a name="id1282160"></a>
<a href="mk_unfused_rvargs.html#fusion.functional.generation.functions.mk_unfused_rvargs.description">Description</a> <a href="mk_unfused_rvargs.html#fusion.functional.generation.functions.mk_unfused_rvargs.description">Description</a>
</h6> </h6>
<p> <p>
Creates a <a href="../../adapters/unfused_rvalue_args.html" title="unfused_rvalue_args"><tt class="computeroutput"><span class="identifier">unfused_rvalue_args</span></tt></a> adapter Creates a <a href="../../adapters/unfused_rvalue_args.html" title="unfused_rvalue_args"><code class="computeroutput"><span class="identifier">unfused_rvalue_args</span></code></a> adapter
for a given, unary <a href="../../concepts/poly.html" title=" Polymorphic Function for a given, unary <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a>. The usual <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element Function Object</a>. The usual <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
conversion</em></span></a> is applied to the target function. conversion</em></span></a> is applied to the target function.
</p> </p>
<a name="fusion.functional.generation.functions.mk_unfused_rvargs.synopsis"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_rvargs.synopsis"></a><h6>
<a name="id668129"></a> <a name="id1282222"></a>
<a href="mk_unfused_rvargs.html#fusion.functional.generation.functions.mk_unfused_rvargs.synopsis">Synopsis</a> <a href="mk_unfused_rvargs.html#fusion.functional.generation.functions.mk_unfused_rvargs.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">F</span><span class="special">&gt;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">F</span><span class="special">&gt;</span>
<span class="keyword">inline</span> <span class="keyword">typename</span> <a href="../metafunctions/mk_unfused_rvargs.html" title=" <span class="keyword">inline</span> <span class="keyword">typename</span> <a href="../metafunctions/mk_unfused_rvargs.html" title="
make_unfused_rvalue_args"><tt class="computeroutput"><span class="identifier">make_unfused_rvalue_args</span></tt></a><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> make_unfused_rvalue_args"><code class="computeroutput"><span class="identifier">make_unfused_rvalue_args</span></code></a><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span>
<span class="identifier">make_unfused_rvalue_args</span><span class="special">(</span><span class="identifier">F</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">make_unfused_rvalue_args</span><span class="special">(</span><span class="identifier">F</span> <span class="keyword">const</span> <span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<a name="fusion.functional.generation.functions.mk_unfused_rvargs.parameters"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_rvargs.parameters"></a><h6>
<a name="id668286"></a> <a name="id1282360"></a>
<a href="mk_unfused_rvargs.html#fusion.functional.generation.functions.mk_unfused_rvargs.parameters">Parameters</a> <a href="mk_unfused_rvargs.html#fusion.functional.generation.functions.mk_unfused_rvargs.parameters">Parameters</a>
</h6> </h6>
<div class="informaltable"><table class="table"> <div class="informaltable"><table class="table">
@ -80,7 +80,7 @@
<tbody><tr> <tbody><tr>
<td> <td>
<p> <p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <code class="computeroutput"><span class="identifier">f</span></code>
</p> </p>
</td> </td>
<td> <td>
@ -98,7 +98,7 @@
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.functional.generation.functions.mk_unfused_rvargs.expression_semantics"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_rvargs.expression_semantics"></a><h6>
<a name="id668402"></a> <a name="id1282465"></a>
<a href="mk_unfused_rvargs.html#fusion.functional.generation.functions.mk_unfused_rvargs.expression_semantics">Expression <a href="mk_unfused_rvargs.html#fusion.functional.generation.functions.mk_unfused_rvargs.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
@ -106,21 +106,21 @@
<span class="identifier">make_unfused_rvalue_args</span><span class="special">(</span><span class="identifier">f</span><span class="special">);</span> <span class="identifier">make_unfused_rvalue_args</span><span class="special">(</span><span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A specialization of <a href="../../adapters/unfused_rvalue_args.html" title="unfused_rvalue_args"><tt class="computeroutput"><span class="identifier">unfused_rvalue_args</span></tt></a>. <span class="bold"><strong>Return type</strong></span>: A specialization of <a href="../../adapters/unfused_rvalue_args.html" title="unfused_rvalue_args"><code class="computeroutput"><span class="identifier">unfused_rvalue_args</span></code></a>.
</p> </p>
<p> <p>
<span class="bold"><b>Semantics</b></span>: Returns a <a href="../../adapters/unfused_rvalue_args.html" title="unfused_rvalue_args"><tt class="computeroutput"><span class="identifier">unfused_rvalue_args</span></tt></a> adapter <span class="bold"><strong>Semantics</strong></span>: Returns a <a href="../../adapters/unfused_rvalue_args.html" title="unfused_rvalue_args"><code class="computeroutput"><span class="identifier">unfused_rvalue_args</span></code></a> adapter
for <tt class="computeroutput"><span class="identifier">f</span></tt>. for <code class="computeroutput"><span class="identifier">f</span></code>.
</p> </p>
<a name="fusion.functional.generation.functions.mk_unfused_rvargs.header"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_rvargs.header"></a><h6>
<a name="id668528"></a> <a name="id1282575"></a>
<a href="mk_unfused_rvargs.html#fusion.functional.generation.functions.mk_unfused_rvargs.header">Header</a> <a href="mk_unfused_rvargs.html#fusion.functional.generation.functions.mk_unfused_rvargs.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_unfused_rvalue_args</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_unfused_rvalue_args</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.functional.generation.functions.mk_unfused_rvargs.example"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_rvargs.example"></a><h6>
<a name="id668637"></a> <a name="id1282671"></a>
<a href="mk_unfused_rvargs.html#fusion.functional.generation.functions.mk_unfused_rvargs.example">Example</a> <a href="mk_unfused_rvargs.html#fusion.functional.generation.functions.mk_unfused_rvargs.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -146,15 +146,15 @@
<span class="special">}</span> <span class="special">}</span>
</pre> </pre>
<a name="fusion.functional.generation.functions.mk_unfused_rvargs.see_also"></a><h6> <a name="fusion.functional.generation.functions.mk_unfused_rvargs.see_also"></a><h6>
<a name="id669020"></a> <a name="id1283011"></a>
<a href="mk_unfused_rvargs.html#fusion.functional.generation.functions.mk_unfused_rvargs.see_also">See <a href="mk_unfused_rvargs.html#fusion.functional.generation.functions.mk_unfused_rvargs.see_also">See
also</a> also</a>
</h6> </h6>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
<li><a href="../../adapters/unfused_rvalue_args.html" title="unfused_rvalue_args"><tt class="computeroutput"><span class="identifier">unfused_rvalue_args</span></tt></a></li> <li><a href="../../adapters/unfused_rvalue_args.html" title="unfused_rvalue_args"><code class="computeroutput"><span class="identifier">unfused_rvalue_args</span></code></a></li>
<li><a href="../../../support/deduce.html" title="deduce"><tt class="computeroutput"><span class="identifier">deduce</span></tt></a></li> <li><a href="../../../support/deduce.html" title="deduce"><code class="computeroutput"><span class="identifier">deduce</span></code></a></li>
<li><a href="../metafunctions/mk_unfused_rvargs.html" title=" <li><a href="../metafunctions/mk_unfused_rvargs.html" title="
make_unfused_rvalue_args"><tt class="computeroutput"><span class="identifier">make_unfused_rvalue_args</span></tt></a></li> make_unfused_rvalue_args"><code class="computeroutput"><span class="identifier">make_unfused_rvalue_args</span></code></a></li>
</ul></div> </ul></div>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
@ -164,7 +164,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="mk_unfused_lvargs.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="../metafunctions.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="mk_unfused_lvargs.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="../metafunctions.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Metafunctions</title> <title>Metafunctions</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../generation.html" title="Generation"> <link rel="up" href="../generation.html" title="Generation">
<link rel="prev" href="functions/mk_unfused_rvargs.html" title=" <link rel="prev" href="functions/mk_unfused_rvargs.html" title="
@ -12,17 +12,17 @@
make_fused"> make_fused">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> <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="../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../libraries.htm">Libraries</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="../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="functions/mk_unfused_rvargs.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../generation.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="metafunctions/mk_fused.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="functions/mk_unfused_rvargs.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../generation.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="metafunctions/mk_fused.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
@ -49,7 +49,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="functions/mk_unfused_rvargs.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../generation.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="metafunctions/mk_fused.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="functions/mk_unfused_rvargs.html"><img src="../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../generation.html"><img src="../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="metafunctions/mk_fused.html"><img src="../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -4,7 +4,7 @@
<title> <title>
make_fused</title> make_fused</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="../metafunctions.html" title="Metafunctions"> <link rel="prev" href="../metafunctions.html" title="Metafunctions">
@ -12,17 +12,17 @@
make_fused_procedure"> make_fused_procedure">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../metafunctions.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="mk_fused_proc.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../metafunctions.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="mk_fused_proc.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
@ -30,22 +30,22 @@
make_fused"> make_fused">
make_fused</a></h5></div></div></div> make_fused</a></h5></div></div></div>
<a name="fusion.functional.generation.metafunctions.mk_fused.description"></a><h6> <a name="fusion.functional.generation.metafunctions.mk_fused.description"></a><h6>
<a name="id669158"></a> <a name="id1283131"></a>
<a href="mk_fused.html#fusion.functional.generation.metafunctions.mk_fused.description">Description</a> <a href="mk_fused.html#fusion.functional.generation.metafunctions.mk_fused.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/mk_fused.html" title=" Returns the result type of <a href="../functions/mk_fused.html" title="
make_fused"><tt class="computeroutput"><span class="identifier">make_fused</span></tt></a>. make_fused"><code class="computeroutput"><span class="identifier">make_fused</span></code></a>.
</p> </p>
<a name="fusion.functional.generation.metafunctions.mk_fused.header"></a><h6> <a name="fusion.functional.generation.metafunctions.mk_fused.header"></a><h6>
<a name="id669207"></a> <a name="id1283174"></a>
<a href="mk_fused.html#fusion.functional.generation.metafunctions.mk_fused.header">Header</a> <a href="mk_fused.html#fusion.functional.generation.metafunctions.mk_fused.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_fused</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_fused</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.functional.generation.metafunctions.mk_fused.synopsis"></a><h6> <a name="fusion.functional.generation.metafunctions.mk_fused.synopsis"></a><h6>
<a name="id669316"></a> <a name="id1283269"></a>
<a href="mk_fused.html#fusion.functional.generation.metafunctions.mk_fused.synopsis">Synopsis</a> <a href="mk_fused.html#fusion.functional.generation.metafunctions.mk_fused.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -59,12 +59,12 @@
<span class="special">}</span> <span class="special">}</span>
</pre> </pre>
<a name="fusion.functional.generation.metafunctions.mk_fused.see_also"></a><h6> <a name="fusion.functional.generation.metafunctions.mk_fused.see_also"></a><h6>
<a name="id669450"></a> <a name="id1283387"></a>
<a href="mk_fused.html#fusion.functional.generation.metafunctions.mk_fused.see_also">See <a href="mk_fused.html#fusion.functional.generation.metafunctions.mk_fused.see_also">See
also</a> also</a>
</h6> </h6>
<div class="itemizedlist"><ul type="disc"><li><a href="../functions/mk_fused.html" title=" <div class="itemizedlist"><ul type="disc"><li><a href="../functions/mk_fused.html" title="
make_fused"><tt class="computeroutput"><span class="identifier">make_fused</span></tt></a></li></ul></div> make_fused"><code class="computeroutput"><span class="identifier">make_fused</span></code></a></li></ul></div>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td> <td align="left"></td>
@ -73,7 +73,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="../metafunctions.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="mk_fused_proc.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../metafunctions.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="mk_fused_proc.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -4,7 +4,7 @@
<title> <title>
make_fused_function_object</title> make_fused_function_object</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="mk_fused_proc.html" title=" <link rel="prev" href="mk_fused_proc.html" title="
@ -13,17 +13,17 @@
make_unfused_generic"> make_unfused_generic">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="mk_fused_proc.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="mk_unfused_genrc.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="mk_fused_proc.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="mk_unfused_genrc.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
@ -31,22 +31,22 @@
make_fused_function_object"> make_fused_function_object">
make_fused_function_object</a></h5></div></div></div> make_fused_function_object</a></h5></div></div></div>
<a name="fusion.functional.generation.metafunctions.mk_fused_fobj.description"></a><h6> <a name="fusion.functional.generation.metafunctions.mk_fused_fobj.description"></a><h6>
<a name="id669889"></a> <a name="id1283781"></a>
<a href="mk_fused_fobj.html#fusion.functional.generation.metafunctions.mk_fused_fobj.description">Description</a> <a href="mk_fused_fobj.html#fusion.functional.generation.metafunctions.mk_fused_fobj.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/mk_fused_fobj.html" title=" Returns the result type of <a href="../functions/mk_fused_fobj.html" title="
make_fused_function_object"><tt class="computeroutput"><span class="identifier">make_fused_function_object</span></tt></a>. make_fused_function_object"><code class="computeroutput"><span class="identifier">make_fused_function_object</span></code></a>.
</p> </p>
<a name="fusion.functional.generation.metafunctions.mk_fused_fobj.header"></a><h6> <a name="fusion.functional.generation.metafunctions.mk_fused_fobj.header"></a><h6>
<a name="id669940"></a> <a name="id1283824"></a>
<a href="mk_fused_fobj.html#fusion.functional.generation.metafunctions.mk_fused_fobj.header">Header</a> <a href="mk_fused_fobj.html#fusion.functional.generation.metafunctions.mk_fused_fobj.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_fused_function_object</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_fused_function_object</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.functional.generation.metafunctions.mk_fused_fobj.synopsis"></a><h6> <a name="fusion.functional.generation.metafunctions.mk_fused_fobj.synopsis"></a><h6>
<a name="id670048"></a> <a name="id1283920"></a>
<a href="mk_fused_fobj.html#fusion.functional.generation.metafunctions.mk_fused_fobj.synopsis">Synopsis</a> <a href="mk_fused_fobj.html#fusion.functional.generation.metafunctions.mk_fused_fobj.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -60,12 +60,12 @@
<span class="special">}</span> <span class="special">}</span>
</pre> </pre>
<a name="fusion.functional.generation.metafunctions.mk_fused_fobj.see_also"></a><h6> <a name="fusion.functional.generation.metafunctions.mk_fused_fobj.see_also"></a><h6>
<a name="id670183"></a> <a name="id1284040"></a>
<a href="mk_fused_fobj.html#fusion.functional.generation.metafunctions.mk_fused_fobj.see_also">See <a href="mk_fused_fobj.html#fusion.functional.generation.metafunctions.mk_fused_fobj.see_also">See
also</a> also</a>
</h6> </h6>
<div class="itemizedlist"><ul type="disc"><li><a href="../functions/mk_fused_fobj.html" title=" <div class="itemizedlist"><ul type="disc"><li><a href="../functions/mk_fused_fobj.html" title="
make_fused_function_object"><tt class="computeroutput"><span class="identifier">make_fused_function_object</span></tt></a></li></ul></div> make_fused_function_object"><code class="computeroutput"><span class="identifier">make_fused_function_object</span></code></a></li></ul></div>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td> <td align="left"></td>
@ -74,7 +74,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="mk_fused_proc.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="mk_unfused_genrc.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="mk_fused_proc.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="mk_unfused_genrc.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -4,7 +4,7 @@
<title> <title>
make_fused_procedure</title> make_fused_procedure</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="mk_fused.html" title=" <link rel="prev" href="mk_fused.html" title="
@ -13,17 +13,17 @@
make_fused_function_object"> make_fused_function_object">
</head> </head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr> <table cellpadding="2" width="100%">
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td> <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="../../../../../../../../index.htm">Home</a></td>
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</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="../../../../../../../../people/people.htm">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td> <td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table> </table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="mk_fused.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="mk_fused_fobj.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="mk_fused.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="mk_fused_fobj.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
@ -31,22 +31,22 @@
make_fused_procedure"> make_fused_procedure">
make_fused_procedure</a></h5></div></div></div> make_fused_procedure</a></h5></div></div></div>
<a name="fusion.functional.generation.metafunctions.mk_fused_proc.description"></a><h6> <a name="fusion.functional.generation.metafunctions.mk_fused_proc.description"></a><h6>
<a name="id669522"></a> <a name="id1283453"></a>
<a href="mk_fused_proc.html#fusion.functional.generation.metafunctions.mk_fused_proc.description">Description</a> <a href="mk_fused_proc.html#fusion.functional.generation.metafunctions.mk_fused_proc.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/mk_fused_proc.html" title=" Returns the result type of <a href="../functions/mk_fused_proc.html" title="
make_fused_procedure"><tt class="computeroutput"><span class="identifier">make_fused_procedure</span></tt></a>. make_fused_procedure"><code class="computeroutput"><span class="identifier">make_fused_procedure</span></code></a>.
</p> </p>
<a name="fusion.functional.generation.metafunctions.mk_fused_proc.header"></a><h6> <a name="fusion.functional.generation.metafunctions.mk_fused_proc.header"></a><h6>
<a name="id669573"></a> <a name="id1283497"></a>
<a href="mk_fused_proc.html#fusion.functional.generation.metafunctions.mk_fused_proc.header">Header</a> <a href="mk_fused_proc.html#fusion.functional.generation.metafunctions.mk_fused_proc.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_fused_procedure</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">functional</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">make_fused_procedure</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.functional.generation.metafunctions.mk_fused_proc.synopsis"></a><h6> <a name="fusion.functional.generation.metafunctions.mk_fused_proc.synopsis"></a><h6>
<a name="id669681"></a> <a name="id1283594"></a>
<a href="mk_fused_proc.html#fusion.functional.generation.metafunctions.mk_fused_proc.synopsis">Synopsis</a> <a href="mk_fused_proc.html#fusion.functional.generation.metafunctions.mk_fused_proc.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -60,12 +60,12 @@
<span class="special">}</span> <span class="special">}</span>
</pre> </pre>
<a name="fusion.functional.generation.metafunctions.mk_fused_proc.see_also"></a><h6> <a name="fusion.functional.generation.metafunctions.mk_fused_proc.see_also"></a><h6>
<a name="id669816"></a> <a name="id1283713"></a>
<a href="mk_fused_proc.html#fusion.functional.generation.metafunctions.mk_fused_proc.see_also">See <a href="mk_fused_proc.html#fusion.functional.generation.metafunctions.mk_fused_proc.see_also">See
also</a> also</a>
</h6> </h6>
<div class="itemizedlist"><ul type="disc"><li><a href="../functions/mk_fused_proc.html" title=" <div class="itemizedlist"><ul type="disc"><li><a href="../functions/mk_fused_proc.html" title="
make_fused_procedure"><tt class="computeroutput"><span class="identifier">make_fused_procedure</span></tt></a></li></ul></div> make_fused_procedure"><code class="computeroutput"><span class="identifier">make_fused_procedure</span></code></a></li></ul></div>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td> <td align="left"></td>
@ -74,7 +74,7 @@
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="mk_fused.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.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="mk_fused_fobj.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="mk_fused.html"><img src="../../../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../images/home.png" alt="Home"></a><a accesskey="n" href="mk_fused_fobj.html"><img src="../../../../images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

Some files were not shown because too many files have changed in this diff Show More