Compare commits

...

109 Commits

Author SHA1 Message Date
d69a9e9e8e Release 1.41.0
[SVN r57747]
2009-11-18 14:58:26 +00:00
b605617c4f Fusion: merged fixes for MSVC warnings from trunk
[SVN r57533]
2009-11-10 02:37:19 +00:00
b22e2b64da rm cmake from the release branch before it goes out broken. Policy dictates that you never commit to release, you commit to trunk and merge to release.
[SVN r56941]
2009-10-17 01:10:45 +00:00
46fc256c2f Sync from trunk (except adapt class)
[SVN r56714]
2009-10-11 16:12:54 +00:00
7615b492af Sync from trunk (except adapt class)
[SVN r56713]
2009-10-11 16:08:54 +00:00
e0a17b552c Fusion: merged nview from trunk
[SVN r56490]
2009-09-30 02:33:30 +00:00
cb5b63fa93 Fusion: fixed another const correctness problem
[SVN r56383]
2009-09-25 17:24:55 +00:00
8ce4280e27 Fusion: doc fix
[SVN r56382]
2009-09-25 14:00:55 +00:00
37f57fbf7f Fusion: resolved const correctness issue
[SVN r56381]
2009-09-25 13:57:30 +00:00
10c0665ffa Fusion: added nview and friends, docs and tests
[SVN r56377]
2009-09-25 00:21:53 +00:00
43645b3764 Fusion: added nview and friends
[SVN r56376]
2009-09-25 00:20:03 +00:00
2e805be6df merge from trunk
[SVN r56179]
2009-09-14 07:47:53 +00:00
2f8b91828b merge from trunk
[SVN r56178]
2009-09-14 07:40:39 +00:00
b16d42a31b reduce fusion, proto and xpressive warnings under msvc /Za switch
[SVN r55838]
2009-08-28 16:45:21 +00:00
0dd1f341c8 Fix PDF image paths.
[SVN r55759]
2009-08-24 10:32:39 +00:00
ea5ea7f001 Fix up logic and date_time Jamfiles so they build needed dependencies.
Fix PDF image paths in fusion Jamfile.v2.
Add fusion to the PDF build.

[SVN r55757]
2009-08-24 10:31:43 +00:00
564280e622 Make the unrolled implementation of all work for multiples of four. Fixes #2599.
[SVN r55686]
2009-08-20 14:01:39 +00:00
2e33d288b1 Copyrights on CMakeLists.txt to keep them from clogging up the inspect
reports.  This is essentially the same commit as r55095 on the release
branch.



[SVN r55159]
2009-07-26 00:49:56 +00:00
df633002dd Add basic copyright/license to keep cmake out of the inspection report
[SVN r55095]
2009-07-22 21:51:01 +00:00
c0eebc8121 Fix #1601
[SVN r54850]
2009-07-10 00:50:05 +00:00
14b27978e3 Fix #1601
[SVN r54849]
2009-07-10 00:49:51 +00:00
04cf9c863b typo fix
[SVN r54325]
2009-06-25 03:07:23 +00:00
fb7671141a fix ticket#1894
[SVN r54047]
2009-06-18 03:23:51 +00:00
08045fc46e Fix ticket #2158
[SVN r53985]
2009-06-17 02:11:43 +00:00
cb0a2c3c2e patched ticket #4512
[SVN r53956]
2009-06-16 02:23:44 +00:00
253c763b45 Fix Ticket #1614:
[SVN r53917]
2009-06-15 03:30:35 +00:00
3ed2803482 Fix Ticket #1614:
[SVN r53916]
2009-06-15 02:07:19 +00:00
63ce990a8c fix trac issue #1608
[SVN r53915]
2009-06-15 01:54:01 +00:00
363ff5750f fix trac issue #1608
[SVN r53914]
2009-06-15 01:53:43 +00:00
8f34038ddd introduces test case for unfusing adapter
[SVN r53906]
2009-06-14 18:31:09 +00:00
c88e8803fb introduces test for unfusing adapter
[SVN r53905]
2009-06-14 18:30:02 +00:00
fb3de90679 introduces unfused adapter
[SVN r53903]
2009-06-14 11:09:03 +00:00
916077ce6b update for trac #1893
[SVN r53856]
2009-06-13 06:29:32 +00:00
dace0940b7 fix ticket #1529
[SVN r53765]
2009-06-09 04:02:33 +00:00
d726756148 Fusion: merging from trunk
[SVN r53596]
2009-06-03 12:44:26 +00:00
efcab8aae4 Merged revisions 53158,53182,53334,53337,53419,53421,53521,53566-53568,53578,53590 via svnmerge from
https://svn.boost.org/svn/boost/trunk



[SVN r53591]
2009-06-03 04:32:30 +00:00
6447c5371e reduce number of template instantiations
[SVN r53566]
2009-06-02 05:46:21 +00:00
f0b6c8b1e2 Fusion: added explicit disambiguation for fusion::at
[SVN r53029]
2009-05-15 15:28:34 +00:00
e1ac68f526 Trying to fix ambiguities of operator<<() for unused_type.
[SVN r52511]
2009-04-20 14:57:57 +00:00
9acd9b2feb added default implementation for iterator_facade
[SVN r51864]
2009-03-20 09:45:36 +00:00
c81456f35e Protected unused_type by an ADL barrier
[SVN r51654]
2009-03-09 01:17:20 +00:00
08a038ad51 Fix: remove non-existent test
[SVN r51393]
2009-02-22 16:33:27 +00:00
b7e3828810 adjusts to changes in functional module, also resolves compile problems
[SVN r51383]
2009-02-22 06:36:52 +00:00
534809fbb7 updates functional module: only two unfused variants, now
[SVN r51382]
2009-02-22 06:35:35 +00:00
aaf89a67a6 updates functional module: only two unfused variants, now
[SVN r51381]
2009-02-22 06:27:12 +00:00
2fdfd41b17 updates functional module: only two unfused variants, now
[SVN r51380]
2009-02-22 06:24:38 +00:00
a26354b70e updates functional module: only two unfused variants, now
[SVN r51379]
2009-02-22 06:23:56 +00:00
064dbedaa5 #define to allow testing if unused_type has IO
[SVN r51286]
2009-02-17 11:18:20 +00:00
35149161aa use vectorN instead of vector for shorter names
[SVN r51285]
2009-02-17 10:37:31 +00:00
010c94ba87 fix wrong include
[SVN r50937]
2009-02-01 00:00:58 +00:00
5dff610007 merge of cmake build files from trunk per beman
[SVN r50756]
2009-01-24 18:57:20 +00:00
1c8e2ccfe4 added streaming for unused_type
[SVN r50168]
2008-12-06 23:35:05 +00:00
fad40f6c9d changed the result of as_vector to return the numbered forms (i.e vectorN)
[SVN r49778]
2008-11-16 01:00:37 +00:00
7c8f9e3b6d changed as_vector to return the numbered forms (i.e. vectorN)
[SVN r49777]
2008-11-16 00:59:42 +00:00
6ff5a74d9d updated make_vector to return numered forms instead
[SVN r49768]
2008-11-15 11:08:49 +00:00
b543bd13e7 minor doc typo
[SVN r49767]
2008-11-15 11:07:56 +00:00
82fd215b99 Updating dependency information for modularized libraries.
[SVN r49628]
2008-11-07 17:05:27 +00:00
e0cc53e8a9 Continuing merge of CMake build system files into trunk with the encouragement of Doug Gregor
[SVN r49510]
2008-11-01 13:15:41 +00:00
e2d23b8a63 bugfix to fold test, and new transform test
[SVN r49470]
2008-10-27 22:13:20 +00:00
d3f057e88c added fold test and simplified repetition in the Makefile
[SVN r49456]
2008-10-26 14:39:59 +00:00
38147bb4d6 Adding simple compile time tests
[SVN r49409]
2008-10-20 21:36:04 +00:00
d004046aa5 Merge from Trunk
[SVN r49252]
2008-10-10 15:05:47 +00:00
a046e43990 Merge from Trunk
[SVN r49251]
2008-10-10 14:49:19 +00:00
575ce8ca26 Fix cyclic dependencies between Boost.fusion.tuples and TR1.
Fixes #2261.

[SVN r48820]
2008-09-17 17:20:22 +00:00
b1ebdd60a6 Merged revisions 48769 via svnmerge from
https://svn.boost.org/svn/boost/trunk

........
  r48769 | eric_niebler | 2008-09-13 21:46:32 -0700 (Sat, 13 Sep 2008) | 1 line
  
  attempt to work around early instantiation problem on edg-based compilers
........


[SVN r48817]
2008-09-17 15:54:23 +00:00
d8d881ac6f attempt to work around early instantiation problem on edg-based compilers
[SVN r48769]
2008-09-14 04:46:32 +00:00
399b268bf1 fix #1600 (duplicate include guard)
[SVN r48600]
2008-09-05 02:39:34 +00:00
24f0323699 added missing include
[SVN r48369]
2008-08-25 07:14:20 +00:00
a8fe0fa44a more conformance tweaks to std tr1
[SVN r48258]
2008-08-20 12:56:53 +00:00
814c40a093 fixed typo
[SVN r48256]
2008-08-20 12:36:13 +00:00
7c74332487 conform to TR1 to the letter
[SVN r48244]
2008-08-20 08:20:40 +00:00
e165418461 conform to TR1 to the letter
[SVN r48243]
2008-08-20 08:20:19 +00:00
c51fc2ebee fixed non-ascii chars
[SVN r47676]
2008-07-22 09:07:07 +00:00
4a2214739c fixed non-ascii chars
[SVN r47675]
2008-07-22 09:06:54 +00:00
0b58f052b3 doc updates (mini tweaks)
[SVN r47668]
2008-07-22 02:06:42 +00:00
ef1e821173 added info on how to map to and from MPL
[SVN r47647]
2008-07-21 07:25:52 +00:00
af0e42f13e list-at optimization
[SVN r47643]
2008-07-20 23:14:15 +00:00
36736edec5 pair doc fix
[SVN r47528]
2008-07-17 23:59:40 +00:00
8506cd8be6 pair doc fix
[SVN r47527]
2008-07-17 23:59:22 +00:00
57725cb393 merge from trunk
[SVN r47205]
2008-07-08 02:43:21 +00:00
099deb4385 merge from trunk
[SVN r47204]
2008-07-08 02:39:55 +00:00
d150ba8498 Fixed non-ascii chars
[SVN r46898]
2008-06-30 12:06:07 +00:00
df2abdab6b Fixed non-ascii chars
[SVN r46897]
2008-06-30 12:04:15 +00:00
780b8bc1b0 With his kind permission, change Jaakko "Järvi" to "Jarvi"
[SVN r46809]
2008-06-28 13:57:20 +00:00
8b749bef46 With his kind permission, change Jaakko "Järvi" to "Jarvi"
[SVN r46808]
2008-06-28 13:45:21 +00:00
91ea13a593 Fusion: Fixed a VC level 4 warning
[SVN r44794]
2008-04-27 01:04:25 +00:00
6d462cbd63 Changed macro BOOST_PARTIAL_SPECIALIZATION_EXPLICIT_ARGS to BOOST_NO_PARTIAL_SPECIALIZATION_DEFAULT_ARGS.
Changed <utility> to <boost/config/no_tr1/utility.hpp> in order to prevent cyclic dependencies between Fusion Tuples and TR1.

[SVN r44692]
2008-04-21 12:06:02 +00:00
813930aee6 Rebuild a lot of documentation.
[SVN r43650]
2008-03-16 11:38:32 +00:00
9e8d8b1871 Merged revisions 43206,43208-43213 via svnmerge from
https://svn.boost.org/svn/boost/trunk

........
  r43206 | danieljames | 2008-02-10 09:55:03 +0000 (Sun, 10 Feb 2008) | 1 line
  
  Fix some broken links.
........
  r43209 | danieljames | 2008-02-10 14:56:22 +0000 (Sun, 10 Feb 2008) | 1 line
  
  Link to people pages on the website, as they've been removed from the download.
........
  r43210 | danieljames | 2008-02-10 15:02:17 +0000 (Sun, 10 Feb 2008) | 1 line
  
  Point links to the pages that used to be in 'more' to the site.
........
  r43212 | danieljames | 2008-02-10 16:10:16 +0000 (Sun, 10 Feb 2008) | 1 line
  
  Fix links on the home page as well.
........
  r43213 | danieljames | 2008-02-10 16:21:22 +0000 (Sun, 10 Feb 2008) | 1 line
  
  Generated documentation which is no longer generated.
........


[SVN r43214]
2008-02-10 16:39:38 +00:00
9a622b6904 Generated documentation which is no longer generated.
[SVN r43213]
2008-02-10 16:21:22 +00:00
4a29dd2a7c merge from trunk
[SVN r42226]
2007-12-21 03:13:31 +00:00
7bd2fd716d merge from trunk
[SVN r42225]
2007-12-21 02:45:20 +00:00
f199472458 Removing fusion variant adapter
[SVN r42224]
2007-12-20 23:28:26 +00:00
2c1a03f785 Removing fusion variant adapter
[SVN r42223]
2007-12-20 23:24:28 +00:00
bcbd2ff112 tweakbug fix for end_impl (tweak).
[SVN r42167]
2007-12-19 10:42:04 +00:00
67279d5c3d bug fix for end_impl. (test)
[SVN r42165]
2007-12-19 10:33:39 +00:00
61bf0151da bug fix for end_impl.
[SVN r42164]
2007-12-19 10:33:14 +00:00
e9fd448376 fixed documentation bug
[SVN r42116]
2007-12-17 09:27:42 +00:00
300f35fadd Strips top-level cv-qualifiers off non-reference types, now.
[SVN r41642]
2007-12-03 13:25:26 +00:00
6168061f97 remove old unused file
[SVN r41519]
2007-12-01 01:11:44 +00:00
9a1f176df2 fixed link
[SVN r41489]
2007-11-30 10:07:41 +00:00
d57e8cfe9e Full merge from trunk at revision 41356 of entire boost-root tree.
[SVN r41370]
2007-11-25 18:38:02 +00:00
ed9cb87ac3 Full merge from trunk at revision 41356 of entire boost-root tree.
[SVN r41369]
2007-11-25 18:07:19 +00:00
6e7e8a12eb bug fix
[SVN r41299]
2007-11-22 08:39:46 +00:00
4919faec58 removing failing test on EDG compilers
[SVN r41117]
2007-11-15 21:15:47 +00:00
d785c34d56 fix support for segmented iteration
[SVN r41093]
2007-11-14 16:36:15 +00:00
5359a24800 refresh docs
[SVN r41080]
2007-11-14 10:17:09 +00:00
d7c204356f removes superfluous remove_reference in result computation, as reported by Eric Niebler
[SVN r41008]
2007-11-11 17:56:21 +00:00
b241cdf25d fix mismatch include guard
[SVN r40975]
2007-11-09 22:38:18 +00:00
495 changed files with 14110 additions and 14318 deletions

7
changelist.txt Normal file
View File

@ -0,0 +1,7 @@
Interface Changes
- June 12, 2009: vector0 is now vector0<> as per Boost Trac Ticket #1608
to follow MPL more closely.
- September 24, 2009: added nview and friends

View File

@ -9,6 +9,8 @@ project boost/libs/fusion/doc ;
import boostbook : boostbook ; import boostbook : boostbook ;
using quickbook ; using quickbook ;
path-constant images_location : html ;
boostbook quickbook boostbook quickbook
: :
fusion.qbk fusion.qbk
@ -21,5 +23,8 @@ boostbook quickbook
<xsl:param>toc.section.depth=3 <xsl:param>toc.section.depth=3
<xsl:param>toc.max.depth=3 <xsl:param>toc.max.depth=3
<xsl:param>generate.section.toc.level=4 <xsl:param>generate.section.toc.level=4
<format>pdf:<xsl:param>boost.url.prefix=http://www.boost.org/doc/libs/release/libs/fusion/doc/html
<format>pdf:<xsl:param>img.src.path=$(images_location)/
; ;

View File

@ -11,16 +11,29 @@ Fusion provides a couple of adapters for other sequences such as
`std::pair`, __mpl__ sequences, and `boost::array`. These adapters are `std::pair`, __mpl__ sequences, and `boost::array`. These adapters are
written using Fusion's non-intrusive __extension__ mechanism. If you wish written using Fusion's non-intrusive __extension__ mechanism. If you wish
to use these sequences with fusion, simply include the necessary files and to use these sequences with fusion, simply include the necessary files and
they will be regarded as first-class, fully conforming fusion sequences they will be regarded as first-class, fully conforming fusion sequences.
[footnote Fusion sequences may also be adapted as fully conforming __mpl__
sequences (see __intrinsics__). That way, we can have 2-way adaptation to Fusion also provides various schemes to make it easy for the user to adapt
and from __mpl__ and Fusion]. various data structures, non-intrusively, as full fledged Fusion sequences.
[heading Header] [heading Header]
#include <boost/fusion/adapted.hpp> #include <boost/fusion/adapted.hpp>
#include <boost/fusion/include/adapted.hpp> #include <boost/fusion/include/adapted.hpp>
Fusion sequences may also be adapted as fully conforming __mpl__ sequences (see
__intrinsics__). That way, we can have 2-way adaptation to and from __mpl__ and
Fusion. To make Fusion sequences fully conforming __mpl__ sequences, include:
#include <boost/fusion/mpl.hpp>
If you want bi-directional adaptation to and from __mpl__ and Fusion, simply
include:
#include <boost/fusion/include/mpl.hpp>
The header includes all the necessary headers.
[section std::pair] [section std::pair]
This module provides adapters for `std::pair`. Including the module header This module provides adapters for `std::pair`. Including the module header
@ -136,32 +149,108 @@ __boost_tuple_library__
[endsect] [endsect]
[section boost::variant] [section:adapt_struct BOOST_FUSION_ADAPT_STRUCT]
This module provides adapters for `boost::variant`. Including the module
header makes `boost::variant` a fully conforming __forward_sequence__. [heading Description]
The variant acts as a sequence of the types that can be contained in the variant. BOOST_FUSION_ADAPT_STRUCT is a macro that can be used to generate all the
Accessing types not currently stored int the variant will lead to the variant necessary boilerplate to make an arbitrary struct into a __random_access_sequence__.
being populated with a default constructed value of that type.
[heading Synopsis]
BOOST_FUSION_ADAPT_STRUCT(
struct_name,
(member_type0, member_name0)
(member_type1, member_name1)
...
)
[heading Semantics]
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] [heading Header]
#include <boost/fusion/adapted/variant.hpp> #include <boost/fusion/adapted/struct/adapt_struct.hpp>
#include <boost/fusion/include/variant.hpp> #include <boost/fusion/include/adapt_struct.hpp>
[heading Model of]
* __forward_sequence__
[heading Example] [heading Example]
namespace demo
{
struct employee
{
std::string name;
int age;
};
}
boost::variant<int,std::string> example_variant = 101; // demo::employee is now a Fusion sequence
std::cout << example_variant << '\n'; BOOST_FUSION_ADAPT_STRUCT(
*boost::fusion::find<std::string>(example_variant) = "hello"; demo::employee,
std::cout << example_variant << '\n'; (std::string, name)
(int, age))
[heading See also] [endsect]
[section:adapt_assoc 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]
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>
#include <boost/fusion/include/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))
__boost_variant_library__
[endsect] [endsect]

View File

@ -9,8 +9,17 @@
This section summarizes significant changes to the Fusion library. This section summarizes significant changes to the Fusion library.
* Sep 27, 2006: Added `boost::tuple` support. * Sep 27, 2006: Added `boost::tuple` support. (Joel de Guzman)
* Nov 17, 2006: Added `boost::variant` support. * Nov 17, 2006: Added `boost::variant` support. (Joel de Guzman)
* Feb 15, 2007: Added functional module. * Feb 15, 2007: Added functional module. (Tobias Schwinger)
* APRIL 2, 2007: Added struct adapter. (Joel de Guzman)
* May 8, 2007: Added associative struct adapter. (Dan Marsden)
* Dec 20, 2007: Removed `boost::variant` support. After thorough
investigation, I think now that the move to make variant a
fusion sequence is rather quirky. A variant will always
have a size==1 regardless of the number of types it can contain
and there's no way to know at compile time what it contains.
Iterating over its types is simply wrong. All these imply that
the variant is *not* a fusion sequence. (Joel de Guzman)
[endsect] [endsect]

View File

@ -48,7 +48,6 @@ sequence container, and in many cases the most efficient.
[*Numbered forms] [*Numbered forms]
template <>
struct vector0; struct vector0;
template <typename T0> template <typename T0>
@ -629,14 +628,13 @@ Create a __set__ from one or more values.
typename __result_of_make_set__<T0, T1,... TN>::type typename __result_of_make_set__<T0, T1,... TN>::type
make_set(T0 const& x0, T1 const& x1... TN const& xN); make_set(T0 const& x0, T1 const& x1... TN const& xN);
The variadic function accepts `0` to `FUSION_MAX_VECTOR_SIZE`[footnote The variadic function accepts `0` to `FUSION_MAX_SET_SIZE` elements,
`set` is implemented in terms of the vector. That is why we reuse where `FUSION_MAX_SET_SIZE` is a user definable predefined maximum that
`FUSION_MAX_VECTOR_SIZE`] elements, where `FUSION_MAX_VECTOR_SIZE` is a user defaults to `10`. You may define the preprocessor constant
definable predefined maximum that defaults to `10`. You may define the `FUSION_MAX_SET_SIZE` before including any Fusion header to change the
preprocessor constant `FUSION_MAX_VECTOR_SIZE` before including any Fusion default. Example:
header to change the default. Example:
#define FUSION_MAX_VECTOR_SIZE 20 #define FUSION_MAX_SET_SIZE 20
[heading Parameters] [heading Parameters]
@ -684,14 +682,13 @@ Create a __map__ from one or more key/data pairs.
typename __result_of_make_map__<K0, K0,... KN, T0, T1,... TN>::type typename __result_of_make_map__<K0, K0,... KN, T0, T1,... TN>::type
make_map(T0 const& x0, T1 const& x1... TN const& xN); make_map(T0 const& x0, T1 const& x1... TN const& xN);
The variadic function accepts `0` to `FUSION_MAX_VECTOR_SIZE`[footnote The variadic function accepts `0` to `FUSION_MAX_MAP_SIZE` elements,
`map` is implemented in terms of the vector. That is why we reuse where `FUSION_MAX_MAP_SIZE` is a user definable predefined maximum that
`FUSION_MAX_VECTOR_SIZE`] elements, where `FUSION_MAX_VECTOR_SIZE` is a user defaults to `10`. You may define the preprocessor constant
definable predefined maximum that defaults to `10`. You may define the `FUSION_MAX_MAP_SIZE` before including any Fusion header to change the
preprocessor constant `FUSION_MAX_VECTOR_SIZE` before including any Fusion default. Example:
header to change the default. Example:
#define FUSION_MAX_VECTOR_SIZE 20 #define FUSION_MAX_MAP_SIZE 20
[heading Parameters] [heading Parameters]
@ -719,9 +716,7 @@ header to change the default. Example:
[heading Example] [heading Example]
make_map( make_map<int, double>('X', "Men")
__fusion_make_pair__<int>('X')
, __fusion_make_pair__<double>("Men"))
[heading See also] [heading See also]
@ -1063,14 +1058,13 @@ Returns the result type of __make_set__.
template <typename T0, typename T1,... typename TN> template <typename T0, typename T1,... typename TN>
struct make_set; struct make_set;
The variadic function accepts `0` to `FUSION_MAX_VECTOR_SIZE`[footnote The variadic function accepts `0` to `FUSION_MAX_SET_SIZE` elements,
`set` is implemented in terms of the vector. That is why we reuse where `FUSION_MAX_SET_SIZE` is a user definable predefined maximum that
`FUSION_MAX_VECTOR_SIZE`] elements, where `FUSION_MAX_VECTOR_SIZE` is a user defaults to `10`. You may define the preprocessor constant
definable predefined maximum that defaults to `10`. You may define the `FUSION_MAX_SET_SIZE` before including any Fusion header to change the
preprocessor constant `FUSION_MAX_VECTOR_SIZE` before including any Fusion default. Example:
header to change the default. Example:
#define FUSION_MAX_VECTOR_SIZE 20 #define FUSION_MAX_SET_SIZE 20
[heading Parameters] [heading Parameters]
@ -1114,14 +1108,13 @@ Returns the result type of __make_map__.
, typename T0, typename T1,... typename TN> , typename T0, typename T1,... typename TN>
struct make_map; struct make_map;
The variadic function accepts `0` to `FUSION_MAX_VECTOR_SIZE`[footnote The variadic function accepts `0` to `FUSION_MAX_MAP_SIZE` elements,
`map` is implemented in terms of the vector. That is why we reuse where `FUSION_MAX_MAP_SIZE` is a user definable predefined maximum that
`FUSION_MAX_VECTOR_SIZE`] elements, where `FUSION_MAX_VECTOR_SIZE` is a user defaults to `10`. You may define the preprocessor constant
definable predefined maximum that defaults to `10`. You may define the `FUSION_MAX_MAP_SIZE` before including any Fusion header to change the
preprocessor constant `FUSION_MAX_VECTOR_SIZE` before including any Fusion default. Example:
header to change the default. Example:
#define FUSION_MAX_VECTOR_SIZE 20 #define FUSION_MAX_MAP_SIZE 20
[heading Parameters] [heading Parameters]

View File

@ -426,7 +426,7 @@ The user must the implement the key expressions required by their sequence type.
#include <boost/fusion/include/sequence_facade.hpp> #include <boost/fusion/include/sequence_facade.hpp>
[heading Example] [heading Example]
A full worked example using __sequence_facade__ is provided in triple.cpp in the extension examples. A full working example using __sequence_facade__ is provided in triple.cpp in the extension examples.
[endsect] [endsect]
@ -475,122 +475,7 @@ The user must the implement the key expressions required by their iterator type.
#include <boost/fusion/include/iterator_facade.hpp> #include <boost/fusion/include/iterator_facade.hpp>
[heading Example] [heading Example]
A full worked example using __iterator_facade__ is provided in triple.cpp in the extension examples. A full working example using __iterator_facade__ is provided in triple.cpp in the extension examples.
[endsect]
[section Macros]
[section:adapt_struct 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.
/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:adapt_assoc 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.
/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

@ -10,7 +10,9 @@
Components to call functions and function objects and to make Fusion code Components to call functions and function objects and to make Fusion code
callable through a function object interface. callable through a function object interface.
/functional.hpp> [heading Header]
#include <boost/fusion/functional.hpp>
[heading Fused and unfused forms] [heading Fused and unfused forms]
@ -55,6 +57,8 @@ functions and adapters to transform them into fused form, respectively.
Every variant has a corresponding generator function template that returns Every variant has a corresponding generator function template that returns
an adapter instance for the given argument. an adapter instance for the given argument.
Constructors can be called applying __boost_func_factory__.
[heading Making Fusion code callable through a function object interface] [heading Making Fusion code callable through a function object interface]
Transforming a fused function into its unfused counterpart allows to create Transforming a fused function into its unfused counterpart allows to create
@ -62,11 +66,12 @@ function objects to accept arbitrary calls. In other words, an unary function
object can be implemented instead of (maybe heavily overloaded) function object can be implemented instead of (maybe heavily overloaded) function
templates or function call operators. templates or function call operators.
The library provides several adapter variants that implement this The library provides both a strictly typed and a generic variant for this
transformation, ranging from strictly typed to fully generic. The latter transformation. The latter should be used in combination with
provides a reusable, approximate solution to __the_forwarding_problem__. __boost_func_forward__ to attack __the_forwarding_problem__.
Every generic variant has a corresponding generator function template that
returns an adapter instance for the given argument. Both variants have a corresponding generator function template that returns an
adapter instance for the given argument.
[/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ] [/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ]
@ -257,6 +262,8 @@ In case of the latter, a freestanding [^get_pointer] function must be
defined (Boost provides this function for [^std::auto_ptr] and defined (Boost provides this function for [^std::auto_ptr] and
__boost_shared_ptr_call__). __boost_shared_ptr_call__).
Constructors can be called applying __boost_func_factory__.
[heading Synopsis] [heading Synopsis]
template< template<
typename Function, typename Function,
@ -289,7 +296,9 @@ arguments.
[*Semantics]: Invokes `f` with the elements in `s` as arguments and returns [*Semantics]: Invokes `f` with the elements in `s` as arguments and returns
the result of the call expression. the result of the call expression.
/functional/invocation/invoke.hpp> [heading Header]
#include <boost/fusion/functional/invocation/invoke.hpp>
[heading Example] [heading Example]
__std_plus_doc__<int> add; __std_plus_doc__<int> add;
@ -300,6 +309,7 @@ the result of the call expression.
* __invoke_function_object__ * __invoke_function_object__
* __result_of_invoke__ * __result_of_invoke__
* __fused__ * __fused__
* __make_fused__
[endsect] [endsect]
@ -352,7 +362,9 @@ implemented).
[*Semantics]: Invokes `f` with the elements in `s` as arguments. [*Semantics]: Invokes `f` with the elements in `s` as arguments.
/functional/invocation/invoke_procedure.hpp> [heading Header]
#include <booost/fusion/functional/invocation/invoke_procedure.hpp>
[heading Example] [heading Example]
__vector__<int,int> v(1,2); __vector__<int,int> v(1,2);
@ -365,6 +377,7 @@ implemented).
* __invoke_function_object__ * __invoke_function_object__
* __result_of_invoke_procedure__ * __result_of_invoke_procedure__
* __fused_procedure__ * __fused_procedure__
* __make_fused_procedure__
[endsect] [endsect]
@ -377,6 +390,8 @@ Calls a __poly_func_obj__ with the arguments from a __sequence__.
The first template parameter can be specialized explicitly to avoid copying The first template parameter can be specialized explicitly to avoid copying
and/or to control the const qualification of a function object. and/or to control the const qualification of a function object.
Constructors can be called applying __boost_func_factory__.
[heading Synopsis] [heading Synopsis]
template< template<
typename Function, typename Function,
@ -409,7 +424,9 @@ arguments.
[*Semantics]: Invokes `f` with the elements in `s` as arguments and returns the [*Semantics]: Invokes `f` with the elements in `s` as arguments and returns the
result of the call expression. result of the call expression.
/functional/invocation/invoke_function_object.hpp> [heading Header]
#include <boost/fusion/functional/invocation/invoke_function_object.hpp>
[heading Example] [heading Example]
struct sub struct sub
@ -439,6 +456,7 @@ result of the call expression.
* __invoke_procedure__ * __invoke_procedure__
* __result_of_invoke_function_object__ * __result_of_invoke_function_object__
* __fused_function_object__ * __fused_function_object__
* __make_fused_function_object__
[endsect] [endsect]
@ -520,6 +538,23 @@ Returns the result type of __invoke_function_object__.
[endsect] [/ Metafunctions ] [endsect] [/ Metafunctions ]
[section Limits]
[heading Header]
#include <boost/fusion/functional/invocation/limits.hpp>
[heading Macros]
The following macros can be defined to change the maximum arity.
The default is 6.
* BOOST_FUSION_INVOKE_MAX_ARITY
* BOOST_FUSION_INVOKE_PROCEDURE_MAX_ARITY
* BOOST_FUSION_INVOKE_FUNCTION_OBJECT_MAX_ARITY
[endsect]
[endsect] [/ Invocation ] [endsect] [/ Invocation ]
[/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ] [/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ]
@ -551,7 +586,9 @@ In case of the latter, a freestanding [^get_pointer] function must be
defined (Boost provides this function for [^std::auto_ptr] and defined (Boost provides this function for [^std::auto_ptr] and
__boost_shared_ptr_call__). __boost_shared_ptr_call__).
/functional/adapter/fused.hpp> [heading Header]
#include <boost/fusion/functional/adapter/fused.hpp>
[heading Synopsis] [heading Synopsis]
template <typename Function> template <typename Function>
@ -594,6 +631,7 @@ __boost_shared_ptr_call__).
* __fused_procedure__ * __fused_procedure__
* __fused_function_object__ * __fused_function_object__
* __invoke__ * __invoke__
* __make_fused__
* __deduce__ * __deduce__
[endsect] [endsect]
@ -627,7 +665,9 @@ The target function must not be a pointer to a member object (dereferencing
such a pointer without returning anything does not make sense, so this case such a pointer without returning anything does not make sense, so this case
is not implemented). is not implemented).
/functional/adapter/fused_procedure.hpp> [heading Header]
#include <boost/fusion/functional/adapter/fused_procedure.hpp>
[heading Synopsis] [heading Synopsis]
template <typename Function> template <typename Function>
@ -683,6 +723,7 @@ is not implemented).
* __fused__ * __fused__
* __fused_function_object__ * __fused_function_object__
* __invoke_procedure__ * __invoke_procedure__
* __make_fused_procedure__
[endsect] [endsect]
@ -700,7 +741,9 @@ reference. Const qualification is preserved and propagated appropriately
target function object that is const or, if the target function object target function object that is const or, if the target function object
is held by value, the adapter is const). is held by value, the adapter is const).
/functional/adapter/fused_function_object.hpp> [heading Header]
#include <boost/fusion/functional/adapter/fused_function_object.hpp>
[heading Synopsis] [heading Synopsis]
template <class Function> template <class Function>
@ -773,150 +816,50 @@ is held by value, the adapter is const).
* __fused__ * __fused__
* __fused_procedure__ * __fused_procedure__
* __invoke_function_object__ * __invoke_function_object__
* __make_fused_function_object__
* __deduce__ * __deduce__
[endsect] [endsect]
[section unfused_generic] [section unfused]
[heading Description]
An n-ary __poly_func_obj__ adapter template for an unary __poly_func_obj__
target function. When called, its arguments are bundled to a
__random_access_sequence__ of references that is passed to the target function.
Non-const __lvalue__ arguments are transported as references to non-const, otherwise
references to const are used.
[blurb __tip__ Detecting mutable LValues on a per-argument basis is currently a
compile time expensive operation (see __the_forwarding_problem__ for
details). Therefore, there are two, lightweight and more restricted variants
of this class template, __unfused_lvalue_args__ and __unfused_rvalue_args__.]
The type of the target function is allowed to be const qualified or a
reference. Const qualification is preserved and propagated appropriately
(in other words, only const versions of [^operator()] can be used if
the target function object is const - or, in case the target function
object is held by value, the adapter is const).
/functional/adapter/unfused_generic.hpp>
[heading Synopsis]
template <class Function>
class unfused_generic;
[heading Template parameters]
[table
[[Parameter] [Description] [Default]]
[[`Function`] [An unary __poly_func_obj__] []]
]
[heading Model of]
* __poly_func_obj__
* __def_callable_obj__
[variablelist Notation
[[`F`] [A possibly const qualified, unary __poly_func_obj__ type or reference type thereof]]
[[`f`] [An object convertible to `F`]]
[[`UG`] [The type `unfused_generic<F>`]]
[[`ug`] [An instance of `UG`, initialized with `f`]]
[[`a0`...`aN`] [Arguments to `ug`]]
]
[heading Expression Semantics]
[table
[[Expression] [Semantics]]
[[`UG(f)`] [Creates a fused function as described above, initializes the target function with `f`.]]
[[`UG()`] [Creates a fused function as described above, attempts to use `F`'s default constructor.]]
[[`ug(a0`...`aN)`] [Calls `f` with a __sequence__ that contains references to the arguments `a0`...`aN`.]]
]
[heading Example]
template <typename Function, typename T>
class fused_bound_1st
{
typename traits::deduce<Function>::type fnc_deferred;
typename traits::deduce<T>::type xxx_bound;
public:
fused_bound_1st(Function deferred, T bound)
: fnc_deferred(deferred), xxx_bound(bound)
{ }
template <typename Sig>
struct result;
template <class Self, class Seq>
struct result< Self(Seq) >
: result_of::invoke< Function, typename result_of::push_front<
typename remove_reference<Seq>::type, T>::type >
{ };
template <class Seq>
typename result< void(Seq) >::type operator()(Seq const & s) const
{
return invoke(fnc_deferred, push_front(s,xxx_bound));
}
};
template <typename Function, typename T>
unfused_generic< fused_bound_1st<Function,T> >
bind_1st(Function f, T const & x)
{
return unfused_generic< fused_bound_1st<Function,T> >(
fused_bound_1st<Function,T>(f,x) );
}
int test_func(int a, int b, int c)
{
return a+b+c;
}
void try_it()
{
assert(bind_1st(& test_func,3)(-2,-1) == 0);
assert(bind_1st(std::plus<float>(), 1)(0.5f) == 1.5f);
}
[heading See also]
* __unfused_lvalue_args__
* __unfused_rvalue_args__
* __unfused_typed__
* __deduce__
* __deduce_sequence__
[endsect]
[section unfused_lvalue_args]
[heading Description] [heading Description]
An n-ary __poly_func_obj__ adapter template for an unary __poly_func_obj__ An n-ary __poly_func_obj__ adapter template for an unary __poly_func_obj__
target function. When called, its arguments are bundled to a target function. When called, its arguments are bundled to a
__random_access_sequence__ of references that is passed to the target function __random_access_sequence__ of references that is passed to the target function
object. Only __lvalue__ arguments are accepted. object.
The nullary overload of the call operator can be removed by setting the
second template parameter to `false`, which is very useful if the result type
computation would result in a compile error, otherwise (nullary call
operator's prototypes can't be templates and thus are instantiated as early
as the class template).
Only __lvalue__ arguments are accepted. To overcome this limitation, apply
__boost_func_forward__.
The type of the target function is allowed to be const qualified or a The type of the target function is allowed to be const qualified or a
reference. Const qualification is preserved and propagated appropriately reference. Const qualification is preserved and propagated appropriately.
(in other words, only const versions of [^operator()] can be used if In other words, only const versions of [^operator()] can be used if
the target function object is const - or, in case the target function 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.
/functional/adapter/unfused_lvalue_args.hpp> [heading Header]
#include <boost/fusion/functional/adapter/unfused.hpp>
[heading Synopsis] [heading Synopsis]
template <class Function> template <class Function, bool AllowNullary = true>
class unfused_lvalue_args; class unfused;
[heading Template parameters] [heading Template parameters]
[table [table
[[Parameter] [Description] [Default]] [[Parameter] [Description] [Default]]
[[`Function`] [A unary __poly_func_obj__] []] [[`Function`] [A unary __poly_func_obj__] []]
[[`AllowNullary`] [Boolean constant] [true]]
] ]
[heading Model of] [heading Model of]
@ -927,7 +870,7 @@ object is held by value, the adapter is const).
[variablelist Notation [variablelist Notation
[[`F`] [A possibly const qualified, unary __poly_func_obj__ type or reference type thereof]] [[`F`] [A possibly const qualified, unary __poly_func_obj__ type or reference type thereof]]
[[`f`] [An object convertible to `F`]] [[`f`] [An object convertible to `F`]]
[[`UL`] [The type `unfused_lvalue_args<F>`]] [[`UL`] [The type `unfused<F>`]]
[[`ul`] [An instance of `UL`, initialized with `f`]] [[`ul`] [An instance of `UL`, initialized with `f`]]
[[`a0`...`aN`] [Arguments to `ul`]] [[`a0`...`aN`] [Arguments to `ul`]]
] ]
@ -959,97 +902,15 @@ object is held by value, the adapter is const).
void try_it() void try_it()
{ {
unfused_lvalue_args<fused_incrementer> increment; unfused<fused_incrementer> increment;
int a = 2; char b = 'X'; int a = 2; char b = 'X';
increment(a,b); increment(a,b);
assert(a == 3 && b == 'Y'); assert(a == 3 && b == 'Y');
} }
[heading See also] [heading See also]
* __unfused_rvalue_args__
* __unfused_generic__
* __unfused_typed__ * __unfused_typed__
* __make_unfused__
[endsect]
[section unfused_rvalue_args]
[heading Description]
An n-ary __poly_func_obj__ adapter template for an unary __poly_func_obj__
target function. When called, its arguments are bundled to a
__random_access_sequence__ of references that is passed to the target
function object. All referenced objects in the sequence are const qualified.
The type of the target function is allowed to be const qualified or a
reference. Const qualification is preserved and propagated appropriately
(in other words, only const versions of [^operator()] can be used if
the target function object is const - or, in case the target function object
is held by value, the adapter is const).
/functional/adapter/unfused_rvalue_args.hpp>
[heading Synopsis]
template <class Function>
class unfused_rvalue_args;
[heading Template parameters]
[table
[[Parameter] [Description] [Default]]
[[`Function`] [A unary __poly_func_obj__] []]
]
[heading Model of]
* __poly_func_obj__
* __def_callable_obj__
[variablelist Notation
[[`F`] [A possibly const qualified, unary __poly_func_obj__ type or reference type thereof]]
[[`f`] [An object convertible to `F`]]
[[`UR`] [The type `unfused_rvalue_args<F>`]]
[[`ur`] [An instance of `UR`, initialized with `f`]]
[[`a0`...`aN`] [Arguments to `ur`]]
]
[heading Expression Semantics]
[table
[[Expression] [Semantics]]
[[`UR(f)`] [Creates a fused function as described above, initializes the target function with `f`.]]
[[`UR()`] [Creates a fused function as described above, attempts to use `F`'s default constructor.]]
[[`ur(a0`...`aN)`] [Calls `f` with a __sequence__ that contains references to the arguments `a0`...`aN`.]]
]
[heading Example]
struct sequence_printer
{
template <class Seq>
struct result
{
typedef void type;
};
template <class Seq>
void operator()(Seq const & s) const
{
std::cout << s << std::endl;
}
};
void try_it()
{
unfused_rvalue_args<sequence_printer> print;
print(24,"bottles of beer in",'a',"box.");
}
[heading See also]
* __unfused_lvalue_args__
* __unfused_generic__
* __unfused_typed__
* __deduce__
* __deduce_sequence__
[endsect] [endsect]
@ -1078,7 +939,9 @@ Therefore the adapter is always treated as if it was const. ]
non-reference elements, the element is copied only once - the call operator's non-reference elements, the element is copied only once - the call operator's
signature is optimized automatically to avoid by-value parameters.] signature is optimized automatically to avoid by-value parameters.]
/functional/adapter/unfused_typed.hpp> [heading Header]
#include <boost/fusion/functional/adapter/unfused_typed.hpp>
[heading Synopsis] [heading Synopsis]
template <class Function, class Sequence> template <class Function, class Sequence>
@ -1169,7 +1032,7 @@ signature is optimized automatically to avoid by-value parameters.]
fused_parallel_adder<Seq>(tie) ); fused_parallel_adder<Seq>(tie) );
} }
}; };
unfused_lvalue_args<fused_parallel_adder_maker> parallel_add; unfused<fused_parallel_adder_maker> parallel_add;
void try_it() void try_it()
{ {
@ -1183,14 +1046,29 @@ signature is optimized automatically to avoid by-value parameters.]
} }
[heading See also] [heading See also]
* __unfused_generic__ * __unfused__
* __unfused_lvalue_args__
* __unfused_rvalue_args__
* __deduce__ * __deduce__
* __deduce_sequence__ * __deduce_sequence__
[endsect] [endsect]
[section Limits]
[heading Header]
#include <boost/fusion/functional/adapter/limits.hpp>
[heading Macros]
The following macros can be defined to change the maximum arity.
The value used for these macros must not exceed `FUSION_MAX_VECTOR_SIZE`.
The default is 6.
* BOOST_FUSION_UNFUSED_MAX_ARITY
* BOOST_FUSION_UNFUSED_TYPE_MAX_ARITY
[endsect]
[endsect] [/ Adapters] [endsect] [/ Adapters]
[/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ] [/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ]
@ -1353,16 +1231,16 @@ The usual __element_conversion__ is applied to the target function.
[endsect] [endsect]
[section:mk_unfused_genrc make_unfused_generic] [section:mk_unfused make_unfused]
[heading Description] [heading Description]
Creates a __unfused_generic__ adapter for a given, unary __poly_func_obj__. Creates a __unfused__ adapter for a given, unary __poly_func_obj__.
The usual __element_conversion__ is applied to the target function. The usual __element_conversion__ is applied to the target function.
[heading Synopsis] [heading Synopsis]
template <typename F> template <typename F>
inline typename __result_of_make_unfused_generic__<F>::type inline typename __result_of_make_unfused__<F>::type
make_unfused_generic(F const & f); make_unfused(F const & f);
[heading Parameters] [heading Parameters]
[table [table
@ -1372,85 +1250,16 @@ The usual __element_conversion__ is applied to the target function.
[heading Expression Semantics] [heading Expression Semantics]
make_unfused_generic(f); make_unfused(f);
[*Return type]: A specialization of __unfused_generic__. [*Return type]: A specialization of __unfused__.
[*Semantics]: Returns a __unfused_generic__ adapter for `f`. [*Semantics]: Returns a __unfused__ adapter for `f`.
[heading Header] [heading Header]
#include <boost/fusion/functional/generation/make_unfused_generic.hpp> #include <boost/fusion/functional/generation/make_unfused.hpp>
#include <boost/fusion/include/make_unfused_generic.hpp> #include <boost/fusion/include/make_unfused.hpp>
[heading Example]
struct bottles_song
{
typedef void result_type;
template<class Seq>
void operator()(Seq & s) const
{
typename result_of::at_c<Seq,0>::type n = at_c<0>(s);
typename result_of::at_c<Seq,1>::type what = at_c<1>(s);
std::cout
<< n << " bottles of " << what << " on the wall.\n"
<< n << " bottles of " << what << "!\n"
<< "Take one down - pass it around.\n";
n -= 1; // glug glug...
std::cout
<< n << " bottles of " << what << " on the wall.\n"
<< std::endl;
}
};
void try_it()
{
unsigned n_milk = 99;
for(int i = 0; i < 3; ++i)
make_unfused_generic(bottles_song())(n_milk,"milk");
// 96 bottles left for me
}
[heading See also]
* __unfused_generic__
* __deduce__
* __result_of_make_unfused_generic__
[endsect]
[section:mk_unfused_lvargs make_unfused_lvalue_args]
[heading Description]
Creates a __unfused_lvalue_args__ adapter for a given, unary __poly_func_obj__.
The usual __element_conversion__ is applied to the target function.
[heading Synopsis]
template <typename F>
inline typename __result_of_make_unfused_lvalue_args__<F>::type
make_unfused_lvalue_args(F const & f);
[heading Parameters]
[table
[[Parameter] [Requirement] [Description]]
[[`f`] [Model of __poly_func_obj__] [The function to transform.]]
]
[heading Expression Semantics]
make_unfused_lvalue_args(f);
[*Return type]: A specialization of __unfused_lvalue_args__.
[*Semantics]: Returns a __unfused_lvalue_args__ adapter for `f`.
[heading Header]
#include <boost/fusion/functional/generation/make_unfused_lvalue_args.hpp>
#include <boost/fusion/include/make_unfused_lvalue_args.hpp>
[heading Example] [heading Example]
struct fused_incrementer struct fused_incrementer
@ -1471,73 +1280,14 @@ The usual __element_conversion__ is applied to the target function.
void try_it() void try_it()
{ {
int a = 2; char b = 'X'; int a = 2; char b = 'X';
make_unfused_lvalue_args(fused_incrementer())(a,b); make_unfused(fused_incrementer())(a,b);
assert(a == 3 && b == 'Y'); assert(a == 3 && b == 'Y');
} }
[heading See also] [heading See also]
* __unfused_lvalue_args__ * __unfused__
* __deduce__ * __deduce__
* __result_of_make_unfused_lvalue_args__ * __result_of_make_unfused__
[endsect]
[section:mk_unfused_rvargs make_unfused_rvalue_args]
[heading Description]
Creates a __unfused_rvalue_args__ adapter for a given, unary __poly_func_obj__.
The usual __element_conversion__ is applied to the target function.
[heading Synopsis]
template <typename F>
inline typename __result_of_make_unfused_rvalue_args__<F>::type
make_unfused_rvalue_args(F const & f);
[heading Parameters]
[table
[[Parameter] [Requirement] [Description]]
[[`f`] [Model of __poly_func_obj__] [The function to transform.]]
]
[heading Expression Semantics]
make_unfused_rvalue_args(f);
[*Return type]: A specialization of __unfused_rvalue_args__.
[*Semantics]: Returns a __unfused_rvalue_args__ adapter for `f`.
[heading Header]
#include <boost/fusion/functional/generation/make_unfused_rvalue_args.hpp>
#include <boost/fusion/include/make_unfused_rvalue_args.hpp>
[heading Example]
struct sequence_printer
{
template <class Seq>
struct result
{
typedef void type;
};
template <class Seq>
void operator()(Seq const & s) const
{
std::cout << s << std::endl;
}
};
void try_it()
{
make_unfused_rvalue_args(sequence_printer())
(24,"bottles of beer in",'a',"box.");
}
[heading See also]
* __unfused_rvalue_args__
* __deduce__
* __result_of_make_unfused_rvalue_args__
[endsect] [endsect]
@ -1620,78 +1370,28 @@ Returns the result type of __make_fused_function_object__.
[endsect] [endsect]
[section:mk_unfused_genrc make_unfused_generic] [section:mk_unfused make_unfused]
[heading Description] [heading Description]
Returns the result type of __make_unfused_generic__. Returns the result type of __make_unfused__.
[heading Header] [heading Header]
#include <boost/fusion/functional/generation/make_unfused_generic.hpp> #include <boost/fusion/functional/generation/make_unfused.hpp>
#include <boost/fusion/include/make_unfused_generic.hpp> #include <boost/fusion/include/make_unfused.hpp>
[heading Synopsis] [heading Synopsis]
namespace result_of namespace result_of
{ {
template<typename Function> template<typename Function>
struct make_unfused_generic struct make_unfused
{ {
typedef __unspecified__ type; typedef __unspecified__ type;
}; };
} }
[heading See also] [heading See also]
* __make_unfused_generic__ * __make_unfused__
[endsect]
[section:mk_unfused_lvargs make_unfused_lvalue_args]
[heading Description]
Returns the result type of __make_unfused_lvalue_args__.
[heading Header]
#include <boost/fusion/functional/generation/make_unfused_lvalue_args.hpp>
#include <boost/fusion/include/make_unfused_lvalue_args.hpp>
[heading Synopsis]
namespace result_of
{
template<typename Function>
struct make_unfused_lvalue_args
{
typedef __unspecified__ type;
};
}
[heading See also]
* __make_unfused_lvalue_args__
[endsect]
[section:mk_unfused_rvargs make_unfused_rvalue_args]
[heading Description]
Returns the result type of __make_unfused_rvalue_args__.
[heading Header]
#include <boost/fusion/functional/generation/make_unfused_rvalue_args.hpp>
#include <boost/fusion/include/make_unfused_rvalue_args.hpp>
[heading Synopsis]
namespace result_of
{
template<typename Function>
struct make_unfused_rvalue_args
{
typedef __unspecified__ type;
};
}
[heading See also]
* __make_unfused_rvalue_args__
[endsect] [endsect]

View File

@ -49,6 +49,8 @@
[def __boost_result_of_call__ [@http://www.boost.org/libs/utility/utility.htm#result_of `boost::result_of`]] [def __boost_result_of_call__ [@http://www.boost.org/libs/utility/utility.htm#result_of `boost::result_of`]]
[def __boost_enable_if__ [@http://www.boost.org/libs/utility/enable_if.html Boost.EnableIf utility]] [def __boost_enable_if__ [@http://www.boost.org/libs/utility/enable_if.html Boost.EnableIf utility]]
[def __boost_shared_ptr_call__ [@http://www.boost.org/libs/smart_ptr/shared_ptr.htm `boost::shared_ptr`]] [def __boost_shared_ptr_call__ [@http://www.boost.org/libs/smart_ptr/shared_ptr.htm `boost::shared_ptr`]]
[def __boost_func_forward__ [@http://www.boost.org/libs/functional/forward/doc/html/index.html Boost.Functional/Forward]]
[def __boost_func_factory__ [@http://www.boost.org/libs/functional/factory/doc/html/index.html Boost.Functional/Factory]]
[def __std_pair_doc__ [@http://www.sgi.com/tech/stl/pair.html `std::pair`]] [def __std_pair_doc__ [@http://www.sgi.com/tech/stl/pair.html `std::pair`]]
[def __std_plus_doc__ [@http://www.sgi.com/tech/stl/plus.html `std::plus`]] [def __std_plus_doc__ [@http://www.sgi.com/tech/stl/plus.html `std::plus`]]
[def __std_minus_doc__ [@http://www.sgi.com/tech/stl/minus.html `std::minus`]] [def __std_minus_doc__ [@http://www.sgi.com/tech/stl/minus.html `std::minus`]]
@ -264,9 +266,7 @@
[def __fused__ [link fusion.functional.adapters.fused `fused`]] [def __fused__ [link fusion.functional.adapters.fused `fused`]]
[def __fused_procedure__ [link fusion.functional.adapters.fused_procedure `fused_procedure`]] [def __fused_procedure__ [link fusion.functional.adapters.fused_procedure `fused_procedure`]]
[def __fused_function_object__ [link fusion.functional.adapters.fused_function_object `fused_function_object`]] [def __fused_function_object__ [link fusion.functional.adapters.fused_function_object `fused_function_object`]]
[def __unfused_generic__ [link fusion.functional.adapters.unfused_generic `unfused_generic`]] [def __unfused__ [link fusion.functional.adapters.unfused `unfused`]]
[def __unfused_lvalue_args__ [link fusion.functional.adapters.unfused_lvalue_args `unfused_lvalue_args`]]
[def __unfused_rvalue_args__ [link fusion.functional.adapters.unfused_rvalue_args `unfused_rvalue_args`]]
[def __unfused_typed__ [link fusion.functional.adapters.unfused_typed `unfused_typed`]] [def __unfused_typed__ [link fusion.functional.adapters.unfused_typed `unfused_typed`]]
[def __invoke__ [link fusion.functional.invocation.functions.invoke `invoke`]] [def __invoke__ [link fusion.functional.invocation.functions.invoke `invoke`]]
[def __invoke_procedure__ [link fusion.functional.invocation.functions.invoke_proc `invoke_procedure`]] [def __invoke_procedure__ [link fusion.functional.invocation.functions.invoke_proc `invoke_procedure`]]
@ -274,18 +274,14 @@
[def __make_fused__ [link fusion.functional.generation.functions.mk_fused `make_fused`]] [def __make_fused__ [link fusion.functional.generation.functions.mk_fused `make_fused`]]
[def __make_fused_procedure__ [link fusion.functional.generation.functions.mk_fused_proc `make_fused_procedure`]] [def __make_fused_procedure__ [link fusion.functional.generation.functions.mk_fused_proc `make_fused_procedure`]]
[def __make_fused_function_object__ [link fusion.functional.generation.functions.mk_fused_fobj `make_fused_function_object`]] [def __make_fused_function_object__ [link fusion.functional.generation.functions.mk_fused_fobj `make_fused_function_object`]]
[def __make_unfused_generic__ [link fusion.functional.generation.functions.mk_unfused_genrc `make_unfused_generic`]] [def __make_unfused__ [link fusion.functional.generation.functions.mk_unfused `make_unfused`]]
[def __make_unfused_rvalue_args__ [link fusion.functional.generation.functions.mk_unfused_rvargs `make_unfused_rvalue_args`]]
[def __make_unfused_lvalue_args__ [link fusion.functional.generation.functions.mk_unfused_lvargs `make_unfused_lvalue_args`]]
[def __result_of_invoke__ [link fusion.functional.invocation.metafunctions.invoke `result_of::invoke`]] [def __result_of_invoke__ [link fusion.functional.invocation.metafunctions.invoke `result_of::invoke`]]
[def __result_of_invoke_procedure__ [link fusion.functional.invocation.metafunctions.invoke_proc `result_of::invoke_procedure`]] [def __result_of_invoke_procedure__ [link fusion.functional.invocation.metafunctions.invoke_proc `result_of::invoke_procedure`]]
[def __result_of_invoke_function_object__ [link fusion.functional.invocation.metafunctions.invoke_fobj `result_of::invoke_function_object`]] [def __result_of_invoke_function_object__ [link fusion.functional.invocation.metafunctions.invoke_fobj `result_of::invoke_function_object`]]
[def __result_of_make_fused__ [link fusion.functional.generation.metafunctions.mk_fused `make_fused`]] [def __result_of_make_fused__ [link fusion.functional.generation.metafunctions.mk_fused `make_fused`]]
[def __result_of_make_fused_procedure__ [link fusion.functional.generation.metafunctions.mk_fused_proc `make_fused_procedure`]] [def __result_of_make_fused_procedure__ [link fusion.functional.generation.metafunctions.mk_fused_proc `make_fused_procedure`]]
[def __result_of_make_fused_function_object__ [link fusion.functional.generation.metafunctions.mk_fused_fobj `make_fused_function_object`]] [def __result_of_make_fused_function_object__ [link fusion.functional.generation.metafunctions.mk_fused_fobj `make_fused_function_object`]]
[def __result_of_make_unfused_generic__ [link fusion.functional.generation.metafunctions.mk_unfused_genrc `make_unfused_generic`]] [def __result_of_make_unfused__ [link fusion.functional.generation.metafunctions.mk_unfused `make_unfused`]]
[def __result_of_make_unfused_rvalue_args__ [link fusion.functional.generation.metafunctions.mk_unfused_rvargs `make_unfused_rvalue_args`]]
[def __result_of_make_unfused_lvalue_args__ [link fusion.functional.generation.metafunctions.mk_unfused_lvargs `make_unfused_lvalue_args`]]
[def __recursive_inline__ [link fusion.notes.recursive_inlined_functions Recursive Inlined Functions]] [def __recursive_inline__ [link fusion.notes.recursive_inlined_functions Recursive Inlined Functions]]
[def __overloaded_functions__ [link fusion.notes.overloaded_functions Overloaded Functions]] [def __overloaded_functions__ [link fusion.notes.overloaded_functions Overloaded Functions]]

View File

@ -3,19 +3,19 @@
<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="../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,8 +23,12 @@
<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="../../../../../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>
</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">
<a name="fusion.acknowledgements"></a><a href="acknowledgements.html" title="Acknowledgements">Acknowledgements</a></h2></div></div></div> <div><div><h2 class="title" style="clear: both">
<a name="fusion.acknowledgements"></a><a href="acknowledgements.html" title="Acknowledgements">Acknowledgements</a>
</h2></div></div>
<div></div>
</div>
<p> <p>
Special thanks to David Abrahams, Douglas Gregor, Hartmut Kaiser, Aleksey Gurtovoy, Special thanks to David Abrahams, Douglas Gregor, Hartmut Kaiser, Aleksey Gurtovoy,
Peder Holt, Daniel Wallin, Jaakko Jarvi, Jeremiah Willcock, Dan Marsden, Eric Peder Holt, Daniel Wallin, Jaakko Jarvi, Jeremiah Willcock, Dan Marsden, Eric
@ -42,11 +46,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,34 +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>Adapted</title> <title>Adapted</title>
<link rel="stylesheet" href="../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="view/reverse_view.html" title="reverse_view"> <link rel="previous" href="view/nview.html" title="nview">
<link rel="next" href="adapted/std__pair.html" title="std::pair"> <link rel="next" href="adapted/std__pair.html" title="std::pair">
</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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="view/reverse_view.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="adapted/std__pair.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="view/nview.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="adapted/std__pair.html"><img src="../../../../../doc/html/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">
<a name="fusion.adapted"></a><a href="adapted.html" title="Adapted">Adapted</a></h2></div></div></div> <div><div><h2 class="title" style="clear: both">
<a name="fusion.adapted"></a><a href="adapted.html" title="Adapted">Adapted</a>
</h2></div></div>
<div></div>
</div>
<div class="toc"><dl> <div class="toc"><dl>
<dt><span class="section"><a href="adapted/std__pair.html">std::pair</a></span></dt> <dt><span class="section"><a href="adapted/std__pair.html">std::pair</a></span></dt>
<dt><span class="section"><a href="adapted/mpl_sequence.html">mpl sequence</a></span></dt> <dt><span class="section"><a href="adapted/mpl_sequence.html">mpl sequence</a></span></dt>
<dt><span class="section"><a href="adapted/boost__array.html">boost::array</a></span></dt> <dt><span class="section"><a href="adapted/boost__array.html">boost::array</a></span></dt>
<dt><span class="section"><a href="adapted/boost__tuple.html">boost::tuple</a></span></dt> <dt><span class="section"><a href="adapted/boost__tuple.html">boost::tuple</a></span></dt>
<dt><span class="section"><a href="adapted/boost__variant.html">boost::variant</a></span></dt> <dt><span class="section"><a href="adapted/adapt_struct.html"> BOOST_FUSION_ADAPT_STRUCT</a></span></dt>
<dt><span class="section"><a href="adapted/adapt_assoc.html"> BOOST_FUSION_ADAPT_ASSOC_STRUCT</a></span></dt>
</dl></div> </dl></div>
<p> <p>
Fusion provides a couple of adapters for other sequences such as <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt>, Fusion provides a couple of adapters for other sequences such as <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt>,
@ -38,39 +43,50 @@
and <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></tt>. These adapters are written using Fusion's and <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></tt>. These adapters are written using Fusion's
non-intrusive <a href="extension.html" title="Extension">Extension</a> mechanism. non-intrusive <a href="extension.html" title="Extension">Extension</a> mechanism.
If you wish to use these sequences with fusion, simply include the necessary If you wish to use these sequences with fusion, simply include the necessary
files and they will be regarded as first-class, fully conforming fusion sequences files and they will be regarded as first-class, fully conforming fusion sequences.
<sup>[<a name="id570771" href="#ftn.id570771">13</a>]</sup> </p>
. <p>
Fusion also provides various schemes to make it easy for the user to adapt
various data structures, non-intrusively, as full fledged Fusion sequences.
</p> </p>
<a name="fusion.adapted.header"></a><h3> <a name="fusion.adapted.header"></a><h3>
<a name="id570812"></a> <a name="id530111"></a>
<a href="adapted.html#fusion.adapted.header">Header</a> <a href="adapted.html#fusion.adapted.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">adapted</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">adapted</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">include</span><span class="special">/</span><span class="identifier">adapted</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">include</span><span class="special">/</span><span class="identifier">adapted</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<div class="footnotes"> <p>
<br><hr width="100" align="left">
<div class="footnote"><p><sup>[<a name="ftn.id570771" href="#id570771">13</a>] </sup>
Fusion sequences may also be adapted as fully conforming <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a> Fusion sequences may also be adapted as fully conforming <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a>
sequences (see <a href="sequence/intrinsic.html" title="Intrinsic">Intrinsics</a>). sequences (see <a href="sequence/intrinsic.html" title="Intrinsic">Intrinsics</a>).
That way, we can have 2-way adaptation to and from <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a> That way, we can have 2-way adaptation to and from <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a>
and Fusion and Fusion. To make Fusion sequences fully conforming <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a>
</p></div> sequences, include:
</div> </p>
<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">mpl</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<p>
If you want bi-directional adaptation to and from <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a>
and Fusion, simply include:
</p>
<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">include</span><span class="special">/</span><span class="identifier">mpl</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<p>
The header includes all the necessary headers.
</p>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="view/reverse_view.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="adapted/std__pair.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="view/nview.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="adapted/std__pair.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -0,0 +1,124 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title> BOOST_FUSION_ADAPT_ASSOC_STRUCT</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="home" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../adapted.html" title="Adapted">
<link rel="previous" href="adapt_struct.html" title=" BOOST_FUSION_ADAPT_STRUCT">
<link rel="next" href="../algorithm.html" title="Algorithm">
</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.html">Home</a></td>
<td align="center"><a href="../../../../../libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">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="adapt_struct.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapted.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="../algorithm.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<div class="section" lang="en">
<div class="titlepage">
<div><div><h3 class="title">
<a name="fusion.adapted.adapt_assoc"></a><a href="adapt_assoc.html" title=" BOOST_FUSION_ADAPT_ASSOC_STRUCT"> BOOST_FUSION_ADAPT_ASSOC_STRUCT</a>
</h3></div></div>
<div></div>
</div>
<a name="fusion.adapted.adapt_assoc.description"></a><h4>
<a name="id534295"></a>
<a href="adapt_assoc.html#fusion.adapted.adapt_assoc.description">Description</a>
</h4>
<p>
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 <a href="../sequence/concepts/random_access_sequence.html" title="Random
Access Sequence">Random Access Sequence</a>
and <a href="../sequence/concepts/associative_sequence.html" title="Associative
Sequence">Associative
Sequence</a>.
</p>
<a name="fusion.adapted.adapt_assoc.synopsis"></a><h4>
<a name="id534343"></a>
<a href="adapt_assoc.html#fusion.adapted.adapt_assoc.synopsis">Synopsis</a>
</h4>
<pre class="programlisting"><span class="identifier">BOOST_FUSION_ADAPT_ASSOC_STRUCT</span><span class="special">(</span>
<span class="identifier">struct_name</span><span class="special">,</span>
<span class="special">(</span><span class="identifier">member_type0</span><span class="special">,</span> <span class="identifier">member_name0</span><span class="special">,</span> <span class="identifier">key_type0</span><span class="special">)</span>
<span class="special">(</span><span class="identifier">member_type1</span><span class="special">,</span> <span class="identifier">member_name1</span><span class="special">,</span> <span class="identifier">key_type1</span><span class="special">)</span>
<span class="special">...</span>
<span class="special">)</span>
</pre>
<a name="fusion.adapted.adapt_assoc.semantics"></a><h4>
<a name="id534485"></a>
<a href="adapt_assoc.html#fusion.adapted.adapt_assoc.semantics">Semantics</a>
</h4>
<p>
The above macro generates the necessary code to adapt <tt class="computeroutput"><span class="identifier">struct_name</span></tt>
as a model of <a href="../sequence/concepts/random_access_sequence.html" title="Random
Access Sequence">Random
Access Sequence</a> and <a href="../sequence/concepts/associative_sequence.html" title="Associative
Sequence">Associative
Sequence</a>. The sequence of <tt class="computeroutput"><span class="special">(</span><span class="identifier">member_typeN</span><span class="special">,</span>
<span class="identifier">member_nameN</span><span class="special">,</span>
<span class="identifier">key_typeN</span><span class="special">)</span></tt>
triples declare the type, name and key type of each of the struct members
that will be part of the sequence.
</p>
<p>
The macro should be used at global scope, and <tt class="computeroutput"><span class="identifier">struct_name</span></tt>
should be the fully namespace qualified name of the struct to be converted.
</p>
<a name="fusion.adapted.adapt_assoc.header"></a><h4>
<a name="id534609"></a>
<a href="adapt_assoc.html#fusion.adapted.adapt_assoc.header">Header</a>
</h4>
<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">adapted</span><span class="special">/</span><span class="keyword">struct</span><span class="special">/</span><span class="identifier">adapt_assoc_struct</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">include</span><span class="special">/</span><span class="identifier">adapt_assoc_struct</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<a name="fusion.adapted.adapt_assoc.example"></a><h4>
<a name="id534774"></a>
<a href="adapt_assoc.html#fusion.adapted.adapt_assoc.example">Example</a>
</h4>
<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">demo</span>
<span class="special">{</span>
<span class="keyword">struct</span> <span class="identifier">employee</span>
<span class="special">{</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">name</span><span class="special">;</span>
<span class="keyword">int</span> <span class="identifier">age</span><span class="special">;</span>
<span class="special">};</span>
<span class="special">}</span>
<span class="keyword">namespace</span> <span class="identifier">keys</span>
<span class="special">{</span>
<span class="keyword">struct</span> <span class="identifier">name</span><span class="special">;</span>
<span class="keyword">struct</span> <span class="identifier">age</span><span class="special">;</span>
<span class="special">}</span>
<span class="comment">// demo::employee is now a Fusion sequence
</span><span class="comment">// It is also an associative sequence with
</span><span class="comment">// keys keys::name and keys::age present.
</span><span class="identifier">BOOST_FUSION_ADAPT_ASSOC_STRUCT</span><span class="special">(</span>
<span class="identifier">demo</span><span class="special">::</span><span class="identifier">employee</span><span class="special">,</span>
<span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">,</span> <span class="identifier">name</span><span class="special">,</span> <span class="identifier">keys</span><span class="special">::</span><span class="identifier">name</span><span class="special">)</span>
<span class="special">(</span><span class="keyword">int</span><span class="special">,</span> <span class="identifier">age</span><span class="special">,</span> <span class="identifier">keys</span><span class="special">::</span><span class="identifier">age</span><span class="special">))</span>
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="adapt_struct.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapted.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="../algorithm.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@ -0,0 +1,111 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title> BOOST_FUSION_ADAPT_STRUCT</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="home" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../adapted.html" title="Adapted">
<link rel="previous" href="boost__tuple.html" title="boost::tuple">
<link rel="next" href="adapt_assoc.html" title=" BOOST_FUSION_ADAPT_ASSOC_STRUCT">
</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.html">Home</a></td>
<td align="center"><a href="../../../../../libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">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="boost__tuple.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapted.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="adapt_assoc.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<div class="section" lang="en">
<div class="titlepage">
<div><div><h3 class="title">
<a name="fusion.adapted.adapt_struct"></a><a href="adapt_struct.html" title=" BOOST_FUSION_ADAPT_STRUCT"> BOOST_FUSION_ADAPT_STRUCT</a>
</h3></div></div>
<div></div>
</div>
<a name="fusion.adapted.adapt_struct.description"></a><h4>
<a name="id533623"></a>
<a href="adapt_struct.html#fusion.adapted.adapt_struct.description">Description</a>
</h4>
<p>
BOOST_FUSION_ADAPT_STRUCT is a macro that can be used to generate all the
necessary boilerplate to make an arbitrary struct into a <a href="../sequence/concepts/random_access_sequence.html" title="Random
Access Sequence">Random
Access Sequence</a>.
</p>
<a name="fusion.adapted.adapt_struct.synopsis"></a><h4>
<a name="id533662"></a>
<a href="adapt_struct.html#fusion.adapted.adapt_struct.synopsis">Synopsis</a>
</h4>
<pre class="programlisting"><span class="identifier">BOOST_FUSION_ADAPT_STRUCT</span><span class="special">(</span>
<span class="identifier">struct_name</span><span class="special">,</span>
<span class="special">(</span><span class="identifier">member_type0</span><span class="special">,</span> <span class="identifier">member_name0</span><span class="special">)</span>
<span class="special">(</span><span class="identifier">member_type1</span><span class="special">,</span> <span class="identifier">member_name1</span><span class="special">)</span>
<span class="special">...</span>
<span class="special">)</span>
</pre>
<a name="fusion.adapted.adapt_struct.semantics"></a><h4>
<a name="id533781"></a>
<a href="adapt_struct.html#fusion.adapted.adapt_struct.semantics">Semantics</a>
</h4>
<p>
The above macro generates the necessary code to adapt <tt class="computeroutput"><span class="identifier">struct_name</span></tt>
as a model of <a href="../sequence/concepts/random_access_sequence.html" title="Random
Access Sequence">Random
Access Sequence</a>. The sequence of <tt class="computeroutput"><span class="special">(</span><span class="identifier">member_typeN</span><span class="special">,</span>
<span class="identifier">member_nameN</span><span class="special">)</span></tt>
pairs declare the type and names of each of the struct members that will
be part of the sequence.
</p>
<p>
The macro should be used at global scope, and <tt class="computeroutput"><span class="identifier">struct_name</span></tt>
should be the fully namespace qualified name of the struct to be converted.
</p>
<a name="fusion.adapted.adapt_struct.header"></a><h4>
<a name="id533884"></a>
<a href="adapt_struct.html#fusion.adapted.adapt_struct.header">Header</a>
</h4>
<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">adapted</span><span class="special">/</span><span class="keyword">struct</span><span class="special">/</span><span class="identifier">adapt_struct</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">include</span><span class="special">/</span><span class="identifier">adapt_struct</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<a name="fusion.adapted.adapt_struct.example"></a><h4>
<a name="id534049"></a>
<a href="adapt_struct.html#fusion.adapted.adapt_struct.example">Example</a>
</h4>
<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">demo</span>
<span class="special">{</span>
<span class="keyword">struct</span> <span class="identifier">employee</span>
<span class="special">{</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">name</span><span class="special">;</span>
<span class="keyword">int</span> <span class="identifier">age</span><span class="special">;</span>
<span class="special">};</span>
<span class="special">}</span>
<span class="comment">// demo::employee is now a Fusion sequence
</span><span class="identifier">BOOST_FUSION_ADAPT_STRUCT</span><span class="special">(</span>
<span class="identifier">demo</span><span class="special">::</span><span class="identifier">employee</span><span class="special">,</span>
<span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">,</span> <span class="identifier">name</span><span class="special">)</span>
<span class="special">(</span><span class="keyword">int</span><span class="special">,</span> <span class="identifier">age</span><span class="special">))</span>
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="boost__tuple.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapted.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="adapt_assoc.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@ -3,19 +3,19 @@
<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>boost::array</title> <title>boost::array</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../adapted.html" title="Adapted"> <link rel="up" href="../adapted.html" title="Adapted">
<link rel="prev" href="mpl_sequence.html" title="mpl sequence"> <link rel="previous" href="mpl_sequence.html" title="mpl sequence">
<link rel="next" href="boost__tuple.html" title="boost::tuple"> <link rel="next" href="boost__tuple.html" title="boost::tuple">
</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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,8 +23,12 @@
<a accesskey="p" href="mpl_sequence.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapted.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="boost__tuple.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="mpl_sequence.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapted.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="boost__tuple.html"><img src="../../../../../../doc/html/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">
<a name="fusion.adapted.boost__array"></a><a href="boost__array.html" title="boost::array">boost::array</a></h3></div></div></div> <div><div><h3 class="title">
<a name="fusion.adapted.boost__array"></a><a href="boost__array.html" title="boost::array">boost::array</a>
</h3></div></div>
<div></div>
</div>
<p> <p>
This module provides adapters for <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></tt>. This module provides adapters for <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></tt>.
Including the module header makes <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></tt> Including the module header makes <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></tt>
@ -33,26 +37,24 @@
Access Sequence</a>. Access Sequence</a>.
</p> </p>
<a name="fusion.adapted.boost__array.header"></a><h4> <a name="fusion.adapted.boost__array.header"></a><h4>
<a name="id572669"></a> <a name="id532132"></a>
<a href="boost__array.html#fusion.adapted.boost__array.header">Header</a> <a href="boost__array.html#fusion.adapted.boost__array.header">Header</a>
</h4> </h4>
<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">adapted</span><span class="special">/</span><span class="identifier">array</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">adapted</span><span class="special">/</span><span class="identifier">array</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">include</span><span class="special">/</span><span class="identifier">array</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">include</span><span class="special">/</span><span class="identifier">array</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.adapted.boost__array.model_of"></a><h4> <a name="fusion.adapted.boost__array.model_of"></a><h4>
<a name="id572827"></a> <a name="id532287"></a>
<a href="boost__array.html#fusion.adapted.boost__array.model_of">Model of</a> <a href="boost__array.html#fusion.adapted.boost__array.model_of">Model of</a>
</h4> </h4>
<div class="itemizedlist"><ul type="disc"><li><a href="../sequence/concepts/random_access_sequence.html" title="Random <div class="itemizedlist"><ul type="disc"><li><a href="../sequence/concepts/random_access_sequence.html" title="Random
Access Sequence">Random Access Sequence">Random
Access Sequence</a></li></ul></div> Access Sequence</a></li></ul></div>
<a name="fusion.adapted.boost__array.example"></a><h4> <a name="fusion.adapted.boost__array.example"></a><h4>
<a name="id572868"></a> <a name="id532327"></a>
<a href="boost__array.html#fusion.adapted.boost__array.example">Example</a> <a href="boost__array.html#fusion.adapted.boost__array.example">Example</a>
</h4> </h4>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="number">3</span><span class="special">&gt;</span> <span class="identifier">arr</span> <span class="special">=</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">boost</span><span class="special">::</span><span class="identifier">array</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="number">3</span><span class="special">&gt;</span> <span class="identifier">arr</span> <span class="special">=</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">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <span class="special">*</span><a href="../sequence/intrinsic/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">arr</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <span class="special">*</span><a href="../sequence/intrinsic/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">arr</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <span class="special">*</span><a href="../iterator/functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../sequence/intrinsic/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">arr</span><span class="special">))</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <span class="special">*</span><a href="../iterator/functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../sequence/intrinsic/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">arr</span><span class="special">))</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
@ -61,7 +63,7 @@
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <a href="../sequence/intrinsic/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special">&lt;</span><span class="number">2</span><span class="special">&gt;(</span><span class="identifier">arr</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <a href="../sequence/intrinsic/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special">&lt;</span><span class="number">2</span><span class="special">&gt;(</span><span class="identifier">arr</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
</pre> </pre>
<a name="fusion.adapted.boost__array.see_also"></a><h4> <a name="fusion.adapted.boost__array.see_also"></a><h4>
<a name="id573488"></a> <a name="id532945"></a>
<a href="boost__array.html#fusion.adapted.boost__array.see_also">See also</a> <a href="boost__array.html#fusion.adapted.boost__array.see_also">See also</a>
</h4> </h4>
<p> <p>
@ -70,11 +72,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,28 +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>boost::tuple</title> <title>boost::tuple</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../adapted.html" title="Adapted"> <link rel="up" href="../adapted.html" title="Adapted">
<link rel="prev" href="boost__array.html" title="boost::array"> <link rel="previous" href="boost__array.html" title="boost::array">
<link rel="next" href="boost__variant.html" title="boost::variant"> <link rel="next" href="adapt_struct.html" title=" BOOST_FUSION_ADAPT_STRUCT">
</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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="boost__array.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapted.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="boost__variant.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="boost__array.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapted.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="adapt_struct.html"><img src="../../../../../../doc/html/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">
<a name="fusion.adapted.boost__tuple"></a><a href="boost__tuple.html" title="boost::tuple">boost::tuple</a></h3></div></div></div> <div><div><h3 class="title">
<a name="fusion.adapted.boost__tuple"></a><a href="boost__tuple.html" title="boost::tuple">boost::tuple</a>
</h3></div></div>
<div></div>
</div>
<p> <p>
This module provides adapters for <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">tuple</span></tt>. This module provides adapters for <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">tuple</span></tt>.
Including the module header makes <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">tuple</span></tt> Including the module header makes <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">tuple</span></tt>
@ -33,30 +37,28 @@
Sequence</a>. Sequence</a>.
</p> </p>
<a name="fusion.adapted.boost__tuple.header"></a><h4> <a name="fusion.adapted.boost__tuple.header"></a><h4>
<a name="id573602"></a> <a name="id533058"></a>
<a href="boost__tuple.html#fusion.adapted.boost__tuple.header">Header</a> <a href="boost__tuple.html#fusion.adapted.boost__tuple.header">Header</a>
</h4> </h4>
<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">adapted</span><span class="special">/</span><span class="identifier">boost_tuple</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">adapted</span><span class="special">/</span><span class="identifier">boost_tuple</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">include</span><span class="special">/</span><span class="identifier">boost_tuple</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">include</span><span class="special">/</span><span class="identifier">boost_tuple</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.adapted.boost__tuple.model_of"></a><h4> <a name="fusion.adapted.boost__tuple.model_of"></a><h4>
<a name="id573760"></a> <a name="id533213"></a>
<a href="boost__tuple.html#fusion.adapted.boost__tuple.model_of">Model of</a> <a href="boost__tuple.html#fusion.adapted.boost__tuple.model_of">Model of</a>
</h4> </h4>
<div class="itemizedlist"><ul type="disc"><li><a href="../sequence/concepts/forward_sequence.html" title="Forward <div class="itemizedlist"><ul type="disc"><li><a href="../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence</a></li></ul></div> Sequence">Forward Sequence</a></li></ul></div>
<a name="fusion.adapted.boost__tuple.example"></a><h4> <a name="fusion.adapted.boost__tuple.example"></a><h4>
<a name="id573801"></a> <a name="id533252"></a>
<a href="boost__tuple.html#fusion.adapted.boost__tuple.example">Example</a> <a href="boost__tuple.html#fusion.adapted.boost__tuple.example">Example</a>
</h4> </h4>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">tuple</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&gt;</span> <span class="identifier">example_tuple</span><span class="special">(</span><span class="number">101</span><span class="special">,</span> <span class="string">"hello"</span><span class="special">);</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">tuple</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&gt;</span> <span class="identifier">example_tuple</span><span class="special">(</span><span class="number">101</span><span class="special">,</span> <span class="string">"hello"</span><span class="special">);</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <span class="special">*</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">begin</span><span class="special">(</span><span class="identifier">example_tuple</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="char">'\n'</span><span class="special">;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <span class="special">*</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">begin</span><span class="special">(</span><span class="identifier">example_tuple</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="char">'\n'</span><span class="special">;</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <span class="special">*</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">next</span><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">begin</span><span class="special">(</span><span class="identifier">example_tuple</span><span class="special">))</span> <span class="special">&lt;&lt;</span> <span class="char">'\n'</span><span class="special">;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <span class="special">*</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">next</span><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">begin</span><span class="special">(</span><span class="identifier">example_tuple</span><span class="special">))</span> <span class="special">&lt;&lt;</span> <span class="char">'\n'</span><span class="special">;</span>
</pre> </pre>
<a name="fusion.adapted.boost__tuple.see_also"></a><h4> <a name="fusion.adapted.boost__tuple.see_also"></a><h4>
<a name="id574119"></a> <a name="id533568"></a>
<a href="boost__tuple.html#fusion.adapted.boost__tuple.see_also">See also</a> <a href="boost__tuple.html#fusion.adapted.boost__tuple.see_also">See also</a>
</h4> </h4>
<p> <p>
@ -66,15 +68,16 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="boost__array.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapted.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="boost__variant.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="boost__array.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapted.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="adapt_struct.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -1,83 +0,0 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>boost::variant</title>
<link rel="stylesheet" href="../../../../../../doc/html/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="../adapted.html" title="Adapted">
<link rel="prev" href="boost__tuple.html" title="boost::tuple">
<link rel="next" href="../algorithm.html" title="Algorithm">
</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="boost__tuple.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapted.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="../algorithm.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
<a name="fusion.adapted.boost__variant"></a><a href="boost__variant.html" title="boost::variant">boost::variant</a></h3></div></div></div>
<p>
This module provides adapters for <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">variant</span></tt>.
Including the module header makes <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">variant</span></tt>
a fully conforming <a href="../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward
Sequence</a>. The variant acts as a sequence of the types that can be
contained in the variant. Accessing types not currently stored int the variant
will lead to the variant being populated with a default constructed value
of that type.
</p>
<a name="fusion.adapted.boost__variant.header"></a><h4>
<a name="id574238"></a>
<a href="boost__variant.html#fusion.adapted.boost__variant.header">Header</a>
</h4>
<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">adapted</span><span class="special">/</span><span class="identifier">variant</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">include</span><span class="special">/</span><span class="identifier">variant</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<a name="fusion.adapted.boost__variant.model_of"></a><h4>
<a name="id574396"></a>
<a href="boost__variant.html#fusion.adapted.boost__variant.model_of">Model of</a>
</h4>
<div class="itemizedlist"><ul type="disc"><li><a href="../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence</a></li></ul></div>
<a name="fusion.adapted.boost__variant.example"></a><h4>
<a name="id574437"></a>
<a href="boost__variant.html#fusion.adapted.boost__variant.example">Example</a>
</h4>
<pre class="programlisting">
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">variant</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&gt;</span> <span class="identifier">example_variant</span> <span class="special">=</span> <span class="number">101</span><span class="special">;</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <span class="identifier">example_variant</span> <span class="special">&lt;&lt;</span> <span class="char">'\n'</span><span class="special">;</span>
<span class="special">*</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">find</span><span class="special">&lt;</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&gt;(</span><span class="identifier">example_variant</span><span class="special">)</span> <span class="special">=</span> <span class="string">"hello"</span><span class="special">;</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <span class="identifier">example_variant</span> <span class="special">&lt;&lt;</span> <span class="char">'\n'</span><span class="special">;</span>
</pre>
<a name="fusion.adapted.boost__variant.see_also"></a><h4>
<a name="id574720"></a>
<a href="boost__variant.html#fusion.adapted.boost__variant.see_also">See also</a>
</h4>
<p>
<a href="http://www.boost.org/doc/html/variant.html" target="_top">Boost.Variant Library</a>
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="boost__tuple.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapted.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="../algorithm.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
</body>
</html>

View File

@ -3,19 +3,19 @@
<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>mpl sequence</title> <title>mpl sequence</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../adapted.html" title="Adapted"> <link rel="up" href="../adapted.html" title="Adapted">
<link rel="prev" href="std__pair.html" title="std::pair"> <link rel="previous" href="std__pair.html" title="std::pair">
<link rel="next" href="boost__array.html" title="boost::array"> <link rel="next" href="boost__array.html" title="boost::array">
</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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,23 +23,26 @@
<a accesskey="p" href="std__pair.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapted.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="boost__array.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="std__pair.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapted.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="boost__array.html"><img src="../../../../../../doc/html/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">
<a name="fusion.adapted.mpl_sequence"></a><a href="mpl_sequence.html" title="mpl sequence">mpl sequence</a></h3></div></div></div> <div><div><h3 class="title">
<a name="fusion.adapted.mpl_sequence"></a><a href="mpl_sequence.html" title="mpl sequence">mpl sequence</a>
</h3></div></div>
<div></div>
</div>
<p> <p>
This module provides adapters for <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a> This module provides adapters for <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a>
sequences. Including the module header makes all <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a> sequences. Including the module header makes all <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a>
sequences fully conforming fusion sequences. sequences fully conforming fusion sequences.
</p> </p>
<a name="fusion.adapted.mpl_sequence.header"></a><h4> <a name="fusion.adapted.mpl_sequence.header"></a><h4>
<a name="id571722"></a> <a name="id531191"></a>
<a href="mpl_sequence.html#fusion.adapted.mpl_sequence.header">Header</a> <a href="mpl_sequence.html#fusion.adapted.mpl_sequence.header">Header</a>
</h4> </h4>
<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">adapted</span><span class="special">/</span><span class="identifier">mpl</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">adapted</span><span class="special">/</span><span class="identifier">mpl</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">include</span><span class="special">/</span><span class="identifier">mpl</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">include</span><span class="special">/</span><span class="identifier">mpl</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.adapted.mpl_sequence.model_of"></a><h4> <a name="fusion.adapted.mpl_sequence.model_of"></a><h4>
<a name="id571879"></a> <a name="id531346"></a>
<a href="mpl_sequence.html#fusion.adapted.mpl_sequence.model_of">Model of</a> <a href="mpl_sequence.html#fusion.adapted.mpl_sequence.model_of">Model of</a>
</h4> </h4>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
@ -63,11 +66,10 @@
</li> </li>
</ul></div> </ul></div>
<a name="fusion.adapted.mpl_sequence.example"></a><h4> <a name="fusion.adapted.mpl_sequence.example"></a><h4>
<a name="id571970"></a> <a name="id531436"></a>
<a href="mpl_sequence.html#fusion.adapted.mpl_sequence.example">Example</a> <a href="mpl_sequence.html#fusion.adapted.mpl_sequence.example">Example</a>
</h4> </h4>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">vector_c</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="number">123</span><span class="special">,</span> <span class="number">456</span><span class="special">&gt;</span> <span class="identifier">vec_c</span><span class="special">;</span>
<span class="identifier">mpl</span><span class="special">::</span><span class="identifier">vector_c</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="number">123</span><span class="special">,</span> <span class="number">456</span><span class="special">&gt;</span> <span class="identifier">vec_c</span><span class="special">;</span>
<span class="identifier">fusion</span><span class="special">::</span><span class="identifier">vector2</span><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="identifier">v</span><span class="special">(</span><span class="identifier">vec_c</span><span class="special">);</span> <span class="identifier">fusion</span><span class="special">::</span><span class="identifier">vector2</span><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="identifier">v</span><span class="special">(</span><span class="identifier">vec_c</span><span class="special">);</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <a href="../sequence/intrinsic/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special">&lt;</span><span class="number">0</span><span class="special">&gt;(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <a href="../sequence/intrinsic/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special">&lt;</span><span class="number">0</span><span class="special">&gt;(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <a href="../sequence/intrinsic/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special">&lt;</span><span class="number">1</span><span class="special">&gt;(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <a href="../sequence/intrinsic/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special">&lt;</span><span class="number">1</span><span class="special">&gt;(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
@ -77,7 +79,7 @@
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <a href="../sequence/intrinsic/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special">&lt;</span><span class="number">1</span><span class="special">&gt;(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <a href="../sequence/intrinsic/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special">&lt;</span><span class="number">1</span><span class="special">&gt;(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
</pre> </pre>
<a name="fusion.adapted.mpl_sequence.see_also"></a><h4> <a name="fusion.adapted.mpl_sequence.see_also"></a><h4>
<a name="id572557"></a> <a name="id532022"></a>
<a href="mpl_sequence.html#fusion.adapted.mpl_sequence.see_also">See also</a> <a href="mpl_sequence.html#fusion.adapted.mpl_sequence.see_also">See also</a>
</h4> </h4>
<p> <p>
@ -86,11 +88,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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>std::pair</title> <title>std::pair</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../adapted.html" title="Adapted"> <link rel="up" href="../adapted.html" title="Adapted">
<link rel="prev" href="../adapted.html" title="Adapted"> <link rel="previous" href="../adapted.html" title="Adapted">
<link rel="next" href="mpl_sequence.html" title="mpl sequence"> <link rel="next" href="mpl_sequence.html" title="mpl sequence">
</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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,8 +23,12 @@
<a accesskey="p" href="../adapted.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapted.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="mpl_sequence.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../adapted.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../adapted.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="mpl_sequence.html"><img src="../../../../../../doc/html/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">
<a name="fusion.adapted.std__pair"></a><a href="std__pair.html" title="std::pair">std::pair</a></h3></div></div></div> <div><div><h3 class="title">
<a name="fusion.adapted.std__pair"></a><a href="std__pair.html" title="std::pair">std::pair</a>
</h3></div></div>
<div></div>
</div>
<p> <p>
This module provides adapters for <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt>. This module provides adapters for <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt>.
Including the module header makes <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt> Including the module header makes <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt>
@ -33,32 +37,30 @@
Access Sequence</a>. Access Sequence</a>.
</p> </p>
<a name="fusion.adapted.std__pair.header"></a><h4> <a name="fusion.adapted.std__pair.header"></a><h4>
<a name="id571035"></a> <a name="id530512"></a>
<a href="std__pair.html#fusion.adapted.std__pair.header">Header</a> <a href="std__pair.html#fusion.adapted.std__pair.header">Header</a>
</h4> </h4>
<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">adapted</span><span class="special">/</span><span class="identifier">std_pair</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">adapted</span><span class="special">/</span><span class="identifier">std_pair</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">include</span><span class="special">/</span><span class="identifier">std_pair</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">include</span><span class="special">/</span><span class="identifier">std_pair</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.adapted.std__pair.model_of"></a><h4> <a name="fusion.adapted.std__pair.model_of"></a><h4>
<a name="id571192"></a> <a name="id530668"></a>
<a href="std__pair.html#fusion.adapted.std__pair.model_of">Model of</a> <a href="std__pair.html#fusion.adapted.std__pair.model_of">Model of</a>
</h4> </h4>
<div class="itemizedlist"><ul type="disc"><li><a href="../sequence/concepts/random_access_sequence.html" title="Random <div class="itemizedlist"><ul type="disc"><li><a href="../sequence/concepts/random_access_sequence.html" title="Random
Access Sequence">Random Access Sequence">Random
Access Sequence</a></li></ul></div> Access Sequence</a></li></ul></div>
<a name="fusion.adapted.std__pair.example"></a><h4> <a name="fusion.adapted.std__pair.example"></a><h4>
<a name="id571233"></a> <a name="id530707"></a>
<a href="std__pair.html#fusion.adapted.std__pair.example">Example</a> <a href="std__pair.html#fusion.adapted.std__pair.example">Example</a>
</h4> </h4>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&gt;</span> <span class="identifier">p</span><span class="special">(</span><span class="number">123</span><span class="special">,</span> <span class="string">"Hola!!!"</span><span class="special">);</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&gt;</span> <span class="identifier">p</span><span class="special">(</span><span class="number">123</span><span class="special">,</span> <span class="string">"Hola!!!"</span><span class="special">);</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <a href="../sequence/intrinsic/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special">&lt;</span><span class="number">0</span><span class="special">&gt;(</span><span class="identifier">p</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <a href="../sequence/intrinsic/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special">&lt;</span><span class="number">0</span><span class="special">&gt;(</span><span class="identifier">p</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <a href="../sequence/intrinsic/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special">&lt;</span><span class="number">1</span><span class="special">&gt;(</span><span class="identifier">p</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <a href="../sequence/intrinsic/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special">&lt;</span><span class="number">1</span><span class="special">&gt;(</span><span class="identifier">p</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <span class="identifier">p</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <span class="identifier">p</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
</pre> </pre>
<a name="fusion.adapted.std__pair.see_also"></a><h4> <a name="fusion.adapted.std__pair.see_also"></a><h4>
<a name="id571586"></a> <a name="id531057"></a>
<a href="std__pair.html#fusion.adapted.std__pair.see_also">See also</a> <a href="std__pair.html#fusion.adapted.std__pair.see_also">See also</a>
</h4> </h4>
<p> <p>
@ -69,11 +71,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,28 +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>Algorithm</title> <title>Algorithm</title>
<link rel="stylesheet" href="../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="adapted/boost__variant.html" title="boost::variant"> <link rel="previous" href="adapted/adapt_assoc.html" title=" BOOST_FUSION_ADAPT_ASSOC_STRUCT">
<link rel="next" href="algorithm/iteration.html" title="Iteration"> <link rel="next" href="algorithm/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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="adapted/boost__variant.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="algorithm/iteration.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="adapted/adapt_assoc.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="algorithm/iteration.html"><img src="../../../../../doc/html/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">
<a name="fusion.algorithm"></a><a href="algorithm.html" title="Algorithm">Algorithm</a></h2></div></div></div> <div><div><h2 class="title" style="clear: both">
<a name="fusion.algorithm"></a><a href="algorithm.html" title="Algorithm">Algorithm</a>
</h2></div></div>
<div></div>
</div>
<div class="toc"><dl> <div class="toc"><dl>
<dt><span class="section"><a href="algorithm/iteration.html">Iteration</a></span></dt> <dt><span class="section"><a href="algorithm/iteration.html">Iteration</a></span></dt>
<dd><dl> <dd><dl>
@ -43,7 +47,7 @@
</dl></dd> </dl></dd>
</dl></div> </dl></div>
<a name="fusion.algorithm.lazy_evaluation"></a><h3> <a name="fusion.algorithm.lazy_evaluation"></a><h3>
<a name="id574774"></a> <a name="id535132"></a>
<a href="algorithm.html#fusion.algorithm.lazy_evaluation">Lazy Evaluation</a> <a href="algorithm.html#fusion.algorithm.lazy_evaluation">Lazy Evaluation</a>
</h3> </h3>
<p> <p>
@ -66,7 +70,7 @@
as we want without incurring a high runtime penalty. as we want without incurring a high runtime penalty.
</p> </p>
<a name="fusion.algorithm.sequence_extension"></a><h3> <a name="fusion.algorithm.sequence_extension"></a><h3>
<a name="id574922"></a> <a name="id535279"></a>
<a href="algorithm.html#fusion.algorithm.sequence_extension">Sequence Extension</a> <a href="algorithm.html#fusion.algorithm.sequence_extension">Sequence Extension</a>
</h3> </h3>
<p> <p>
@ -89,25 +93,25 @@
functions to convert back to the original sequence type. functions to convert back to the original sequence type.
</p> </p>
<a name="fusion.algorithm.header"></a><h3> <a name="fusion.algorithm.header"></a><h3>
<a name="id575155"></a> <a name="id535506"></a>
<a href="algorithm.html#fusion.algorithm.header">Header</a> <a href="algorithm.html#fusion.algorithm.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">algorithm</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">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">include</span><span class="special">/</span><span class="identifier">algorithm</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">include</span><span class="special">/</span><span class="identifier">algorithm</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">
<a accesskey="p" href="adapted/boost__variant.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="algorithm/iteration.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="adapted/adapt_assoc.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="algorithm/iteration.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -3,19 +3,19 @@
<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="../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../algorithm.html" title="Algorithm"> <link rel="up" href="../algorithm.html" title="Algorithm">
<link rel="prev" href="../algorithm.html" title="Algorithm"> <link rel="previous" href="../algorithm.html" title="Algorithm">
<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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,8 +23,12 @@
<a accesskey="p" href="../algorithm.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithm.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="../algorithm.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithm.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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title"> <div class="titlepage">
<a name="fusion.algorithm.iteration"></a><a href="iteration.html" title="Iteration">Iteration</a></h3></div></div></div> <div><div><h3 class="title">
<a name="fusion.algorithm.iteration"></a><a href="iteration.html" title="Iteration">Iteration</a>
</h3></div></div>
<div></div>
</div>
<div class="toc"><dl> <div class="toc"><dl>
<dt><span class="section"><a href="iteration/functions.html">Functions</a></span></dt> <dt><span class="section"><a href="iteration/functions.html">Functions</a></span></dt>
<dt><span class="section"><a href="iteration/metafunctions.html">Metafunctions</a></span></dt> <dt><span class="section"><a href="iteration/metafunctions.html">Metafunctions</a></span></dt>
@ -34,21 +38,21 @@
a sequence repeatedly applying an operation to its elements. a sequence repeatedly applying an operation to its elements.
</p> </p>
<a name="fusion.algorithm.iteration.header"></a><h4> <a name="fusion.algorithm.iteration.header"></a><h4>
<a name="id575328"></a> <a name="id535675"></a>
<a href="iteration.html#fusion.algorithm.iteration.header">Header</a> <a href="iteration.html#fusion.algorithm.iteration.header">Header</a>
</h4> </h4>
<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">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">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">include</span><span class="special">/</span><span class="identifier">iteration</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">include</span><span class="special">/</span><span class="identifier">iteration</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,8 +23,12 @@
<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="../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage">
<a name="fusion.algorithm.iteration.functions"></a><a href="functions.html" title="Functions">Functions</a></h4></div></div></div> <div><div><h4 class="title">
<a name="fusion.algorithm.iteration.functions"></a><a href="functions.html" title="Functions">Functions</a>
</h4></div></div>
<div></div>
</div>
<div class="toc"><dl> <div class="toc"><dl>
<dt><span class="section"><a href="functions/fold.html">fold</a></span></dt> <dt><span class="section"><a href="functions/fold.html">fold</a></span></dt>
<dt><span class="section"><a href="functions/accumulate.html">accumulate</a></span></dt> <dt><span class="section"><a href="functions/accumulate.html">accumulate</a></span></dt>
@ -33,11 +37,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.iteration.functions.accumulate"></a><a href="accumulate.html" title="accumulate">accumulate</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.iteration.functions.accumulate"></a><a href="accumulate.html" title="accumulate">accumulate</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.iteration.functions.accumulate.description"></a><h6> <a name="fusion.algorithm.iteration.functions.accumulate.description"></a><h6>
<a name="id577257"></a> <a name="id537581"></a>
<a href="accumulate.html#fusion.algorithm.iteration.functions.accumulate.description">Description</a> <a href="accumulate.html#fusion.algorithm.iteration.functions.accumulate.description">Description</a>
</h6> </h6>
<p> <p>
@ -37,11 +41,10 @@
and the previous state. and the previous state.
</p> </p>
<a name="fusion.algorithm.iteration.functions.accumulate.synopsis"></a><h6> <a name="fusion.algorithm.iteration.functions.accumulate.synopsis"></a><h6>
<a name="id577336"></a> <a name="id537658"></a>
<a href="accumulate.html#fusion.algorithm.iteration.functions.accumulate.synopsis">Synopsis</a> <a href="accumulate.html#fusion.algorithm.iteration.functions.accumulate.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="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">State</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">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>
@ -50,7 +53,7 @@
<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="id577597"></a><p class="title"><b>Table<EFBFBD>1.34.<2E>Parameters</b></p> <a name="id537917"></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>
@ -58,91 +61,66 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/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>, <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> 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></tt> must be a valid expression for
each element <tt class="computeroutput"><span class="identifier">e1</span></tt> each element <tt class="computeroutput"><span class="identifier">e1</span></tt>
to <tt class="computeroutput"><span class="identifier">eN</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt> to <tt class="computeroutput"><span class="identifier">eN</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">initial_state</span></tt> <tt class="computeroutput"><span class="identifier">initial_state</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
Initial state Initial state
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <tt class="computeroutput"><span class="identifier">f</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
<tt class="computeroutput"><a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></tt></a><span class="special">&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> <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>
for each element <tt class="computeroutput"><span class="identifier">e</span></tt> for each element <tt class="computeroutput"><span class="identifier">e</span></tt>
of type <tt class="computeroutput"><span class="identifier">E</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>, and current state <tt class="computeroutput"><span class="identifier">s</span></tt> of type <tt class="computeroutput"><span class="identifier">S</span></tt> of type <tt class="computeroutput"><span class="identifier">E</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>, and current state <tt class="computeroutput"><span class="identifier">s</span></tt> of type <tt class="computeroutput"><span class="identifier">S</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.iteration.functions.accumulate.expression_semantics"></a><h6> <a name="fusion.algorithm.iteration.functions.accumulate.expression_semantics"></a><h6>
<a name="id578049"></a> <a name="id538367"></a>
<a href="accumulate.html#fusion.algorithm.iteration.functions.accumulate.expression_semantics">Expression <a href="accumulate.html#fusion.algorithm.iteration.functions.accumulate.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><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"><b>Return type</b></span>: Any type
@ -152,26 +130,24 @@
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 <tt class="computeroutput"><span class="identifier">e1</span> <span class="special">...</span><span class="identifier">eN</span></tt> are the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithm.iteration.functions.accumulate.complexity"></a><h6> <a name="fusion.algorithm.iteration.functions.accumulate.complexity"></a><h6>
<a name="id578260"></a> <a name="id538575"></a>
<a href="accumulate.html#fusion.algorithm.iteration.functions.accumulate.complexity">Complexity</a> <a href="accumulate.html#fusion.algorithm.iteration.functions.accumulate.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear, exactly <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&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 <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&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>.
</p> </p>
<a name="fusion.algorithm.iteration.functions.accumulate.header"></a><h6> <a name="fusion.algorithm.iteration.functions.accumulate.header"></a><h6>
<a name="id578356"></a> <a name="id538669"></a>
<a href="accumulate.html#fusion.algorithm.iteration.functions.accumulate.header">Header</a> <a href="accumulate.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.iteration.functions.accumulate.example"></a><h6> <a name="fusion.algorithm.iteration.functions.accumulate.example"></a><h6>
<a name="id578526"></a> <a name="id538836"></a>
<a href="accumulate.html#fusion.algorithm.iteration.functions.accumulate.example">Example</a> <a href="accumulate.html#fusion.algorithm.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">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>
@ -188,11 +164,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../functions.html"><img src="../../../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="accumulate.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.iteration.functions.fold"></a><a href="fold.html" title="fold">fold</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.iteration.functions.fold"></a><a href="fold.html" title="fold">fold</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.iteration.functions.fold.description"></a><h6> <a name="fusion.algorithm.iteration.functions.fold.description"></a><h6>
<a name="id575528"></a> <a name="id535870"></a>
<a href="fold.html#fusion.algorithm.iteration.functions.fold.description">Description</a> <a href="fold.html#fusion.algorithm.iteration.functions.fold.description">Description</a>
</h6> </h6>
<p> <p>
@ -37,11 +41,10 @@
and the previous state. and the previous state.
</p> </p>
<a name="fusion.algorithm.iteration.functions.fold.synopsis"></a><h6> <a name="fusion.algorithm.iteration.functions.fold.synopsis"></a><h6>
<a name="id575608"></a> <a name="id535948"></a>
<a href="fold.html#fusion.algorithm.iteration.functions.fold.synopsis">Synopsis</a> <a href="fold.html#fusion.algorithm.iteration.functions.fold.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="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">State</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">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>
@ -50,7 +53,7 @@
<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="id575867"></a><p class="title"><b>Table<EFBFBD>1.33.<2E>Parameters</b></p> <a name="id536204"></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>
@ -58,91 +61,66 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/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>,<tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">,</span><span class="identifier">s</span><span class="special">)</span></tt> must be a valid expression for
each element <tt class="computeroutput"><span class="identifier">e</span></tt> each element <tt class="computeroutput"><span class="identifier">e</span></tt>
in <tt class="computeroutput"><span class="identifier">seq</span></tt>, and current in <tt class="computeroutput"><span class="identifier">seq</span></tt>, and current
state <tt class="computeroutput"><span class="identifier">s</span></tt> state <tt class="computeroutput"><span class="identifier">s</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">initial_state</span></tt> <tt class="computeroutput"><span class="identifier">initial_state</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
Initial state Initial state
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <tt class="computeroutput"><span class="identifier">f</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
<tt class="computeroutput"><a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></tt></a><span class="special">&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> <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>
for each element <tt class="computeroutput"><span class="identifier">e</span></tt> for each element <tt class="computeroutput"><span class="identifier">e</span></tt>
of type <tt class="computeroutput"><span class="identifier">E</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>, and current state <tt class="computeroutput"><span class="identifier">s</span></tt> of type <tt class="computeroutput"><span class="identifier">S</span></tt> of type <tt class="computeroutput"><span class="identifier">E</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>, and current state <tt class="computeroutput"><span class="identifier">s</span></tt> of type <tt class="computeroutput"><span class="identifier">S</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.iteration.functions.fold.expression_semantics"></a><h6> <a name="fusion.algorithm.iteration.functions.fold.expression_semantics"></a><h6>
<a name="id576277"></a> <a name="id536612"></a>
<a href="fold.html#fusion.algorithm.iteration.functions.fold.expression_semantics">Expression <a href="fold.html#fusion.algorithm.iteration.functions.fold.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">fold</span><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span>
<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"><b>Return type</b></span>: Any type
@ -152,26 +130,24 @@
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 <tt class="computeroutput"><span class="identifier">e1</span> <span class="special">...</span><span class="identifier">eN</span></tt> are the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithm.iteration.functions.fold.complexity"></a><h6> <a name="fusion.algorithm.iteration.functions.fold.complexity"></a><h6>
<a name="id576487"></a> <a name="id536820"></a>
<a href="fold.html#fusion.algorithm.iteration.functions.fold.complexity">Complexity</a> <a href="fold.html#fusion.algorithm.iteration.functions.fold.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear, exactly <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&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 <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&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>.
</p> </p>
<a name="fusion.algorithm.iteration.functions.fold.header"></a><h6> <a name="fusion.algorithm.iteration.functions.fold.header"></a><h6>
<a name="id576582"></a> <a name="id536913"></a>
<a href="fold.html#fusion.algorithm.iteration.functions.fold.header">Header</a> <a href="fold.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.iteration.functions.fold.example"></a><h6> <a name="fusion.algorithm.iteration.functions.fold.example"></a><h6>
<a name="id576752"></a> <a name="id537079"></a>
<a href="fold.html#fusion.algorithm.iteration.functions.fold.example">Example</a> <a href="fold.html#fusion.algorithm.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">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>
@ -188,11 +164,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,21 +23,24 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.iteration.functions.for_each"></a><a href="for_each.html" title="for_each">for_each</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.iteration.functions.for_each"></a><a href="for_each.html" title="for_each">for_each</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.iteration.functions.for_each.description"></a><h6> <a name="fusion.algorithm.iteration.functions.for_each.description"></a><h6>
<a name="id579028"></a> <a name="id539334"></a>
<a href="for_each.html#fusion.algorithm.iteration.functions.for_each.description">Description</a> <a href="for_each.html#fusion.algorithm.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.algorithm.iteration.functions.for_each.synopsis"></a><h6> <a name="fusion.algorithm.iteration.functions.for_each.synopsis"></a><h6>
<a name="id579060"></a> <a name="id539364"></a>
<a href="for_each.html#fusion.algorithm.iteration.functions.for_each.synopsis">Synopsis</a> <a href="for_each.html#fusion.algorithm.iteration.functions.for_each.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="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>
@ -45,7 +48,7 @@
<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="id579263"></a><p class="title"><b>Table<EFBFBD>1.35.<2E>Parameters</b></p> <a name="id539564"></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>
@ -53,73 +56,54 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/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>, <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
each element <tt class="computeroutput"><span class="identifier">e</span></tt> each element <tt class="computeroutput"><span class="identifier">e</span></tt>
in <tt class="computeroutput"><span class="identifier">seq</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <tt class="computeroutput"><span class="identifier">f</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A unary <a href="../../../functional/concepts/reg_callable.html" title=" Regular Callable A unary <a href="../../../functional/concepts/reg_callable.html" title=" Regular Callable
Object">Regular Object">Regular
Callable Object</a> Callable Object</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.iteration.functions.for_each.expression_semantics"></a><h6> <a name="fusion.algorithm.iteration.functions.for_each.expression_semantics"></a><h6>
<a name="id579463"></a> <a name="id539763"></a>
<a href="for_each.html#fusion.algorithm.iteration.functions.for_each.expression_semantics">Expression <a href="for_each.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">void</span></tt> <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">void</span></tt>
@ -129,26 +113,24 @@
in <tt class="computeroutput"><span class="identifier">seq</span></tt>. in <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithm.iteration.functions.for_each.complexity"></a><h6> <a name="fusion.algorithm.iteration.functions.for_each.complexity"></a><h6>
<a name="id579622"></a> <a name="id539918"></a>
<a href="for_each.html#fusion.algorithm.iteration.functions.for_each.complexity">Complexity</a> <a href="for_each.html#fusion.algorithm.iteration.functions.for_each.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear, exactly <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&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 <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&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>.
</p> </p>
<a name="fusion.algorithm.iteration.functions.for_each.header"></a><h6> <a name="fusion.algorithm.iteration.functions.for_each.header"></a><h6>
<a name="id579717"></a> <a name="id540012"></a>
<a href="for_each.html#fusion.algorithm.iteration.functions.for_each.header">Header</a> <a href="for_each.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.iteration.functions.for_each.example"></a><h6> <a name="fusion.algorithm.iteration.functions.for_each.example"></a><h6>
<a name="id579887"></a> <a name="id540179"></a>
<a href="for_each.html#fusion.algorithm.iteration.functions.for_each.example">Example</a> <a href="for_each.html#fusion.algorithm.iteration.functions.for_each.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">increment</span>
<span class="keyword">struct</span> <span class="identifier">increment</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="keyword">void</span> <span class="keyword">operator</span><span class="special">()(</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="keyword">void</span> <span class="keyword">operator</span><span class="special">()(</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>
@ -164,11 +146,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,8 +23,12 @@
<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="../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage">
<a name="fusion.algorithm.iteration.metafunctions"></a><a href="metafunctions.html" title="Metafunctions">Metafunctions</a></h4></div></div></div> <div><div><h4 class="title">
<a name="fusion.algorithm.iteration.metafunctions"></a><a href="metafunctions.html" title="Metafunctions">Metafunctions</a>
</h4></div></div>
<div></div>
</div>
<div class="toc"><dl> <div class="toc"><dl>
<dt><span class="section"><a href="metafunctions/fold.html">fold</a></span></dt> <dt><span class="section"><a href="metafunctions/fold.html">fold</a></span></dt>
<dt><span class="section"><a href="metafunctions/accumulate.html">accumulate</a></span></dt> <dt><span class="section"><a href="metafunctions/accumulate.html">accumulate</a></span></dt>
@ -33,11 +37,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,21 +23,24 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.iteration.metafunctions.accumulate"></a><a href="accumulate.html" title="accumulate">accumulate</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.iteration.metafunctions.accumulate"></a><a href="accumulate.html" title="accumulate">accumulate</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.iteration.metafunctions.accumulate.description"></a><h6> <a name="fusion.algorithm.iteration.metafunctions.accumulate.description"></a><h6>
<a name="id581263"></a> <a name="id541535"></a>
<a href="accumulate.html#fusion.algorithm.iteration.metafunctions.accumulate.description">Description</a> <a href="accumulate.html#fusion.algorithm.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"><tt class="computeroutput"><span class="identifier">accumulate</span></tt></a>.
</p> </p>
<a name="fusion.algorithm.iteration.metafunctions.accumulate.synopsis"></a><h6> <a name="fusion.algorithm.iteration.metafunctions.accumulate.synopsis"></a><h6>
<a name="id581312"></a> <a name="id541582"></a>
<a href="accumulate.html#fusion.algorithm.iteration.metafunctions.accumulate.synopsis">Synopsis</a> <a href="accumulate.html#fusion.algorithm.iteration.metafunctions.accumulate.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="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">State</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">State</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> <span class="identifier">F</span><span class="special">&gt;</span>
@ -47,7 +50,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id581449"></a><p class="title"><b>Table<EFBFBD>1.37.<2E>Parameters</b></p> <a name="id541715"></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>
@ -55,88 +58,63 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
The sequence to iterate The sequence to iterate
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">State</span></tt> <tt class="computeroutput"><span class="identifier">State</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<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 <tt class="computeroutput"><span class="identifier">F</span></tt>
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">F</span></tt> <tt class="computeroutput"><span class="identifier">F</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
<tt class="computeroutput"><a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></tt></a><span class="special">&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> <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>
for each element <tt class="computeroutput"><span class="identifier">e</span></tt> for each element <tt class="computeroutput"><span class="identifier">e</span></tt>
of type <tt class="computeroutput"><span class="identifier">E</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>, and current state <tt class="computeroutput"><span class="identifier">s</span></tt> of type <tt class="computeroutput"><span class="identifier">S</span></tt> of type <tt class="computeroutput"><span class="identifier">E</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>, and current state <tt class="computeroutput"><span class="identifier">s</span></tt> of type <tt class="computeroutput"><span class="identifier">S</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
The operation to be applied on forward traversal The operation to be applied on forward traversal
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.iteration.metafunctions.accumulate.expression_semantics"></a><h6> <a name="fusion.algorithm.iteration.metafunctions.accumulate.expression_semantics"></a><h6>
<a name="id581801"></a> <a name="id542066"></a>
<a href="accumulate.html#fusion.algorithm.iteration.metafunctions.accumulate.expression_semantics">Expression <a href="accumulate.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: Any type <span class="bold"><b>Return type</b></span>: Any type
@ -149,28 +127,28 @@
and binary function object or function pointer of type <tt class="computeroutput"><span class="identifier">F</span></tt>. and binary function object or function pointer of type <tt class="computeroutput"><span class="identifier">F</span></tt>.
</p> </p>
<a name="fusion.algorithm.iteration.metafunctions.accumulate.complexity"></a><h6> <a name="fusion.algorithm.iteration.metafunctions.accumulate.complexity"></a><h6>
<a name="id581978"></a> <a name="id542240"></a>
<a href="accumulate.html#fusion.algorithm.iteration.metafunctions.accumulate.complexity">Complexity</a> <a href="accumulate.html#fusion.algorithm.iteration.metafunctions.accumulate.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear, exactly <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&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 <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&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>.
</p> </p>
<a name="fusion.algorithm.iteration.metafunctions.accumulate.header"></a><h6> <a name="fusion.algorithm.iteration.metafunctions.accumulate.header"></a><h6>
<a name="id582074"></a> <a name="id542334"></a>
<a href="accumulate.html#fusion.algorithm.iteration.metafunctions.accumulate.header">Header</a> <a href="accumulate.html#fusion.algorithm.iteration.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,21 +23,24 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.iteration.metafunctions.fold"></a><a href="fold.html" title="fold">fold</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.iteration.metafunctions.fold"></a><a href="fold.html" title="fold">fold</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.iteration.metafunctions.fold.description"></a><h6> <a name="fusion.algorithm.iteration.metafunctions.fold.description"></a><h6>
<a name="id580268"></a> <a name="id540554"></a>
<a href="fold.html#fusion.algorithm.iteration.metafunctions.fold.description">Description</a> <a href="fold.html#fusion.algorithm.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"><tt class="computeroutput"><span class="identifier">fold</span></tt></a>.
</p> </p>
<a name="fusion.algorithm.iteration.metafunctions.fold.synopsis"></a><h6> <a name="fusion.algorithm.iteration.metafunctions.fold.synopsis"></a><h6>
<a name="id580317"></a> <a name="id540601"></a>
<a href="fold.html#fusion.algorithm.iteration.metafunctions.fold.synopsis">Synopsis</a> <a href="fold.html#fusion.algorithm.iteration.metafunctions.fold.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="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">State</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">State</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> <span class="identifier">F</span><span class="special">&gt;</span>
@ -47,7 +50,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id580453"></a><p class="title"><b>Table<EFBFBD>1.36.<2E>Parameters</b></p> <a name="id540735"></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>
@ -55,88 +58,63 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
The sequence to iterate The sequence to iterate
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">State</span></tt> <tt class="computeroutput"><span class="identifier">State</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<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 <tt class="computeroutput"><span class="identifier">F</span></tt>
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">F</span></tt> <tt class="computeroutput"><span class="identifier">F</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
<tt class="computeroutput"><a href="http://www.boost.org/libs/utility/utility.htm#result_of" target="_top"><tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">result_of</span></tt></a><span class="special">&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> <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>
for each element <tt class="computeroutput"><span class="identifier">e</span></tt> for each element <tt class="computeroutput"><span class="identifier">e</span></tt>
of type <tt class="computeroutput"><span class="identifier">E</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>, and current state <tt class="computeroutput"><span class="identifier">s</span></tt> of type <tt class="computeroutput"><span class="identifier">S</span></tt> of type <tt class="computeroutput"><span class="identifier">E</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>, and current state <tt class="computeroutput"><span class="identifier">s</span></tt> of type <tt class="computeroutput"><span class="identifier">S</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
The operation to be applied on forward traversal The operation to be applied on forward traversal
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.iteration.metafunctions.fold.expression_semantics"></a><h6> <a name="fusion.algorithm.iteration.metafunctions.fold.expression_semantics"></a><h6>
<a name="id580803"></a> <a name="id541084"></a>
<a href="fold.html#fusion.algorithm.iteration.metafunctions.fold.expression_semantics">Expression <a href="fold.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: Any type <span class="bold"><b>Return type</b></span>: Any type
@ -149,28 +127,28 @@
and binary function object or function pointer of type <tt class="computeroutput"><span class="identifier">F</span></tt>. and binary function object or function pointer of type <tt class="computeroutput"><span class="identifier">F</span></tt>.
</p> </p>
<a name="fusion.algorithm.iteration.metafunctions.fold.complexity"></a><h6> <a name="fusion.algorithm.iteration.metafunctions.fold.complexity"></a><h6>
<a name="id580977"></a> <a name="id541254"></a>
<a href="fold.html#fusion.algorithm.iteration.metafunctions.fold.complexity">Complexity</a> <a href="fold.html#fusion.algorithm.iteration.metafunctions.fold.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear, exactly <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&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 <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&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>.
</p> </p>
<a name="fusion.algorithm.iteration.metafunctions.fold.header"></a><h6> <a name="fusion.algorithm.iteration.metafunctions.fold.header"></a><h6>
<a name="id581073"></a> <a name="id541349"></a>
<a href="fold.html#fusion.algorithm.iteration.metafunctions.fold.header">Header</a> <a href="fold.html#fusion.algorithm.iteration.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,22 +23,25 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.iteration.metafunctions.for_each"></a><a href="for_each.html" title="for_each">for_each</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.iteration.metafunctions.for_each"></a><a href="for_each.html" title="for_each">for_each</a>
</h5></div></div>
<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"><tt class="computeroutput"><span class="identifier">for_each</span></tt></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"><tt class="computeroutput"><span class="identifier">for_each</span></tt></a> is always <tt class="computeroutput"><span class="keyword">void</span></tt>.
</p> </p>
<a name="fusion.algorithm.iteration.metafunctions.for_each.description"></a><h6> <a name="fusion.algorithm.iteration.metafunctions.for_each.description"></a><h6>
<a name="id582319"></a> <a name="id542575"></a>
<a href="for_each.html#fusion.algorithm.iteration.metafunctions.for_each.description">Description</a> <a href="for_each.html#fusion.algorithm.iteration.metafunctions.for_each.description">Description</a>
</h6> </h6>
<a name="fusion.algorithm.iteration.metafunctions.for_each.synopsis"></a><h6> <a name="fusion.algorithm.iteration.metafunctions.for_each.synopsis"></a><h6>
<a name="id582346"></a> <a name="id542600"></a>
<a href="for_each.html#fusion.algorithm.iteration.metafunctions.for_each.synopsis">Synopsis</a> <a href="for_each.html#fusion.algorithm.iteration.metafunctions.for_each.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="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>
@ -48,7 +51,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id582468"></a><p class="title"><b>Table<EFBFBD>1.38.<2E>Parameters</b></p> <a name="id542720"></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>
@ -56,69 +59,50 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">F</span></tt> <tt class="computeroutput"><span class="identifier">F</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.iteration.metafunctions.for_each.expression_semantics"></a><h6> <a name="fusion.algorithm.iteration.metafunctions.for_each.expression_semantics"></a><h6>
<a name="id582609"></a> <a name="id542860"></a>
<a href="for_each.html#fusion.algorithm.iteration.metafunctions.for_each.expression_semantics">Expression <a href="for_each.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">void</span></tt>. <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">void</span></tt>.
@ -131,28 +115,28 @@
return type is always <tt class="computeroutput"><span class="keyword">void</span></tt>. return type is always <tt class="computeroutput"><span class="keyword">void</span></tt>.
</p> </p>
<a name="fusion.algorithm.iteration.metafunctions.for_each.complexity"></a><h6> <a name="fusion.algorithm.iteration.metafunctions.for_each.complexity"></a><h6>
<a name="id582791"></a> <a name="id543040"></a>
<a href="for_each.html#fusion.algorithm.iteration.metafunctions.for_each.complexity">Complexity</a> <a href="for_each.html#fusion.algorithm.iteration.metafunctions.for_each.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.iteration.metafunctions.for_each.header"></a><h6> <a name="fusion.algorithm.iteration.metafunctions.for_each.header"></a><h6>
<a name="id582821"></a> <a name="id543069"></a>
<a href="for_each.html#fusion.algorithm.iteration.metafunctions.for_each.header">Header</a> <a href="for_each.html#fusion.algorithm.iteration.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../algorithm.html" title="Algorithm"> <link rel="up" href="../algorithm.html" title="Algorithm">
<link rel="prev" href="iteration/metafunctions/for_each.html" title="for_each"> <link rel="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,8 +23,12 @@
<a accesskey="p" href="iteration/metafunctions/for_each.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithm.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="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithm.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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title"> <div class="titlepage">
<a name="fusion.algorithm.query"></a><a href="query.html" title="Query">Query</a></h3></div></div></div> <div><div><h3 class="title">
<a name="fusion.algorithm.query"></a><a href="query.html" title="Query">Query</a>
</h3></div></div>
<div></div>
</div>
<div class="toc"><dl> <div class="toc"><dl>
<dt><span class="section"><a href="query/functions.html">Functions</a></span></dt> <dt><span class="section"><a href="query/functions.html">Functions</a></span></dt>
<dt><span class="section"><a href="query/metafunctions.html">Metafunctions</a></span></dt> <dt><span class="section"><a href="query/metafunctions.html">Metafunctions</a></span></dt>
@ -33,21 +37,21 @@
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.algorithm.query.header"></a><h4> <a name="fusion.algorithm.query.header"></a><h4>
<a name="id583019"></a> <a name="id543262"></a>
<a href="query.html#fusion.algorithm.query.header">Header</a> <a href="query.html#fusion.algorithm.query.header">Header</a>
</h4> </h4>
<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">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">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">include</span><span class="special">/</span><span class="identifier">query</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">include</span><span class="special">/</span><span class="identifier">query</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,8 +23,12 @@
<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="../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage">
<a name="fusion.algorithm.query.functions"></a><a href="functions.html" title="Functions">Functions</a></h4></div></div></div> <div><div><h4 class="title">
<a name="fusion.algorithm.query.functions"></a><a href="functions.html" title="Functions">Functions</a>
</h4></div></div>
<div></div>
</div>
<div class="toc"><dl> <div class="toc"><dl>
<dt><span class="section"><a href="functions/any.html">any</a></span></dt> <dt><span class="section"><a href="functions/any.html">any</a></span></dt>
<dt><span class="section"><a href="functions/all.html">all</a></span></dt> <dt><span class="section"><a href="functions/all.html">all</a></span></dt>
@ -37,11 +41,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.query.functions.all"></a><a href="all.html" title="all">all</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.query.functions.all"></a><a href="all.html" title="all">all</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.query.functions.all.description"></a><h6> <a name="fusion.algorithm.query.functions.all.description"></a><h6>
<a name="id584477"></a> <a name="id545520"></a>
<a href="all.html#fusion.algorithm.query.functions.all.description">Description</a> <a href="all.html#fusion.algorithm.query.functions.all.description">Description</a>
</h6> </h6>
<p> <p>
@ -37,11 +41,10 @@
element of <tt class="computeroutput"><span class="identifier">seq</span></tt>. element of <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithm.query.functions.all.synopsis"></a><h6> <a name="fusion.algorithm.query.functions.all.synopsis"></a><h6>
<a name="id584567"></a> <a name="id353686"></a>
<a href="all.html#fusion.algorithm.query.functions.all.synopsis">Synopsis</a> <a href="all.html#fusion.algorithm.query.functions.all.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="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>
@ -49,7 +52,7 @@
<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="id584761"></a><p class="title"><b>Table<EFBFBD>1.40.<2E>Parameters</b></p> <a name="id546380"></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>
@ -57,71 +60,52 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/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>, <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
to <tt class="computeroutput"><span class="keyword">bool</span></tt>, for every to <tt class="computeroutput"><span class="keyword">bool</span></tt>, for every
element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt> element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
The sequence to search The sequence to search
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <tt class="computeroutput"><span class="identifier">f</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A unary function object A unary function object
</p> </p></td>
</td> <td><p>
<td>
<p>
The search predicate The search predicate
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.query.functions.all.expression_semantics"></a><h6> <a name="fusion.algorithm.query.functions.all.expression_semantics"></a><h6>
<a name="id584962"></a> <a name="id546567"></a>
<a href="all.html#fusion.algorithm.query.functions.all.expression_semantics">Expression <a href="all.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt> <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>
@ -133,26 +117,24 @@
element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>. element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithm.query.functions.all.complexity"></a><h6> <a name="fusion.algorithm.query.functions.all.complexity"></a><h6>
<a name="id585132"></a> <a name="id546716"></a>
<a href="all.html#fusion.algorithm.query.functions.all.complexity">Complexity</a> <a href="all.html#fusion.algorithm.query.functions.all.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons. Linear. At most <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons.
</p> </p>
<a name="fusion.algorithm.query.functions.all.header"></a><h6> <a name="fusion.algorithm.query.functions.all.header"></a><h6>
<a name="id585215"></a> <a name="id546786"></a>
<a href="all.html#fusion.algorithm.query.functions.all.header">Header</a> <a href="all.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.query.functions.all.example"></a><h6> <a name="fusion.algorithm.query.functions.all.example"></a><h6>
<a name="id585383"></a> <a name="id546934"></a>
<a href="all.html#fusion.algorithm.query.functions.all.example">Example</a> <a href="all.html#fusion.algorithm.query.functions.all.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">odd</span>
<span class="keyword">struct</span> <span class="identifier">odd</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="keyword">bool</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="keyword">bool</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>
@ -167,11 +149,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.query.functions.any"></a><a href="any.html" title="any">any</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.query.functions.any"></a><a href="any.html" title="any">any</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.query.functions.any.description"></a><h6> <a name="fusion.algorithm.query.functions.any.description"></a><h6>
<a name="id583217"></a> <a name="id543456"></a>
<a href="any.html#fusion.algorithm.query.functions.any.description">Description</a> <a href="any.html#fusion.algorithm.query.functions.any.description">Description</a>
</h6> </h6>
<p> <p>
@ -37,11 +41,10 @@
least one element of <tt class="computeroutput"><span class="identifier">seq</span></tt>. least one element of <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithm.query.functions.any.synopsis"></a><h6> <a name="fusion.algorithm.query.functions.any.synopsis"></a><h6>
<a name="id583306"></a> <a name="id543543"></a>
<a href="any.html#fusion.algorithm.query.functions.any.synopsis">Synopsis</a> <a href="any.html#fusion.algorithm.query.functions.any.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="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>
@ -49,7 +52,7 @@
<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="id583500"></a><p class="title"><b>Table<EFBFBD>1.39.<2E>Parameters</b></p> <a name="id543734"></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>
@ -57,71 +60,52 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/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>, <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
to <tt class="computeroutput"><span class="keyword">bool</span></tt>, for each to <tt class="computeroutput"><span class="keyword">bool</span></tt>, for each
element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt> element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
The sequence to search The sequence to search
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <tt class="computeroutput"><span class="identifier">f</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A unary function object A unary function object
</p> </p></td>
</td> <td><p>
<td>
<p>
The search predicate The search predicate
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.query.functions.any.expression_semantics"></a><h6> <a name="fusion.algorithm.query.functions.any.expression_semantics"></a><h6>
<a name="id583701"></a> <a name="id543934"></a>
<a href="any.html#fusion.algorithm.query.functions.any.expression_semantics">Expression <a href="any.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt> <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>
@ -133,26 +117,24 @@
element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>. element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithm.query.functions.any.complexity"></a><h6> <a name="fusion.algorithm.query.functions.any.complexity"></a><h6>
<a name="id583871"></a> <a name="id544102"></a>
<a href="any.html#fusion.algorithm.query.functions.any.complexity">Complexity</a> <a href="any.html#fusion.algorithm.query.functions.any.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons. Linear. At most <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons.
</p> </p>
<a name="fusion.algorithm.query.functions.any.header"></a><h6> <a name="fusion.algorithm.query.functions.any.header"></a><h6>
<a name="id583953"></a> <a name="id544184"></a>
<a href="any.html#fusion.algorithm.query.functions.any.header">Header</a> <a href="any.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.query.functions.any.example"></a><h6> <a name="fusion.algorithm.query.functions.any.example"></a><h6>
<a name="id584122"></a> <a name="id544349"></a>
<a href="any.html#fusion.algorithm.query.functions.any.example">Example</a> <a href="any.html#fusion.algorithm.query.functions.any.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">odd</span>
<span class="keyword">struct</span> <span class="identifier">odd</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="keyword">bool</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="keyword">bool</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>
@ -167,11 +149,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,21 +23,24 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.query.functions.count"></a><a href="count.html" title="count">count</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.query.functions.count"></a><a href="count.html" title="count">count</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.query.functions.count.description"></a><h6> <a name="fusion.algorithm.query.functions.count.description"></a><h6>
<a name="id589255"></a> <a name="id550460"></a>
<a href="count.html#fusion.algorithm.query.functions.count.description">Description</a> <a href="count.html#fusion.algorithm.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.algorithm.query.functions.count.synopsis"></a><h6> <a name="fusion.algorithm.query.functions.count.synopsis"></a><h6>
<a name="id589287"></a> <a name="id550488"></a>
<a href="count.html#fusion.algorithm.query.functions.count.synopsis">Synopsis</a> <a href="count.html#fusion.algorithm.query.functions.count.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="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>
@ -45,7 +48,7 @@
<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="id589494"></a><p class="title"><b>Table<EFBFBD>1.44.<2E>Parameters</b></p> <a name="id550689"></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>
@ -53,72 +56,53 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/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>, <tt class="computeroutput"><span class="identifier">e</span> <span class="special">==</span> <span class="identifier">t</span></tt>
must be a valid expression, convertible to <tt class="computeroutput"><span class="keyword">bool</span></tt>, must be a valid expression, convertible to <tt class="computeroutput"><span class="keyword">bool</span></tt>,
for each element <tt class="computeroutput"><span class="identifier">e</span></tt> for each element <tt class="computeroutput"><span class="identifier">e</span></tt>
in <tt class="computeroutput"><span class="identifier">seq</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
The sequence to search The sequence to search
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <tt class="computeroutput"><span class="identifier">T</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
The type to count The type to count
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.query.functions.count.expression_semantics"></a><h6> <a name="fusion.algorithm.query.functions.count.expression_semantics"></a><h6>
<a name="id589691"></a> <a name="id550879"></a>
<a href="count.html#fusion.algorithm.query.functions.count.expression_semantics">Expression <a href="count.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">int</span></tt> <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">int</span></tt>
@ -129,36 +113,35 @@
<tt class="computeroutput"><span class="identifier">t</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>. <tt class="computeroutput"><span class="identifier">t</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithm.query.functions.count.complexity"></a><h6> <a name="fusion.algorithm.query.functions.count.complexity"></a><h6>
<a name="id589835"></a> <a name="id551015"></a>
<a href="count.html#fusion.algorithm.query.functions.count.complexity">Complexity</a> <a href="count.html#fusion.algorithm.query.functions.count.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons. Linear. At most <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons.
</p> </p>
<a name="fusion.algorithm.query.functions.count.header"></a><h6> <a name="fusion.algorithm.query.functions.count.header"></a><h6>
<a name="id589919"></a> <a name="id551094"></a>
<a href="count.html#fusion.algorithm.query.functions.count.header">Header</a> <a href="count.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.query.functions.count.example"></a><h6> <a name="fusion.algorithm.query.functions.count.example"></a><h6>
<a name="id590088"></a> <a name="id551257"></a>
<a href="count.html#fusion.algorithm.query.functions.count.example">Example</a> <a href="count.html#fusion.algorithm.query.functions.count.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="keyword">const</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&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="../../../container/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="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"><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>
</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.query.functions.count_if"></a><a href="count_if.html" title="count_if">count_if</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.query.functions.count_if"></a><a href="count_if.html" title="count_if">count_if</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.query.functions.count_if.description"></a><h6> <a name="fusion.algorithm.query.functions.count_if.description"></a><h6>
<a name="id590305"></a> <a name="id551462"></a>
<a href="count_if.html#fusion.algorithm.query.functions.count_if.description">Description</a> <a href="count_if.html#fusion.algorithm.query.functions.count_if.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
a given unary function object evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt>. a given unary function object evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt>.
</p> </p>
<a name="fusion.algorithm.query.functions.count_if.synopsis"></a><h6> <a name="fusion.algorithm.query.functions.count_if.synopsis"></a><h6>
<a name="id590350"></a> <a name="id551502"></a>
<a href="count_if.html#fusion.algorithm.query.functions.count_if.synopsis">Synopsis</a> <a href="count_if.html#fusion.algorithm.query.functions.count_if.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="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>
@ -46,7 +49,7 @@
<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="id590546"></a><p class="title"><b>Table<EFBFBD>1.45.<2E>Parameters</b></p> <a name="id551692"></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>
@ -54,71 +57,52 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/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>, <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
to <tt class="computeroutput"><span class="keyword">bool</span></tt>, for each to <tt class="computeroutput"><span class="keyword">bool</span></tt>, for each
element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt> element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
The sequence to search The sequence to search
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <tt class="computeroutput"><span class="identifier">f</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A unary function object A unary function object
</p> </p></td>
</td> <td><p>
<td>
<p>
The search predicate The search predicate
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.query.functions.count_if.expression_semantics"></a><h6> <a name="fusion.algorithm.query.functions.count_if.expression_semantics"></a><h6>
<a name="id590747"></a> <a name="id551887"></a>
<a href="count_if.html#fusion.algorithm.query.functions.count_if.expression_semantics">Expression <a href="count_if.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">int</span></tt> <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">int</span></tt>
@ -128,36 +112,35 @@
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 <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>.
</p> </p>
<a name="fusion.algorithm.query.functions.count_if.complexity"></a><h6> <a name="fusion.algorithm.query.functions.count_if.complexity"></a><h6>
<a name="id590891"></a> <a name="id552021"></a>
<a href="count_if.html#fusion.algorithm.query.functions.count_if.complexity">Complexity</a> <a href="count_if.html#fusion.algorithm.query.functions.count_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons. Linear. At most <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons.
</p> </p>
<a name="fusion.algorithm.query.functions.count_if.header"></a><h6> <a name="fusion.algorithm.query.functions.count_if.header"></a><h6>
<a name="id590974"></a> <a name="id552099"></a>
<a href="count_if.html#fusion.algorithm.query.functions.count_if.header">Header</a> <a href="count_if.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.query.functions.count_if.example"></a><h6> <a name="fusion.algorithm.query.functions.count_if.example"></a><h6>
<a name="id591144"></a> <a name="id552264"></a>
<a href="count_if.html#fusion.algorithm.query.functions.count_if.example">Example</a> <a href="count_if.html#fusion.algorithm.query.functions.count_if.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="keyword">const</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&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="../../../container/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="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"><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>
</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,21 +23,24 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.query.functions.find"></a><a href="find.html" title="find">find</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.query.functions.find"></a><a href="find.html" title="find">find</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.query.functions.find.description"></a><h6> <a name="fusion.algorithm.query.functions.find.description"></a><h6>
<a name="id587042"></a> <a name="id548407"></a>
<a href="find.html#fusion.algorithm.query.functions.find.description">Description</a> <a href="find.html#fusion.algorithm.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.algorithm.query.functions.find.synopsis"></a><h6> <a name="fusion.algorithm.query.functions.find.synopsis"></a><h6>
<a name="id587074"></a> <a name="id548433"></a>
<a href="find.html#fusion.algorithm.query.functions.find.synopsis">Synopsis</a> <a href="find.html#fusion.algorithm.query.functions.find.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">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>
@ -50,7 +53,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="id587273"></a><p class="title"><b>Table<EFBFBD>1.42.<2E>Parameters</b></p> <a name="id548610"></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>
@ -58,69 +61,50 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
The sequence to search The sequence to search
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <tt class="computeroutput"><span class="identifier">T</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
The type to search for The type to search for
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.query.functions.find.expression_semantics"></a><h6> <a name="fusion.algorithm.query.functions.find.expression_semantics"></a><h6>
<a name="id587412"></a> <a name="id548742"></a>
<a href="find.html#fusion.algorithm.query.functions.find.expression_semantics">Expression <a href="find.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of the same iterator <span class="bold"><b>Return type</b></span>: A model of the same iterator
@ -133,37 +117,36 @@
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 <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>
</p> </p>
<a name="fusion.algorithm.query.functions.find.complexity"></a><h6> <a name="fusion.algorithm.query.functions.find.complexity"></a><h6>
<a name="id587665"></a> <a name="id548963"></a>
<a href="find.html#fusion.algorithm.query.functions.find.complexity">Complexity</a> <a href="find.html#fusion.algorithm.query.functions.find.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons. Linear. At most <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons.
</p> </p>
<a name="fusion.algorithm.query.functions.find.header"></a><h6> <a name="fusion.algorithm.query.functions.find.header"></a><h6>
<a name="id587749"></a> <a name="id549034"></a>
<a href="find.html#fusion.algorithm.query.functions.find.header">Header</a> <a href="find.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.query.functions.find.example"></a><h6> <a name="fusion.algorithm.query.functions.find.example"></a><h6>
<a name="id587918"></a> <a name="id549182"></a>
<a href="find.html#fusion.algorithm.query.functions.find.example">Example</a> <a href="find.html#fusion.algorithm.query.functions.find.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="keyword">const</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&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="../../../container/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="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"><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"><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="../../../sequence/intrinsic/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"><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="../../../sequence/intrinsic/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>
</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,23 +23,26 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.query.functions.find_if"></a><a href="find_if.html" title="find_if">find_if</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.query.functions.find_if"></a><a href="find_if.html" title="find_if">find_if</a>
</h5></div></div>
<div></div>
</div>
<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 <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>.
</p> </p>
<a name="fusion.algorithm.query.functions.find_if.description"></a><h6> <a name="fusion.algorithm.query.functions.find_if.description"></a><h6>
<a name="id588245"></a> <a name="id549491"></a>
<a href="find_if.html#fusion.algorithm.query.functions.find_if.description">Description</a> <a href="find_if.html#fusion.algorithm.query.functions.find_if.description">Description</a>
</h6> </h6>
<a name="fusion.algorithm.query.functions.find_if.synopsis"></a><h6> <a name="fusion.algorithm.query.functions.find_if.synopsis"></a><h6>
<a name="id588271"></a> <a name="id549513"></a>
<a href="find_if.html#fusion.algorithm.query.functions.find_if.synopsis">Synopsis</a> <a href="find_if.html#fusion.algorithm.query.functions.find_if.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">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">Sequence</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
@ -52,7 +55,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="id588472"></a><p class="title"><b>Table<EFBFBD>1.43.<2E>Parameters</b></p> <a name="id549709"></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>
@ -60,70 +63,51 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
The sequence to search The sequence to search
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">F</span></tt> <tt class="computeroutput"><span class="identifier">F</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL A unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL
Lambda Expression</a> Lambda Expression</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
The search predicate The search predicate
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.query.functions.find_if.expression_semantics"></a><h6> <a name="fusion.algorithm.query.functions.find_if.expression_semantics"></a><h6>
<a name="id588618"></a> <a name="id549852"></a>
<a href="find_if.html#fusion.algorithm.query.functions.find_if.expression_semantics">Expression <a href="find_if.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: An iterator of the same <span class="bold"><b>Return type</b></span>: An iterator of the same
@ -137,7 +121,7 @@
if there is no such element. if there is no such element.
</p> </p>
<a name="fusion.algorithm.query.functions.find_if.complexity"></a><h6> <a name="fusion.algorithm.query.functions.find_if.complexity"></a><h6>
<a name="id588827"></a> <a name="id550050"></a>
<a href="find_if.html#fusion.algorithm.query.functions.find_if.complexity">Complexity</a> <a href="find_if.html#fusion.algorithm.query.functions.find_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
@ -147,22 +131,22 @@
/algorithm/query/find_if.hpp&gt; /algorithm/query/find_if.hpp&gt;
</p> </p>
<a name="fusion.algorithm.query.functions.find_if.example"></a><h6> <a name="fusion.algorithm.query.functions.find_if.example"></a><h6>
<a name="id588915"></a> <a name="id550133"></a>
<a href="find_if.html#fusion.algorithm.query.functions.find_if.example">Example</a> <a href="find_if.html#fusion.algorithm.query.functions.find_if.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="keyword">const</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&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="../../../container/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="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"><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"><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="../../../sequence/intrinsic/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"><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="../../../sequence/intrinsic/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>
</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.query.functions.none"></a><a href="none.html" title="none">none</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.query.functions.none"></a><a href="none.html" title="none">none</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.query.functions.none.description"></a><h6> <a name="fusion.algorithm.query.functions.none.description"></a><h6>
<a name="id585738"></a> <a name="id547251"></a>
<a href="none.html#fusion.algorithm.query.functions.none.description">Description</a> <a href="none.html#fusion.algorithm.query.functions.none.description">Description</a>
</h6> </h6>
<p> <p>
@ -37,11 +41,10 @@
element of <tt class="computeroutput"><span class="identifier">seq</span></tt>. element of <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithm.query.functions.none.synopsis"></a><h6> <a name="fusion.algorithm.query.functions.none.synopsis"></a><h6>
<a name="id585827"></a> <a name="id547326"></a>
<a href="none.html#fusion.algorithm.query.functions.none.synopsis">Synopsis</a> <a href="none.html#fusion.algorithm.query.functions.none.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="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>
@ -49,7 +52,7 @@
<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="id586022"></a><p class="title"><b>Table<EFBFBD>1.41.<2E>Parameters</b></p> <a name="id547496"></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>
@ -57,71 +60,52 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/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>, <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
to <tt class="computeroutput"><span class="keyword">bool</span></tt>, for every to <tt class="computeroutput"><span class="keyword">bool</span></tt>, for every
element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt> element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
The sequence to search The sequence to search
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <tt class="computeroutput"><span class="identifier">f</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A unary function object A unary function object
</p> </p></td>
</td> <td><p>
<td>
<p>
The search predicate The search predicate
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.query.functions.none.expression_semantics"></a><h6> <a name="fusion.algorithm.query.functions.none.expression_semantics"></a><h6>
<a name="id586223"></a> <a name="id547683"></a>
<a href="none.html#fusion.algorithm.query.functions.none.expression_semantics">Expression <a href="none.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt> <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>
@ -133,26 +117,24 @@
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 <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>.
</p> </p>
<a name="fusion.algorithm.query.functions.none.complexity"></a><h6> <a name="fusion.algorithm.query.functions.none.complexity"></a><h6>
<a name="id586436"></a> <a name="id547871"></a>
<a href="none.html#fusion.algorithm.query.functions.none.complexity">Complexity</a> <a href="none.html#fusion.algorithm.query.functions.none.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons. Linear. At most <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons.
</p> </p>
<a name="fusion.algorithm.query.functions.none.header"></a><h6> <a name="fusion.algorithm.query.functions.none.header"></a><h6>
<a name="id586520"></a> <a name="id547942"></a>
<a href="none.html#fusion.algorithm.query.functions.none.header">Header</a> <a href="none.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.query.functions.none.example"></a><h6> <a name="fusion.algorithm.query.functions.none.example"></a><h6>
<a name="id586688"></a> <a name="id548090"></a>
<a href="none.html#fusion.algorithm.query.functions.none.example">Example</a> <a href="none.html#fusion.algorithm.query.functions.none.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">odd</span>
<span class="keyword">struct</span> <span class="identifier">odd</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="keyword">bool</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="keyword">bool</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>
@ -167,11 +149,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,8 +23,12 @@
<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="../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage">
<a name="fusion.algorithm.query.metafunctions"></a><a href="metafunctions.html" title="Metafunctions">Metafunctions</a></h4></div></div></div> <div><div><h4 class="title">
<a name="fusion.algorithm.query.metafunctions"></a><a href="metafunctions.html" title="Metafunctions">Metafunctions</a>
</h4></div></div>
<div></div>
</div>
<div class="toc"><dl> <div class="toc"><dl>
<dt><span class="section"><a href="metafunctions/any.html">any</a></span></dt> <dt><span class="section"><a href="metafunctions/any.html">any</a></span></dt>
<dt><span class="section"><a href="metafunctions/all.html">all</a></span></dt> <dt><span class="section"><a href="metafunctions/all.html">all</a></span></dt>
@ -37,11 +41,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,21 +23,24 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.query.metafunctions.all"></a><a href="all.html" title="all">all</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.query.metafunctions.all"></a><a href="all.html" title="all">all</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.query.metafunctions.all.description"></a><h6> <a name="fusion.algorithm.query.metafunctions.all.description"></a><h6>
<a name="id592107"></a> <a name="id553205"></a>
<a href="all.html#fusion.algorithm.query.metafunctions.all.description">Description</a> <a href="all.html#fusion.algorithm.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"><tt class="computeroutput"><span class="identifier">all</span></tt></a>.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.all.synopsis"></a><h6> <a name="fusion.algorithm.query.metafunctions.all.synopsis"></a><h6>
<a name="id592156"></a> <a name="id553252"></a>
<a href="all.html#fusion.algorithm.query.metafunctions.all.synopsis">Synopsis</a> <a href="all.html#fusion.algorithm.query.metafunctions.all.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="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>
@ -47,7 +50,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id592277"></a><p class="title"><b>Table<EFBFBD>1.47.<2E>Parameters</b></p> <a name="id553371"></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>
@ -55,71 +58,52 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">F</span></tt> <tt class="computeroutput"><span class="identifier">F</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of unary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function A model of unary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> Function Object</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.query.metafunctions.all.expression_semantics"></a><h6> <a name="fusion.algorithm.query.metafunctions.all.expression_semantics"></a><h6>
<a name="id592425"></a> <a name="id553518"></a>
<a href="all.html#fusion.algorithm.query.metafunctions.all.expression_semantics">Expression <a href="all.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>. <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>.
@ -134,28 +118,28 @@
The return type is always <tt class="computeroutput"><span class="keyword">bool</span></tt>. The return type is always <tt class="computeroutput"><span class="keyword">bool</span></tt>.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.all.complexity"></a><h6> <a name="fusion.algorithm.query.metafunctions.all.complexity"></a><h6>
<a name="id592614"></a> <a name="id553703"></a>
<a href="all.html#fusion.algorithm.query.metafunctions.all.complexity">Complexity</a> <a href="all.html#fusion.algorithm.query.metafunctions.all.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.all.header"></a><h6> <a name="fusion.algorithm.query.metafunctions.all.header"></a><h6>
<a name="id592644"></a> <a name="id553731"></a>
<a href="all.html#fusion.algorithm.query.metafunctions.all.header">Header</a> <a href="all.html#fusion.algorithm.query.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,21 +23,24 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.query.metafunctions.any"></a><a href="any.html" title="any">any</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.query.metafunctions.any"></a><a href="any.html" title="any">any</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.query.metafunctions.any.description"></a><h6> <a name="fusion.algorithm.query.metafunctions.any.description"></a><h6>
<a name="id591380"></a> <a name="id552495"></a>
<a href="any.html#fusion.algorithm.query.metafunctions.any.description">Description</a> <a href="any.html#fusion.algorithm.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"><tt class="computeroutput"><span class="identifier">any</span></tt></a>.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.any.synopsis"></a><h6> <a name="fusion.algorithm.query.metafunctions.any.synopsis"></a><h6>
<a name="id591429"></a> <a name="id552542"></a>
<a href="any.html#fusion.algorithm.query.metafunctions.any.synopsis">Synopsis</a> <a href="any.html#fusion.algorithm.query.metafunctions.any.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="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>
@ -47,7 +50,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id591550"></a><p class="title"><b>Table<EFBFBD>1.46.<2E>Parameters</b></p> <a name="id552661"></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>
@ -55,71 +58,52 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">F</span></tt> <tt class="computeroutput"><span class="identifier">F</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of unary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function A model of unary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> Function Object</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.query.metafunctions.any.expression_semantics"></a><h6> <a name="fusion.algorithm.query.metafunctions.any.expression_semantics"></a><h6>
<a name="id591700"></a> <a name="id552810"></a>
<a href="any.html#fusion.algorithm.query.metafunctions.any.expression_semantics">Expression <a href="any.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>. <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>.
@ -134,28 +118,28 @@
The return type is always <tt class="computeroutput"><span class="keyword">bool</span></tt>. The return type is always <tt class="computeroutput"><span class="keyword">bool</span></tt>.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.any.complexity"></a><h6> <a name="fusion.algorithm.query.metafunctions.any.complexity"></a><h6>
<a name="id591889"></a> <a name="id552995"></a>
<a href="any.html#fusion.algorithm.query.metafunctions.any.complexity">Complexity</a> <a href="any.html#fusion.algorithm.query.metafunctions.any.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.any.header"></a><h6> <a name="fusion.algorithm.query.metafunctions.any.header"></a><h6>
<a name="id591919"></a> <a name="id553022"></a>
<a href="any.html#fusion.algorithm.query.metafunctions.any.header">Header</a> <a href="any.html#fusion.algorithm.query.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.query.metafunctions.count"></a><a href="count.html" title="count">count</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.query.metafunctions.count"></a><a href="count.html" title="count">count</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.query.metafunctions.count.description"></a><h6> <a name="fusion.algorithm.query.metafunctions.count.description"></a><h6>
<a name="id595133"></a> <a name="id556161"></a>
<a href="count.html#fusion.algorithm.query.metafunctions.count.description">Description</a> <a href="count.html#fusion.algorithm.query.metafunctions.count.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
given the sequence and search types. given the sequence and search types.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.count.synopsis"></a><h6> <a name="fusion.algorithm.query.metafunctions.count.synopsis"></a><h6>
<a name="id595178"></a> <a name="id556202"></a>
<a href="count.html#fusion.algorithm.query.metafunctions.count.synopsis">Synopsis</a> <a href="count.html#fusion.algorithm.query.metafunctions.count.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="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>
@ -48,7 +51,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id595298"></a><p class="title"><b>Table<EFBFBD>1.51.<2E>Parameters</b></p> <a name="id556320"></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>
@ -56,69 +59,50 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
heading Description heading Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <tt class="computeroutput"><span class="identifier">T</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.query.metafunctions.count.expression_semantics"></a><h6> <a name="fusion.algorithm.query.metafunctions.count.expression_semantics"></a><h6>
<a name="id595437"></a> <a name="id556458"></a>
<a href="count.html#fusion.algorithm.query.metafunctions.count.expression_semantics">Expression <a href="count.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">int</span></tt>. <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">int</span></tt>.
@ -129,28 +113,28 @@
<tt class="computeroutput"><span class="keyword">int</span></tt>. <tt class="computeroutput"><span class="keyword">int</span></tt>.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.count.complexity"></a><h6> <a name="fusion.algorithm.query.metafunctions.count.complexity"></a><h6>
<a name="id595582"></a> <a name="id556600"></a>
<a href="count.html#fusion.algorithm.query.metafunctions.count.complexity">Complexity</a> <a href="count.html#fusion.algorithm.query.metafunctions.count.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.count.header"></a><h6> <a name="fusion.algorithm.query.metafunctions.count.header"></a><h6>
<a name="id595611"></a> <a name="id556627"></a>
<a href="count.html#fusion.algorithm.query.metafunctions.count.header">Header</a> <a href="count.html#fusion.algorithm.query.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.query.metafunctions.count_if"></a><a href="count_if.html" title="count_if">count_if</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.query.metafunctions.count_if"></a><a href="count_if.html" title="count_if">count_if</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.query.metafunctions.count_if.description"></a><h6> <a name="fusion.algorithm.query.metafunctions.count_if.description"></a><h6>
<a name="id595801"></a> <a name="id556811"></a>
<a href="count_if.html#fusion.algorithm.query.metafunctions.count_if.description">Description</a> <a href="count_if.html#fusion.algorithm.query.metafunctions.count_if.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
given the sequence and predicate types. given the sequence and predicate types.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.count_if.synopsis"></a><h6> <a name="fusion.algorithm.query.metafunctions.count_if.synopsis"></a><h6>
<a name="id595845"></a> <a name="id556853"></a>
<a href="count_if.html#fusion.algorithm.query.metafunctions.count_if.synopsis">Synopsis</a> <a href="count_if.html#fusion.algorithm.query.metafunctions.count_if.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="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Pred</span> <span class="keyword">typename</span> <span class="identifier">Pred</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
@ -48,7 +51,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id595967"></a><p class="title"><b>Table<EFBFBD>1.52.<2E>Parameters</b></p> <a name="id556972"></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>
@ -56,69 +59,50 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Pred</span></tt> <tt class="computeroutput"><span class="identifier">Pred</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A unary function object A unary function object
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.query.metafunctions.count_if.expression_semantics"></a><h6> <a name="fusion.algorithm.query.metafunctions.count_if.expression_semantics"></a><h6>
<a name="id596108"></a> <a name="id557111"></a>
<a href="count_if.html#fusion.algorithm.query.metafunctions.count_if.expression_semantics">Expression <a href="count_if.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">int</span></tt>. <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">int</span></tt>.
@ -129,28 +113,28 @@
always <tt class="computeroutput"><span class="keyword">int</span></tt>. always <tt class="computeroutput"><span class="keyword">int</span></tt>.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.count_if.complexity"></a><h6> <a name="fusion.algorithm.query.metafunctions.count_if.complexity"></a><h6>
<a name="id596264"></a> <a name="id557263"></a>
<a href="count_if.html#fusion.algorithm.query.metafunctions.count_if.complexity">Complexity</a> <a href="count_if.html#fusion.algorithm.query.metafunctions.count_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.count_if.header"></a><h6> <a name="fusion.algorithm.query.metafunctions.count_if.header"></a><h6>
<a name="id596294"></a> <a name="id557290"></a>
<a href="count_if.html#fusion.algorithm.query.metafunctions.count_if.header">Header</a> <a href="count_if.html#fusion.algorithm.query.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.query.metafunctions.find"></a><a href="find.html" title="find">find</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.query.metafunctions.find"></a><a href="find.html" title="find">find</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.query.metafunctions.find.description"></a><h6> <a name="fusion.algorithm.query.metafunctions.find.description"></a><h6>
<a name="id593561"></a> <a name="id554625"></a>
<a href="find.html#fusion.algorithm.query.metafunctions.find.description">Description</a> <a href="find.html#fusion.algorithm.query.metafunctions.find.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
given the sequence and search types. given the sequence and search types.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.find.synopsis"></a><h6> <a name="fusion.algorithm.query.metafunctions.find.synopsis"></a><h6>
<a name="id593605"></a> <a name="id554666"></a>
<a href="find.html#fusion.algorithm.query.metafunctions.find.synopsis">Synopsis</a> <a href="find.html#fusion.algorithm.query.metafunctions.find.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="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>
@ -48,7 +51,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id593724"></a><p class="title"><b>Table<EFBFBD>1.49.<2E>Parameters</b></p> <a name="id554782"></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>
@ -56,69 +59,50 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward Model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <tt class="computeroutput"><span class="identifier">T</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.query.metafunctions.find.expression_semantics"></a><h6> <a name="fusion.algorithm.query.metafunctions.find.expression_semantics"></a><h6>
<a name="id593864"></a> <a name="id554920"></a>
<a href="find.html#fusion.algorithm.query.metafunctions.find.expression_semantics">Expression <a href="find.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of the same iterator <span class="bold"><b>Return type</b></span>: A model of the same iterator
@ -131,28 +115,28 @@
if there is no such element. if there is no such element.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.find.complexity"></a><h6> <a name="fusion.algorithm.query.metafunctions.find.complexity"></a><h6>
<a name="id594067"></a> <a name="id555121"></a>
<a href="find.html#fusion.algorithm.query.metafunctions.find.complexity">Complexity</a> <a href="find.html#fusion.algorithm.query.metafunctions.find.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear, at most <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons. Linear, at most <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.find.header"></a><h6> <a name="fusion.algorithm.query.metafunctions.find.header"></a><h6>
<a name="id594151"></a> <a name="id555202"></a>
<a href="find.html#fusion.algorithm.query.metafunctions.find.header">Header</a> <a href="find.html#fusion.algorithm.query.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.query.metafunctions.find_if"></a><a href="find_if.html" title="find_if">find_if</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.query.metafunctions.find_if"></a><a href="find_if.html" title="find_if">find_if</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.query.metafunctions.find_if.description"></a><h6> <a name="fusion.algorithm.query.metafunctions.find_if.description"></a><h6>
<a name="id594343"></a> <a name="id555388"></a>
<a href="find_if.html#fusion.algorithm.query.metafunctions.find_if.description">Description</a> <a href="find_if.html#fusion.algorithm.query.metafunctions.find_if.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
given the sequence and predicate types. given the sequence and predicate types.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.find_if.synopsis"></a><h6> <a name="fusion.algorithm.query.metafunctions.find_if.synopsis"></a><h6>
<a name="id594387"></a> <a name="id555430"></a>
<a href="find_if.html#fusion.algorithm.query.metafunctions.find_if.synopsis">Synopsis</a> <a href="find_if.html#fusion.algorithm.query.metafunctions.find_if.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="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Pred</span> <span class="keyword">typename</span> <span class="identifier">Pred</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
@ -48,7 +51,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id594506"></a><p class="title"><b>Table<EFBFBD>1.50.<2E>Parameters</b></p> <a name="id555547"></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>
@ -56,70 +59,51 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Pred</span></tt> <tt class="computeroutput"><span class="identifier">Pred</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL A model of <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL
Lambda Expression</a> Lambda Expression</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's arguments Operation's arguments
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.query.metafunctions.find_if.expression_semantics"></a><h6> <a name="fusion.algorithm.query.metafunctions.find_if.expression_semantics"></a><h6>
<a name="id594655"></a> <a name="id555695"></a>
<a href="find_if.html#fusion.algorithm.query.metafunctions.find_if.expression_semantics">Expression <a href="find_if.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of the same iterator <span class="bold"><b>Return type</b></span>: A model of the same iterator
@ -132,28 +116,28 @@
to true. Returns <tt class="computeroutput"><a href="../../../sequence/intrinsic/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 <tt class="computeroutput"><a href="../../../sequence/intrinsic/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.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.find_if.complexity"></a><h6> <a name="fusion.algorithm.query.metafunctions.find_if.complexity"></a><h6>
<a name="id594861"></a> <a name="id555896"></a>
<a href="find_if.html#fusion.algorithm.query.metafunctions.find_if.complexity">Complexity</a> <a href="find_if.html#fusion.algorithm.query.metafunctions.find_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons. Linear. At most <tt class="computeroutput"><a href="../../../sequence/intrinsic/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.find_if.header"></a><h6> <a name="fusion.algorithm.query.metafunctions.find_if.header"></a><h6>
<a name="id594944"></a> <a name="id555976"></a>
<a href="find_if.html#fusion.algorithm.query.metafunctions.find_if.header">Header</a> <a href="find_if.html#fusion.algorithm.query.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,21 +23,24 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.query.metafunctions.none"></a><a href="none.html" title="none">none</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.query.metafunctions.none"></a><a href="none.html" title="none">none</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.query.metafunctions.none.description"></a><h6> <a name="fusion.algorithm.query.metafunctions.none.description"></a><h6>
<a name="id592832"></a> <a name="id553914"></a>
<a href="none.html#fusion.algorithm.query.metafunctions.none.description">Description</a> <a href="none.html#fusion.algorithm.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"><tt class="computeroutput"><span class="identifier">none</span></tt></a>.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.none.synopsis"></a><h6> <a name="fusion.algorithm.query.metafunctions.none.synopsis"></a><h6>
<a name="id592881"></a> <a name="id553961"></a>
<a href="none.html#fusion.algorithm.query.metafunctions.none.synopsis">Synopsis</a> <a href="none.html#fusion.algorithm.query.metafunctions.none.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="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>
@ -47,7 +50,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id593003"></a><p class="title"><b>Table<EFBFBD>1.48.<2E>Parameters</b></p> <a name="id554080"></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>
@ -55,71 +58,52 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">F</span></tt> <tt class="computeroutput"><span class="identifier">F</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of unary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function A model of unary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> Function Object</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.query.metafunctions.none.expression_semantics"></a><h6> <a name="fusion.algorithm.query.metafunctions.none.expression_semantics"></a><h6>
<a name="id593150"></a> <a name="id554226"></a>
<a href="none.html#fusion.algorithm.query.metafunctions.none.expression_semantics">Expression <a href="none.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>. <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>.
@ -134,28 +118,28 @@
The return type is always <tt class="computeroutput"><span class="keyword">bool</span></tt>. The return type is always <tt class="computeroutput"><span class="keyword">bool</span></tt>.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.none.complexity"></a><h6> <a name="fusion.algorithm.query.metafunctions.none.complexity"></a><h6>
<a name="id593339"></a> <a name="id554410"></a>
<a href="none.html#fusion.algorithm.query.metafunctions.none.complexity">Complexity</a> <a href="none.html#fusion.algorithm.query.metafunctions.none.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.query.metafunctions.none.header"></a><h6> <a name="fusion.algorithm.query.metafunctions.none.header"></a><h6>
<a name="id593369"></a> <a name="id554438"></a>
<a href="none.html#fusion.algorithm.query.metafunctions.none.header">Header</a> <a href="none.html#fusion.algorithm.query.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../algorithm.html" title="Algorithm"> <link rel="up" href="../algorithm.html" title="Algorithm">
<link rel="prev" href="query/metafunctions/count_if.html" title="count_if"> <link rel="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,8 +23,12 @@
<a accesskey="p" href="query/metafunctions/count_if.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithm.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="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../algorithm.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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation"></a><a href="transformation.html" title="Transformation">Transformation</a></h3></div></div></div> <div><div><h3 class="title">
<a name="fusion.algorithm.transformation"></a><a href="transformation.html" title="Transformation">Transformation</a>
</h3></div></div>
<div></div>
</div>
<div class="toc"><dl> <div class="toc"><dl>
<dt><span class="section"><a href="transformation/functions.html">Functions</a></span></dt> <dt><span class="section"><a href="transformation/functions.html">Functions</a></span></dt>
<dt><span class="section"><a href="transformation/metafunctions.html">Metafunctions</a></span></dt> <dt><span class="section"><a href="transformation/metafunctions.html">Metafunctions</a></span></dt>
@ -46,21 +50,21 @@
</p></td></tr> </p></td></tr>
</table></div> </table></div>
<a name="fusion.algorithm.transformation.header"></a><h4> <a name="fusion.algorithm.transformation.header"></a><h4>
<a name="id596506"></a> <a name="id557497"></a>
<a href="transformation.html#fusion.algorithm.transformation.header">Header</a> <a href="transformation.html#fusion.algorithm.transformation.header">Header</a>
</h4> </h4>
<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">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">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">include</span><span class="special">/</span><span class="identifier">transformation</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">include</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,8 +23,12 @@
<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="../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.functions"></a><a href="functions.html" title="Functions">Functions</a></h4></div></div></div> <div><div><h4 class="title">
<a name="fusion.algorithm.transformation.functions"></a><a href="functions.html" title="Functions">Functions</a>
</h4></div></div>
<div></div>
</div>
<div class="toc"><dl> <div class="toc"><dl>
<dt><span class="section"><a href="functions/filter.html">filter</a></span></dt> <dt><span class="section"><a href="functions/filter.html">filter</a></span></dt>
<dt><span class="section"><a href="functions/filter_if.html">filter_if</a></span></dt> <dt><span class="section"><a href="functions/filter_if.html">filter_if</a></span></dt>
@ -49,11 +53,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,27 +23,30 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.functions.clear"></a><a href="clear.html" title="clear">clear</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.functions.clear"></a><a href="clear.html" title="clear">clear</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.functions.clear.description"></a><h6> <a name="fusion.algorithm.transformation.functions.clear.description"></a><h6>
<a name="id606103"></a> <a name="id566884"></a>
<a href="clear.html#fusion.algorithm.transformation.functions.clear.description">Description</a> <a href="clear.html#fusion.algorithm.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"><tt class="computeroutput"><span class="identifier">clear</span></tt></a> returns an empty sequence.
</p> </p>
<a name="fusion.algorithm.transformation.functions.clear.synposis"></a><h6> <a name="fusion.algorithm.transformation.functions.clear.synposis"></a><h6>
<a name="id606152"></a> <a name="id566931"></a>
<a href="clear.html#fusion.algorithm.transformation.functions.clear.synposis">Synposis</a> <a href="clear.html#fusion.algorithm.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"><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>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id606309"></a><p class="title"><b>Table<EFBFBD>1.62.<2E>Parameters</b></p> <a name="id567084"></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>
@ -51,50 +54,37 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr></tbody> </tr></tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.functions.clear.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.functions.clear.expression_semantics"></a><h6>
<a name="id606413"></a> <a name="id567188"></a>
<a href="clear.html#fusion.algorithm.transformation.functions.clear.expression_semantics">Expression <a href="clear.html#fusion.algorithm.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"><tt class="computeroutput"><span class="identifier">clear</span></tt></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="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -106,35 +96,34 @@
with no elements. with no elements.
</p> </p>
<a name="fusion.algorithm.transformation.functions.clear.complexity"></a><h6> <a name="fusion.algorithm.transformation.functions.clear.complexity"></a><h6>
<a name="id606511"></a> <a name="id567282"></a>
<a href="clear.html#fusion.algorithm.transformation.functions.clear.complexity">Complexity</a> <a href="clear.html#fusion.algorithm.transformation.functions.clear.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.transformation.functions.clear.header"></a><h6> <a name="fusion.algorithm.transformation.functions.clear.header"></a><h6>
<a name="id606542"></a> <a name="id567311"></a>
<a href="clear.html#fusion.algorithm.transformation.functions.clear.header">Header</a> <a href="clear.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.transformation.functions.clear.example"></a><h6> <a name="fusion.algorithm.transformation.functions.clear.example"></a><h6>
<a name="id606712"></a> <a name="id567478"></a>
<a href="clear.html#fusion.algorithm.transformation.functions.clear.example">Example</a> <a href="clear.html#fusion.algorithm.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="../../../container/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="../../../container/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"><tt class="computeroutput"><span class="identifier">clear</span></tt></a><span class="special">(</span><a href="../../../container/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="../../../container/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.functions.erase"></a><a href="erase.html" title="erase">erase</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.functions.erase"></a><a href="erase.html" title="erase">erase</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.functions.erase.description"></a><h6> <a name="fusion.algorithm.transformation.functions.erase.description"></a><h6>
<a name="id606876"></a> <a name="id567635"></a>
<a href="erase.html#fusion.algorithm.transformation.functions.erase.description">Description</a> <a href="erase.html#fusion.algorithm.transformation.functions.erase.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
those at a specified iterator, or between two iterators. those at a specified iterator, or between two iterators.
</p> </p>
<a name="fusion.algorithm.transformation.functions.erase.synposis"></a><h6> <a name="fusion.algorithm.transformation.functions.erase.synposis"></a><h6>
<a name="id606910"></a> <a name="id567666"></a>
<a href="erase.html#fusion.algorithm.transformation.functions.erase.synposis">Synposis</a> <a href="erase.html#fusion.algorithm.transformation.functions.erase.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="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>
@ -54,7 +57,7 @@
<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="id607372"></a><p class="title"><b>Table<EFBFBD>1.63.<2E>Parameters</b></p> <a name="id568124"></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>
@ -62,91 +65,66 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameters Parameters
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">it1</span></tt> <tt class="computeroutput"><span class="identifier">it1</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../iterator/concepts/forward_iterator.html" title="Forward A model of <a href="../../../iterator/concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
Iterator</a> Iterator</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Iterator into <tt class="computeroutput"><span class="identifier">seq</span></tt> Iterator into <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">it2</span></tt> <tt class="computeroutput"><span class="identifier">it2</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../iterator/concepts/forward_iterator.html" title="Forward A model of <a href="../../../iterator/concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
Iterator</a> Iterator</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Iterator into <tt class="computeroutput"><span class="identifier">seq</span></tt> Iterator into <tt class="computeroutput"><span class="identifier">seq</span></tt>
after <tt class="computeroutput"><span class="identifier">it1</span></tt> after <tt class="computeroutput"><span class="identifier">it1</span></tt>
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.functions.erase.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.functions.erase.expression_semantics"></a><h6>
<a name="id607599"></a> <a name="id568351"></a>
<a href="erase.html#fusion.algorithm.transformation.functions.erase.expression_semantics">Expression <a href="erase.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -158,8 +136,7 @@
all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt> all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>
except the element at <tt class="computeroutput"><span class="identifier">pos</span></tt>. except the element at <tt class="computeroutput"><span class="identifier">pos</span></tt>.
</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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -172,37 +149,36 @@
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 [<tt class="computeroutput"><span class="identifier">first</span></tt>,<tt class="computeroutput"><span class="identifier">last</span></tt>).
</p> </p>
<a name="fusion.algorithm.transformation.functions.erase.complexity"></a><h6> <a name="fusion.algorithm.transformation.functions.erase.complexity"></a><h6>
<a name="id607858"></a> <a name="id568605"></a>
<a href="erase.html#fusion.algorithm.transformation.functions.erase.complexity">Complexity</a> <a href="erase.html#fusion.algorithm.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.algorithm.transformation.functions.erase.header"></a><h6> <a name="fusion.algorithm.transformation.functions.erase.header"></a><h6>
<a name="id607890"></a> <a name="id568633"></a>
<a href="erase.html#fusion.algorithm.transformation.functions.erase.header">Header</a> <a href="erase.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.transformation.functions.erase.example"></a><h6> <a name="fusion.algorithm.transformation.functions.erase.example"></a><h6>
<a name="id608060"></a> <a name="id568800"></a>
<a href="erase.html#fusion.algorithm.transformation.functions.erase.example">Example</a> <a href="erase.html#fusion.algorithm.transformation.functions.erase.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="keyword">const</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&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="../../../container/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="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="../../../iterator/functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../../sequence/intrinsic/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="../../../container/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"><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="../../../iterator/functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../../sequence/intrinsic/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="../../../container/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"><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="../../../iterator/functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../../sequence/intrinsic/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="../../../sequence/intrinsic/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="../../../container/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"><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="../../../iterator/functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../../sequence/intrinsic/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="../../../sequence/intrinsic/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="../../../container/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>
</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.functions.erase_key"></a><a href="erase_key.html" title="erase_key">erase_key</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.functions.erase_key"></a><a href="erase_key.html" title="erase_key">erase_key</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.functions.erase_key.description"></a><h6> <a name="fusion.algorithm.transformation.functions.erase_key.description"></a><h6>
<a name="id608514"></a> <a name="id569251"></a>
<a href="erase_key.html#fusion.algorithm.transformation.functions.erase_key.description">Description</a> <a href="erase_key.html#fusion.algorithm.transformation.functions.erase_key.description">Description</a>
</h6> </h6>
<p> <p>
@ -39,18 +43,17 @@
with a given key. with a given key.
</p> </p>
<a name="fusion.algorithm.transformation.functions.erase_key.synposis"></a><h6> <a name="fusion.algorithm.transformation.functions.erase_key.synposis"></a><h6>
<a name="id608577"></a> <a name="id569311"></a>
<a href="erase_key.html#fusion.algorithm.transformation.functions.erase_key.synposis">Synposis</a> <a href="erase_key.html#fusion.algorithm.transformation.functions.erase_key.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">Key</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Key</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> <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="id608750"></a><p class="title"><b>Table<EFBFBD>1.64.<2E>Parameters</b></p> <a name="id569481"></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>
@ -58,69 +61,50 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/associative_sequence.html" title="Associative A model of <a href="../../../sequence/concepts/associative_sequence.html" title="Associative
Sequence">Associative Sequence">Associative
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Key</span></tt> <tt class="computeroutput"><span class="identifier">Key</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
Key to erase Key to erase
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.functions.erase_key.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.functions.erase_key.expression_semantics"></a><h6>
<a name="id608891"></a> <a name="id569620"></a>
<a href="erase_key.html#fusion.algorithm.transformation.functions.erase_key.expression_semantics">Expression <a href="erase_key.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -133,35 +117,34 @@
except those with key <tt class="computeroutput"><span class="identifier">Key</span></tt>. except those with key <tt class="computeroutput"><span class="identifier">Key</span></tt>.
</p> </p>
<a name="fusion.algorithm.transformation.functions.erase_key.complexity"></a><h6> <a name="fusion.algorithm.transformation.functions.erase_key.complexity"></a><h6>
<a name="id609024"></a> <a name="id569749"></a>
<a href="erase_key.html#fusion.algorithm.transformation.functions.erase_key.complexity">Complexity</a> <a href="erase_key.html#fusion.algorithm.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.algorithm.transformation.functions.erase_key.header"></a><h6> <a name="fusion.algorithm.transformation.functions.erase_key.header"></a><h6>
<a name="id609054"></a> <a name="id569777"></a>
<a href="erase_key.html#fusion.algorithm.transformation.functions.erase_key.header">Header</a> <a href="erase_key.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.transformation.functions.erase_key.example"></a><h6> <a name="fusion.algorithm.transformation.functions.erase_key.example"></a><h6>
<a name="id609225"></a> <a name="id569944"></a>
<a href="erase_key.html#fusion.algorithm.transformation.functions.erase_key.example">Example</a> <a href="erase_key.html#fusion.algorithm.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="../../../container/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="../../../container/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"><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="../../../container/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="../../../container/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>
</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.functions.filter"></a><a href="filter.html" title="filter">filter</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.functions.filter"></a><a href="filter.html" title="filter">filter</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.functions.filter.description"></a><h6> <a name="fusion.algorithm.transformation.functions.filter.description"></a><h6>
<a name="id596707"></a> <a name="id557690"></a>
<a href="filter.html#fusion.algorithm.transformation.functions.filter.description">Description</a> <a href="filter.html#fusion.algorithm.transformation.functions.filter.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,18 +38,17 @@
the elements of a specified type. the elements of a specified type.
</p> </p>
<a name="fusion.algorithm.transformation.functions.filter.synopsis"></a><h6> <a name="fusion.algorithm.transformation.functions.filter.synopsis"></a><h6>
<a name="id596741"></a> <a name="id557721"></a>
<a href="filter.html#fusion.algorithm.transformation.functions.filter.synopsis">Synopsis</a> <a href="filter.html#fusion.algorithm.transformation.functions.filter.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">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"><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>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id596926"></a><p class="title"><b>Table<EFBFBD>1.53.<2E>Parameters</b></p> <a name="id557902"></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>
@ -53,69 +56,50 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <tt class="computeroutput"><span class="identifier">T</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
The type to retain The type to retain
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.functions.filter.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.functions.filter.expression_semantics"></a><h6>
<a name="id597064"></a> <a name="id558039"></a>
<a href="filter.html#fusion.algorithm.transformation.functions.filter.expression_semantics">Expression <a href="filter.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -129,36 +113,35 @@
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 <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>.
</p> </p>
<a name="fusion.algorithm.transformation.functions.filter.complexity"></a><h6> <a name="fusion.algorithm.transformation.functions.filter.complexity"></a><h6>
<a name="id597279"></a> <a name="id558250"></a>
<a href="filter.html#fusion.algorithm.transformation.functions.filter.complexity">Complexity</a> <a href="filter.html#fusion.algorithm.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.algorithm.transformation.functions.filter.header"></a><h6> <a name="fusion.algorithm.transformation.functions.filter.header"></a><h6>
<a name="id597311"></a> <a name="id558280"></a>
<a href="filter.html#fusion.algorithm.transformation.functions.filter.header">Header</a> <a href="filter.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.transformation.functions.filter.example"></a><h6> <a name="fusion.algorithm.transformation.functions.filter.example"></a><h6>
<a name="id597481"></a> <a name="id558447"></a>
<a href="filter.html#fusion.algorithm.transformation.functions.filter.example">Example</a> <a href="filter.html#fusion.algorithm.transformation.functions.filter.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="keyword">const</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&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="../../../container/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="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="../../../container/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"><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="../../../container/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>
</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.functions.filter_if"></a><a href="filter_if.html" title="filter_if">filter_if</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.functions.filter_if"></a><a href="filter_if.html" title="filter_if">filter_if</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.functions.filter_if.description"></a><h6> <a name="fusion.algorithm.transformation.functions.filter_if.description"></a><h6>
<a name="id597749"></a> <a name="id558709"></a>
<a href="filter_if.html#fusion.algorithm.transformation.functions.filter_if.description">Description</a> <a href="filter_if.html#fusion.algorithm.transformation.functions.filter_if.description">Description</a>
</h6> </h6>
<p> <p>
@ -35,18 +39,17 @@
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 <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>.
</p> </p>
<a name="fusion.algorithm.transformation.functions.filter_if.synopsis"></a><h6> <a name="fusion.algorithm.transformation.functions.filter_if.synopsis"></a><h6>
<a name="id597840"></a> <a name="id558796"></a>
<a href="filter_if.html#fusion.algorithm.transformation.functions.filter_if.synopsis">Synopsis</a> <a href="filter_if.html#fusion.algorithm.transformation.functions.filter_if.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">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"><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>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id598027"></a><p class="title"><b>Table<EFBFBD>1.54.<2E>Parameters</b></p> <a name="id558979"></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>
@ -54,70 +57,51 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Pred</span></tt> <tt class="computeroutput"><span class="identifier">Pred</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL A unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL
Lambda Expression</a> Lambda Expression</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
The predicate to filter by The predicate to filter by
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.functions.filter_if.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.functions.filter_if.expression_semantics"></a><h6>
<a name="id598175"></a> <a name="id559127"></a>
<a href="filter_if.html#fusion.algorithm.transformation.functions.filter_if.expression_semantics">Expression <a href="filter_if.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -132,36 +116,35 @@
is the same as in the original sequence. is the same as in the original sequence.
</p> </p>
<a name="fusion.algorithm.transformation.functions.filter_if.complexity"></a><h6> <a name="fusion.algorithm.transformation.functions.filter_if.complexity"></a><h6>
<a name="id598342"></a> <a name="id559288"></a>
<a href="filter_if.html#fusion.algorithm.transformation.functions.filter_if.complexity">Complexity</a> <a href="filter_if.html#fusion.algorithm.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.algorithm.transformation.functions.filter_if.header"></a><h6> <a name="fusion.algorithm.transformation.functions.filter_if.header"></a><h6>
<a name="id598373"></a> <a name="id559316"></a>
<a href="filter_if.html#fusion.algorithm.transformation.functions.filter_if.header">Header</a> <a href="filter_if.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.transformation.functions.filter_if.example"></a><h6> <a name="fusion.algorithm.transformation.functions.filter_if.example"></a><h6>
<a name="id598543"></a> <a name="id559484"></a>
<a href="filter_if.html#fusion.algorithm.transformation.functions.filter_if.example">Example</a> <a href="filter_if.html#fusion.algorithm.transformation.functions.filter_if.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="keyword">const</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&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="../../../container/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="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="../../../container/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"><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="../../../container/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>
</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.functions.insert"></a><a href="insert.html" title="insert">insert</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.functions.insert"></a><a href="insert.html" title="insert">insert</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.functions.insert.description"></a><h6> <a name="fusion.algorithm.transformation.functions.insert.description"></a><h6>
<a name="id609433"></a> <a name="id570144"></a>
<a href="insert.html#fusion.algorithm.transformation.functions.insert.description">Description</a> <a href="insert.html#fusion.algorithm.transformation.functions.insert.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
element inserted the position described by a given iterator. element inserted the position described by a given iterator.
</p> </p>
<a name="fusion.algorithm.transformation.functions.insert.synposis"></a><h6> <a name="fusion.algorithm.transformation.functions.insert.synposis"></a><h6>
<a name="id609466"></a> <a name="id570175"></a>
<a href="insert.html#fusion.algorithm.transformation.functions.insert.synposis">Synposis</a> <a href="insert.html#fusion.algorithm.transformation.functions.insert.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="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</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">Pos</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>
@ -46,7 +49,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="id609657"></a><p class="title"><b>Table<EFBFBD>1.65.<2E>Parameters</b></p> <a name="id570363"></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>
@ -54,88 +57,63 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">pos</span></tt> <tt class="computeroutput"><span class="identifier">pos</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../iterator/concepts/forward_iterator.html" title="Forward A model of <a href="../../../iterator/concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
Iterator</a> Iterator</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
The position to insert at The position to insert at
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">t</span></tt> <tt class="computeroutput"><span class="identifier">t</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
The value to insert The value to insert
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.functions.insert.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.functions.insert.expression_semantics"></a><h6>
<a name="id609842"></a> <a name="id570546"></a>
<a href="insert.html#fusion.algorithm.transformation.functions.insert.expression_semantics">Expression <a href="insert.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -150,36 +128,35 @@
<tt class="computeroutput"><span class="identifier">pos</span></tt>. <tt class="computeroutput"><span class="identifier">pos</span></tt>.
</p> </p>
<a name="fusion.algorithm.transformation.functions.insert.complexity"></a><h6> <a name="fusion.algorithm.transformation.functions.insert.complexity"></a><h6>
<a name="id609998"></a> <a name="id570697"></a>
<a href="insert.html#fusion.algorithm.transformation.functions.insert.complexity">Complexity</a> <a href="insert.html#fusion.algorithm.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.algorithm.transformation.functions.insert.header"></a><h6> <a name="fusion.algorithm.transformation.functions.insert.header"></a><h6>
<a name="id610030"></a> <a name="id570726"></a>
<a href="insert.html#fusion.algorithm.transformation.functions.insert.header">Header</a> <a href="insert.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.transformation.functions.insert.example"></a><h6> <a name="fusion.algorithm.transformation.functions.insert.example"></a><h6>
<a name="id610200"></a> <a name="id570892"></a>
<a href="insert.html#fusion.algorithm.transformation.functions.insert.example">Example</a> <a href="insert.html#fusion.algorithm.transformation.functions.insert.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="keyword">const</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&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="../../../container/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="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="../../../iterator/functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../../sequence/intrinsic/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="../../../container/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"><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="../../../iterator/functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../../sequence/intrinsic/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="../../../container/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>
</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.functions.insert_range"></a><a href="insert_range.html" title="insert_range">insert_range</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.functions.insert_range"></a><a href="insert_range.html" title="insert_range">insert_range</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.functions.insert_range.description"></a><h6> <a name="fusion.algorithm.transformation.functions.insert_range.description"></a><h6>
<a name="id610494"></a> <a name="id571178"></a>
<a href="insert_range.html#fusion.algorithm.transformation.functions.insert_range.description">Description</a> <a href="insert_range.html#fusion.algorithm.transformation.functions.insert_range.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
iterator. iterator.
</p> </p>
<a name="fusion.algorithm.transformation.functions.insert_range.synposis"></a><h6> <a name="fusion.algorithm.transformation.functions.insert_range.synposis"></a><h6>
<a name="id610527"></a> <a name="id571208"></a>
<a href="insert_range.html#fusion.algorithm.transformation.functions.insert_range.synposis">Synposis</a> <a href="insert_range.html#fusion.algorithm.transformation.functions.insert_range.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="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</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">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>
@ -47,7 +50,7 @@
<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="id610800"></a><p class="title"><b>Table<EFBFBD>1.66.<2E>Parameters</b></p> <a name="id571477"></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>
@ -55,90 +58,65 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">pos</span></tt> <tt class="computeroutput"><span class="identifier">pos</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../iterator/concepts/forward_iterator.html" title="Forward A model of <a href="../../../iterator/concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
Iterator</a> Iterator</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
The position to insert at The position to insert at
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">range</span></tt> <tt class="computeroutput"><span class="identifier">range</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Range to insert Range to insert
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.functions.insert_range.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.functions.insert_range.expression_semantics"></a><h6>
<a name="id610994"></a> <a name="id571670"></a>
<a href="insert_range.html#fusion.algorithm.transformation.functions.insert_range.expression_semantics">Expression <a href="insert_range.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -153,36 +131,35 @@
All elements retaining their ordering from the orignal sequences. All elements retaining their ordering from the orignal sequences.
</p> </p>
<a name="fusion.algorithm.transformation.functions.insert_range.complexity"></a><h6> <a name="fusion.algorithm.transformation.functions.insert_range.complexity"></a><h6>
<a name="id611154"></a> <a name="id571824"></a>
<a href="insert_range.html#fusion.algorithm.transformation.functions.insert_range.complexity">Complexity</a> <a href="insert_range.html#fusion.algorithm.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.algorithm.transformation.functions.insert_range.header"></a><h6> <a name="fusion.algorithm.transformation.functions.insert_range.header"></a><h6>
<a name="id611185"></a> <a name="id571852"></a>
<a href="insert_range.html#fusion.algorithm.transformation.functions.insert_range.header">Header</a> <a href="insert_range.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.transformation.functions.insert_range.example"></a><h6> <a name="fusion.algorithm.transformation.functions.insert_range.example"></a><h6>
<a name="id611356"></a> <a name="id572019"></a>
<a href="insert_range.html#fusion.algorithm.transformation.functions.insert_range.example">Example</a> <a href="insert_range.html#fusion.algorithm.transformation.functions.insert_range.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="keyword">const</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&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="../../../container/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="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="../../../iterator/functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../../sequence/intrinsic/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="../../../container/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="../../../container/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"><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="../../../iterator/functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../../sequence/intrinsic/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="../../../container/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="../../../container/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>
</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.functions.join"></a><a href="join.html" title="join">join</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.functions.join"></a><a href="join.html" title="join">join</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.functions.join.description"></a><h6> <a name="fusion.algorithm.transformation.functions.join.description"></a><h6>
<a name="id611687"></a> <a name="id572345"></a>
<a href="join.html#fusion.algorithm.transformation.functions.join.description">Description</a> <a href="join.html#fusion.algorithm.transformation.functions.join.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,17 +38,16 @@
first followed by the elements of the second. first followed by the elements of the second.
</p> </p>
<a name="fusion.algorithm.transformation.functions.join.synopsis"></a><h6> <a name="fusion.algorithm.transformation.functions.join.synopsis"></a><h6>
<a name="id611720"></a> <a name="id572375"></a>
<a href="join.html#fusion.algorithm.transformation.functions.join.synopsis">Synopsis</a> <a href="join.html#fusion.algorithm.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"><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>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id611928"></a><p class="title"><b>Table<EFBFBD>1.67.<2E>Parameters</b></p> <a name="id572579"></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>
@ -52,71 +55,52 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">lhs</span></tt> <tt class="computeroutput"><span class="identifier">lhs</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">rhs</span></tt> <tt class="computeroutput"><span class="identifier">rhs</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.functions.join.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.functions.join.expression_semantics"></a><h6>
<a name="id612075"></a> <a name="id572726"></a>
<a href="join.html#fusion.algorithm.transformation.functions.join.expression_semantics">Expression <a href="join.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -130,37 +114,36 @@
The order of th elements is preserved. The order of th elements is preserved.
</p> </p>
<a name="fusion.algorithm.transformation.functions.join.complexity"></a><h6> <a name="fusion.algorithm.transformation.functions.join.complexity"></a><h6>
<a name="id612208"></a> <a name="id572854"></a>
<a href="join.html#fusion.algorithm.transformation.functions.join.complexity">Complexity</a> <a href="join.html#fusion.algorithm.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.algorithm.transformation.functions.join.header"></a><h6> <a name="fusion.algorithm.transformation.functions.join.header"></a><h6>
<a name="id612240"></a> <a name="id572884"></a>
<a href="join.html#fusion.algorithm.transformation.functions.join.header">Header</a> <a href="join.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.transformation.functions.join.example"></a><h6> <a name="fusion.algorithm.transformation.functions.join.example"></a><h6>
<a name="id612410"></a> <a name="id573050"></a>
<a href="join.html#fusion.algorithm.transformation.functions.join.example">Example</a> <a href="join.html#fusion.algorithm.transformation.functions.join.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><a href="../../../container/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="../../../container/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="../../../container/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="../../../container/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>
<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="../../../container/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"><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="../../../container/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>
</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,27 +23,30 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.functions.pop_back"></a><a href="pop_back.html" title="pop_back">pop_back</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.functions.pop_back"></a><a href="pop_back.html" title="pop_back">pop_back</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.functions.pop_back.description"></a><h6> <a name="fusion.algorithm.transformation.functions.pop_back.description"></a><h6>
<a name="id614031"></a> <a name="id574644"></a>
<a href="pop_back.html#fusion.algorithm.transformation.functions.pop_back.description">Description</a> <a href="pop_back.html#fusion.algorithm.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.algorithm.transformation.functions.pop_back.synopsis"></a><h6> <a name="fusion.algorithm.transformation.functions.pop_back.synopsis"></a><h6>
<a name="id614064"></a> <a name="id574674"></a>
<a href="pop_back.html#fusion.algorithm.transformation.functions.pop_back.synopsis">Synopsis</a> <a href="pop_back.html#fusion.algorithm.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"><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>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id614222"></a><p class="title"><b>Table<EFBFBD>1.69.<2E>Parameters</b></p> <a name="id574828"></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>
@ -51,50 +54,37 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr></tbody> </tr></tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.functions.pop_back.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.functions.pop_back.expression_semantics"></a><h6>
<a name="id614324"></a> <a name="id574930"></a>
<a href="pop_back.html#fusion.algorithm.transformation.functions.pop_back.expression_semantics">Expression <a href="pop_back.html#fusion.algorithm.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"><tt class="computeroutput"><span class="identifier">pop_back</span></tt></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="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -108,35 +98,34 @@
same order as they were in <tt class="computeroutput"><span class="identifier">seq</span></tt>. same order as they were in <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithm.transformation.functions.pop_back.complexity"></a><h6> <a name="fusion.algorithm.transformation.functions.pop_back.complexity"></a><h6>
<a name="id614446"></a> <a name="id575047"></a>
<a href="pop_back.html#fusion.algorithm.transformation.functions.pop_back.complexity">Complexity</a> <a href="pop_back.html#fusion.algorithm.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.algorithm.transformation.functions.pop_back.header"></a><h6> <a name="fusion.algorithm.transformation.functions.pop_back.header"></a><h6>
<a name="id614479"></a> <a name="id575077"></a>
<a href="pop_back.html#fusion.algorithm.transformation.functions.pop_back.header">Header</a> <a href="pop_back.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.transformation.functions.pop_back.example"></a><h6> <a name="fusion.algorithm.transformation.functions.pop_back.example"></a><h6>
<a name="id614650"></a> <a name="id575245"></a>
<a href="pop_back.html#fusion.algorithm.transformation.functions.pop_back.example">Example</a> <a href="pop_back.html#fusion.algorithm.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="../../../container/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="../../../container/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="../../../container/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="../../../container/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>
</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,27 +23,30 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.functions.pop_front"></a><a href="pop_front.html" title="pop_front">pop_front</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.functions.pop_front"></a><a href="pop_front.html" title="pop_front">pop_front</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.functions.pop_front.description"></a><h6> <a name="fusion.algorithm.transformation.functions.pop_front.description"></a><h6>
<a name="id614824"></a> <a name="id575413"></a>
<a href="pop_front.html#fusion.algorithm.transformation.functions.pop_front.description">Description</a> <a href="pop_front.html#fusion.algorithm.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.algorithm.transformation.functions.pop_front.synopsis"></a><h6> <a name="fusion.algorithm.transformation.functions.pop_front.synopsis"></a><h6>
<a name="id614856"></a> <a name="id575443"></a>
<a href="pop_front.html#fusion.algorithm.transformation.functions.pop_front.synopsis">Synopsis</a> <a href="pop_front.html#fusion.algorithm.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"><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>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id615014"></a><p class="title"><b>Table<EFBFBD>1.70.<2E>Parameters</b></p> <a name="id575597"></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>
@ -51,50 +54,37 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr></tbody> </tr></tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.functions.pop_front.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.functions.pop_front.expression_semantics"></a><h6>
<a name="id615118"></a> <a name="id575701"></a>
<a href="pop_front.html#fusion.algorithm.transformation.functions.pop_front.expression_semantics">Expression <a href="pop_front.html#fusion.algorithm.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"><tt class="computeroutput"><span class="identifier">pop_front</span></tt></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="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -108,35 +98,34 @@
same order as they were in <tt class="computeroutput"><span class="identifier">seq</span></tt>. same order as they were in <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithm.transformation.functions.pop_front.complexity"></a><h6> <a name="fusion.algorithm.transformation.functions.pop_front.complexity"></a><h6>
<a name="id615242"></a> <a name="id575820"></a>
<a href="pop_front.html#fusion.algorithm.transformation.functions.pop_front.complexity">Complexity</a> <a href="pop_front.html#fusion.algorithm.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.algorithm.transformation.functions.pop_front.header"></a><h6> <a name="fusion.algorithm.transformation.functions.pop_front.header"></a><h6>
<a name="id615272"></a> <a name="id575848"></a>
<a href="pop_front.html#fusion.algorithm.transformation.functions.pop_front.header">Header</a> <a href="pop_front.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.transformation.functions.pop_front.example"></a><h6> <a name="fusion.algorithm.transformation.functions.pop_front.example"></a><h6>
<a name="id615443"></a> <a name="id576014"></a>
<a href="pop_front.html#fusion.algorithm.transformation.functions.pop_front.example">Example</a> <a href="pop_front.html#fusion.algorithm.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="../../../container/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="../../../container/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"><tt class="computeroutput"><span class="identifier">pop_front</span></tt></a><span class="special">(</span><a href="../../../container/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="../../../container/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>
</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,21 +23,24 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.functions.push_back"></a><a href="push_back.html" title="push_back">push_back</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.functions.push_back"></a><a href="push_back.html" title="push_back">push_back</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.functions.push_back.description"></a><h6> <a name="fusion.algorithm.transformation.functions.push_back.description"></a><h6>
<a name="id615625"></a> <a name="id576190"></a>
<a href="push_back.html#fusion.algorithm.transformation.functions.push_back.description">Description</a> <a href="push_back.html#fusion.algorithm.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.algorithm.transformation.functions.push_back.synopsis"></a><h6> <a name="fusion.algorithm.transformation.functions.push_back.synopsis"></a><h6>
<a name="id615658"></a> <a name="id576220"></a>
<a href="push_back.html#fusion.algorithm.transformation.functions.push_back.synopsis">Synopsis</a> <a href="push_back.html#fusion.algorithm.transformation.functions.push_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="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>
@ -45,7 +48,7 @@
<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="id615867"></a><p class="title"><b>Table<EFBFBD>1.71.<2E>Parameters</b></p> <a name="id576426"></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>
@ -53,69 +56,50 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">t</span></tt> <tt class="computeroutput"><span class="identifier">t</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
The value to add to the end The value to add to the end
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.functions.push_back.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.functions.push_back.expression_semantics"></a><h6>
<a name="id616008"></a> <a name="id576567"></a>
<a href="push_back.html#fusion.algorithm.transformation.functions.push_back.expression_semantics">Expression <a href="push_back.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -129,35 +113,34 @@
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 <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithm.transformation.functions.push_back.complexity"></a><h6> <a name="fusion.algorithm.transformation.functions.push_back.complexity"></a><h6>
<a name="id616154"></a> <a name="id576708"></a>
<a href="push_back.html#fusion.algorithm.transformation.functions.push_back.complexity">Complexity</a> <a href="push_back.html#fusion.algorithm.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.algorithm.transformation.functions.push_back.header"></a><h6> <a name="fusion.algorithm.transformation.functions.push_back.header"></a><h6>
<a name="id616184"></a> <a name="id576737"></a>
<a href="push_back.html#fusion.algorithm.transformation.functions.push_back.header">Header</a> <a href="push_back.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.transformation.functions.push_back.example"></a><h6> <a name="fusion.algorithm.transformation.functions.push_back.example"></a><h6>
<a name="id616355"></a> <a name="id576904"></a>
<a href="push_back.html#fusion.algorithm.transformation.functions.push_back.example">Example</a> <a href="push_back.html#fusion.algorithm.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="../../../container/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="../../../container/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"><tt class="computeroutput"><span class="identifier">push_back</span></tt></a><span class="special">(</span><a href="../../../container/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="../../../container/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>
</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,21 +23,24 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.functions.push_front"></a><a href="push_front.html" title="push_front">push_front</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.functions.push_front"></a><a href="push_front.html" title="push_front">push_front</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.functions.push_front.description"></a><h6> <a name="fusion.algorithm.transformation.functions.push_front.description"></a><h6>
<a name="id616570"></a> <a name="id577112"></a>
<a href="push_front.html#fusion.algorithm.transformation.functions.push_front.description">Description</a> <a href="push_front.html#fusion.algorithm.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.algorithm.transformation.functions.push_front.synopsis"></a><h6> <a name="fusion.algorithm.transformation.functions.push_front.synopsis"></a><h6>
<a name="id616603"></a> <a name="id577142"></a>
<a href="push_front.html#fusion.algorithm.transformation.functions.push_front.synopsis">Synopsis</a> <a href="push_front.html#fusion.algorithm.transformation.functions.push_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="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>
@ -45,7 +48,7 @@
<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="id616813"></a><p class="title"><b>Table<EFBFBD>1.72.<2E>Parameters</b></p> <a name="id577349"></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>
@ -53,69 +56,50 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">t</span></tt> <tt class="computeroutput"><span class="identifier">t</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
The value to add to the beginning The value to add to the beginning
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.functions.push_front.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.functions.push_front.expression_semantics"></a><h6>
<a name="id616953"></a> <a name="id577488"></a>
<a href="push_front.html#fusion.algorithm.transformation.functions.push_front.expression_semantics">Expression <a href="push_front.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -130,35 +114,34 @@
<tt class="computeroutput"><span class="identifier">seq</span></tt>. <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithm.transformation.functions.push_front.complexity"></a><h6> <a name="fusion.algorithm.transformation.functions.push_front.complexity"></a><h6>
<a name="id617098"></a> <a name="id577629"></a>
<a href="push_front.html#fusion.algorithm.transformation.functions.push_front.complexity">Complexity</a> <a href="push_front.html#fusion.algorithm.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.algorithm.transformation.functions.push_front.header"></a><h6> <a name="fusion.algorithm.transformation.functions.push_front.header"></a><h6>
<a name="id617129"></a> <a name="id577657"></a>
<a href="push_front.html#fusion.algorithm.transformation.functions.push_front.header">Header</a> <a href="push_front.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.transformation.functions.push_front.example"></a><h6> <a name="fusion.algorithm.transformation.functions.push_front.example"></a><h6>
<a name="id617300"></a> <a name="id577824"></a>
<a href="push_front.html#fusion.algorithm.transformation.functions.push_front.example">Example</a> <a href="push_front.html#fusion.algorithm.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="../../../container/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="../../../container/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"><tt class="computeroutput"><span class="identifier">push_front</span></tt></a><span class="special">(</span><a href="../../../container/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="../../../container/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>
</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.functions.remove"></a><a href="remove.html" title="remove">remove</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.functions.remove"></a><a href="remove.html" title="remove">remove</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.functions.remove.description"></a><h6> <a name="fusion.algorithm.transformation.functions.remove.description"></a><h6>
<a name="id603228"></a> <a name="id564084"></a>
<a href="remove.html#fusion.algorithm.transformation.functions.remove.description">Description</a> <a href="remove.html#fusion.algorithm.transformation.functions.remove.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,18 +38,17 @@
except those of a given type. except those of a given type.
</p> </p>
<a name="fusion.algorithm.transformation.functions.remove.synopsis"></a><h6> <a name="fusion.algorithm.transformation.functions.remove.synopsis"></a><h6>
<a name="id603261"></a> <a name="id564115"></a>
<a href="remove.html#fusion.algorithm.transformation.functions.remove.synopsis">Synopsis</a> <a href="remove.html#fusion.algorithm.transformation.functions.remove.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">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"><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>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id603447"></a><p class="title"><b>Table<EFBFBD>1.59.<2E>Parameters</b></p> <a name="id564298"></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>
@ -53,69 +56,50 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <tt class="computeroutput"><span class="identifier">T</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
Type to remove Type to remove
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.functions.remove.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.functions.remove.expression_semantics"></a><h6>
<a name="id603585"></a> <a name="id564434"></a>
<a href="remove.html#fusion.algorithm.transformation.functions.remove.expression_semantics">Expression <a href="remove.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -129,36 +113,35 @@
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 <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>.
</p> </p>
<a name="fusion.algorithm.transformation.functions.remove.complexity"></a><h6> <a name="fusion.algorithm.transformation.functions.remove.complexity"></a><h6>
<a name="id603802"></a> <a name="id564647"></a>
<a href="remove.html#fusion.algorithm.transformation.functions.remove.complexity">Complexity</a> <a href="remove.html#fusion.algorithm.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.algorithm.transformation.functions.remove.header"></a><h6> <a name="fusion.algorithm.transformation.functions.remove.header"></a><h6>
<a name="id603834"></a> <a name="id564677"></a>
<a href="remove.html#fusion.algorithm.transformation.functions.remove.header">Header</a> <a href="remove.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.transformation.functions.remove.example"></a><h6> <a name="fusion.algorithm.transformation.functions.remove.example"></a><h6>
<a name="id604004"></a> <a name="id564843"></a>
<a href="remove.html#fusion.algorithm.transformation.functions.remove.example">Example</a> <a href="remove.html#fusion.algorithm.transformation.functions.remove.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="keyword">const</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&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="../../../container/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="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="../../../container/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"><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="../../../container/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>
</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.functions.remove_if"></a><a href="remove_if.html" title="remove_if">remove_if</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.functions.remove_if"></a><a href="remove_if.html" title="remove_if">remove_if</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.functions.remove_if.description"></a><h6> <a name="fusion.algorithm.transformation.functions.remove_if.description"></a><h6>
<a name="id604224"></a> <a name="id565058"></a>
<a href="remove_if.html#fusion.algorithm.transformation.functions.remove_if.description">Description</a> <a href="remove_if.html#fusion.algorithm.transformation.functions.remove_if.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,18 +38,17 @@
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 <tt class="computeroutput"><span class="keyword">true</span></tt>.
</p> </p>
<a name="fusion.algorithm.transformation.functions.remove_if.synopsis"></a><h6> <a name="fusion.algorithm.transformation.functions.remove_if.synopsis"></a><h6>
<a name="id604270"></a> <a name="id565101"></a>
<a href="remove_if.html#fusion.algorithm.transformation.functions.remove_if.synopsis">Synopsis</a> <a href="remove_if.html#fusion.algorithm.transformation.functions.remove_if.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">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"><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>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id604456"></a><p class="title"><b>Table<EFBFBD>1.60.<2E>Parameters</b></p> <a name="id565283"></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>
@ -53,70 +56,51 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Pred</span></tt> <tt class="computeroutput"><span class="identifier">Pred</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL A model of unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL
Lambda Expression</a> Lambda Expression</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Removal predicate Removal predicate
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.functions.remove_if.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.functions.remove_if.expression_semantics"></a><h6>
<a name="id604604"></a> <a name="id565430"></a>
<a href="remove_if.html#fusion.algorithm.transformation.functions.remove_if.expression_semantics">Expression <a href="remove_if.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -131,36 +115,35 @@
<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></tt>.
</p> </p>
<a name="fusion.algorithm.transformation.functions.remove_if.complexity"></a><h6> <a name="fusion.algorithm.transformation.functions.remove_if.complexity"></a><h6>
<a name="id604854"></a> <a name="id565675"></a>
<a href="remove_if.html#fusion.algorithm.transformation.functions.remove_if.complexity">Complexity</a> <a href="remove_if.html#fusion.algorithm.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.algorithm.transformation.functions.remove_if.header"></a><h6> <a name="fusion.algorithm.transformation.functions.remove_if.header"></a><h6>
<a name="id604885"></a> <a name="id565703"></a>
<a href="remove_if.html#fusion.algorithm.transformation.functions.remove_if.header">Header</a> <a href="remove_if.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.transformation.functions.remove_if.example"></a><h6> <a name="fusion.algorithm.transformation.functions.remove_if.example"></a><h6>
<a name="id605056"></a> <a name="id565870"></a>
<a href="remove_if.html#fusion.algorithm.transformation.functions.remove_if.example">Example</a> <a href="remove_if.html#fusion.algorithm.transformation.functions.remove_if.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="keyword">const</span> <a href="../../../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&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="../../../container/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="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="../../../container/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"><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="../../../container/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>
</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.functions.replace"></a><a href="replace.html" title="replace">replace</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.functions.replace"></a><a href="replace.html" title="replace">replace</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.functions.replace.description"></a><h6> <a name="fusion.algorithm.transformation.functions.replace.description"></a><h6>
<a name="id600893"></a> <a name="id561799"></a>
<a href="replace.html#fusion.algorithm.transformation.functions.replace.description">Description</a> <a href="replace.html#fusion.algorithm.transformation.functions.replace.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
a new value. a new value.
</p> </p>
<a name="fusion.algorithm.transformation.functions.replace.synopsis"></a><h6> <a name="fusion.algorithm.transformation.functions.replace.synopsis"></a><h6>
<a name="id600926"></a> <a name="id561830"></a>
<a href="replace.html#fusion.algorithm.transformation.functions.replace.synopsis">Synopsis</a> <a href="replace.html#fusion.algorithm.transformation.functions.replace.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="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>
@ -46,7 +49,7 @@
<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="id601171"></a><p class="title"><b>Table<EFBFBD>1.57.<2E>Parameters</b></p> <a name="id562071"></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>
@ -54,31 +57,22 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/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>, <tt class="computeroutput"><span class="identifier">e</span> <span class="special">==</span> <span class="identifier">old_value</span></tt>
@ -86,58 +80,42 @@
for each element <tt class="computeroutput"><span class="identifier">e</span></tt> for each element <tt class="computeroutput"><span class="identifier">e</span></tt>
in <tt class="computeroutput"><span class="identifier">seq</span></tt> with type in <tt class="computeroutput"><span class="identifier">seq</span></tt> with type
convertible to <tt class="computeroutput"><span class="identifier">T</span></tt> convertible to <tt class="computeroutput"><span class="identifier">T</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">old_value</span></tt> <tt class="computeroutput"><span class="identifier">old_value</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
Value to replace Value to replace
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">new_value</span></tt> <tt class="computeroutput"><span class="identifier">new_value</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
Replacement value Replacement value
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.functions.replace.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.functions.replace.expression_semantics"></a><h6>
<a name="id601419"></a> <a name="id562318"></a>
<a href="replace.html#fusion.algorithm.transformation.functions.replace.expression_semantics">Expression <a href="replace.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -151,35 +129,34 @@
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 <tt class="computeroutput"><span class="identifier">old_value</span></tt>.
</p> </p>
<a name="fusion.algorithm.transformation.functions.replace.complexity"></a><h6> <a name="fusion.algorithm.transformation.functions.replace.complexity"></a><h6>
<a name="id601576"></a> <a name="id562472"></a>
<a href="replace.html#fusion.algorithm.transformation.functions.replace.complexity">Complexity</a> <a href="replace.html#fusion.algorithm.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.algorithm.transformation.functions.replace.header"></a><h6> <a name="fusion.algorithm.transformation.functions.replace.header"></a><h6>
<a name="id601608"></a> <a name="id562502"></a>
<a href="replace.html#fusion.algorithm.transformation.functions.replace.header">Header</a> <a href="replace.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.transformation.functions.replace.example"></a><h6> <a name="fusion.algorithm.transformation.functions.replace.example"></a><h6>
<a name="id601779"></a> <a name="id562668"></a>
<a href="replace.html#fusion.algorithm.transformation.functions.replace.example">Example</a> <a href="replace.html#fusion.algorithm.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="../../../container/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="../../../container/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"><tt class="computeroutput"><span class="identifier">replace</span></tt></a><span class="special">(</span><a href="../../../container/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="../../../container/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>
</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.functions.replace_if"></a><a href="replace_if.html" title="replace_if">replace_if</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.functions.replace_if"></a><a href="replace_if.html" title="replace_if">replace_if</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.functions.replace_if.description"></a><h6> <a name="fusion.algorithm.transformation.functions.replace_if.description"></a><h6>
<a name="id601977"></a> <a name="id562860"></a>
<a href="replace_if.html#fusion.algorithm.transformation.functions.replace_if.description">Description</a> <a href="replace_if.html#fusion.algorithm.transformation.functions.replace_if.description">Description</a>
</h6> </h6>
<p> <p>
@ -35,11 +39,10 @@
replaced with a new value. replaced with a new value.
</p> </p>
<a name="fusion.algorithm.transformation.functions.replace_if.synopsis"></a><h6> <a name="fusion.algorithm.transformation.functions.replace_if.synopsis"></a><h6>
<a name="id602022"></a> <a name="id562902"></a>
<a href="replace_if.html#fusion.algorithm.transformation.functions.replace_if.synopsis">Synopsis</a> <a href="replace_if.html#fusion.algorithm.transformation.functions.replace_if.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="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>
@ -47,7 +50,7 @@
<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="id602282"></a><p class="title"><b>Table<EFBFBD>1.58.<2E>Parameters</b></p> <a name="id563158"></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>
@ -55,88 +58,63 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <tt class="computeroutput"><span class="identifier">f</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<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 <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
to <tt class="computeroutput"><span class="keyword">bool</span></tt>, for each to <tt class="computeroutput"><span class="keyword">bool</span></tt>, for each
element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt> element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">new_value</span></tt> <tt class="computeroutput"><span class="identifier">new_value</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
Replacement value Replacement value
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.functions.replace_if.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.functions.replace_if.expression_semantics"></a><h6>
<a name="id602521"></a> <a name="id563396"></a>
<a href="replace_if.html#fusion.algorithm.transformation.functions.replace_if.expression_semantics">Expression <a href="replace_if.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -151,26 +129,24 @@
evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt>. evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt>.
</p> </p>
<a name="fusion.algorithm.transformation.functions.replace_if.complexity"></a><h6> <a name="fusion.algorithm.transformation.functions.replace_if.complexity"></a><h6>
<a name="id602690"></a> <a name="id563560"></a>
<a href="replace_if.html#fusion.algorithm.transformation.functions.replace_if.complexity">Complexity</a> <a href="replace_if.html#fusion.algorithm.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.algorithm.transformation.functions.replace_if.header"></a><h6> <a name="fusion.algorithm.transformation.functions.replace_if.header"></a><h6>
<a name="id602720"></a> <a name="id563587"></a>
<a href="replace_if.html#fusion.algorithm.transformation.functions.replace_if.header">Header</a> <a href="replace_if.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.transformation.functions.replace_if.example"></a><h6> <a name="fusion.algorithm.transformation.functions.replace_if.example"></a><h6>
<a name="id602891"></a> <a name="id563754"></a>
<a href="replace_if.html#fusion.algorithm.transformation.functions.replace_if.example">Example</a> <a href="replace_if.html#fusion.algorithm.transformation.functions.replace_if.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">odd</span>
<span class="keyword">struct</span> <span class="identifier">odd</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="keyword">bool</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="keyword">bool</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>
@ -184,11 +160,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,27 +23,30 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.functions.reverse"></a><a href="reverse.html" title="reverse">reverse</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.functions.reverse"></a><a href="reverse.html" title="reverse">reverse</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.functions.reverse.description"></a><h6> <a name="fusion.algorithm.transformation.functions.reverse.description"></a><h6>
<a name="id605304"></a> <a name="id566112"></a>
<a href="reverse.html#fusion.algorithm.transformation.functions.reverse.description">Description</a> <a href="reverse.html#fusion.algorithm.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.algorithm.transformation.functions.reverse.synposis"></a><h6> <a name="fusion.algorithm.transformation.functions.reverse.synposis"></a><h6>
<a name="id605337"></a> <a name="id566141"></a>
<a href="reverse.html#fusion.algorithm.transformation.functions.reverse.synposis">Synposis</a> <a href="reverse.html#fusion.algorithm.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"><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>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id605494"></a><p class="title"><b>Table<EFBFBD>1.61.<2E>Parameters</b></p> <a name="id566294"></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>
@ -51,50 +54,37 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/bidirectional_sequence.html" title="Bidirectional A model of <a href="../../../sequence/concepts/bidirectional_sequence.html" title="Bidirectional
Sequence">Bidirectional Sequence">Bidirectional
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr></tbody> </tr></tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.functions.reverse.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.functions.reverse.expression_semantics"></a><h6>
<a name="id605598"></a> <a name="id566398"></a>
<a href="reverse.html#fusion.algorithm.transformation.functions.reverse.expression_semantics">Expression <a href="reverse.html#fusion.algorithm.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"><tt class="computeroutput"><span class="identifier">reverse</span></tt></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="../../../sequence/concepts/bidirectional_sequence.html" title="Bidirectional <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/bidirectional_sequence.html" title="Bidirectional
@ -107,35 +97,34 @@
in reverse order. in reverse order.
</p> </p>
<a name="fusion.algorithm.transformation.functions.reverse.complexity"></a><h6> <a name="fusion.algorithm.transformation.functions.reverse.complexity"></a><h6>
<a name="id605707"></a> <a name="id566502"></a>
<a href="reverse.html#fusion.algorithm.transformation.functions.reverse.complexity">Complexity</a> <a href="reverse.html#fusion.algorithm.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.algorithm.transformation.functions.reverse.header"></a><h6> <a name="fusion.algorithm.transformation.functions.reverse.header"></a><h6>
<a name="id605739"></a> <a name="id566531"></a>
<a href="reverse.html#fusion.algorithm.transformation.functions.reverse.header">Header</a> <a href="reverse.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.transformation.functions.reverse.example"></a><h6> <a name="fusion.algorithm.transformation.functions.reverse.example"></a><h6>
<a name="id605910"></a> <a name="id566697"></a>
<a href="reverse.html#fusion.algorithm.transformation.functions.reverse.example">Example</a> <a href="reverse.html#fusion.algorithm.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="../../../container/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="../../../container/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"><tt class="computeroutput"><span class="identifier">reverse</span></tt></a><span class="special">(</span><a href="../../../container/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="../../../container/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>
</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.functions.transform"></a><a href="transform.html" title="transform">transform</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.functions.transform"></a><a href="transform.html" title="transform">transform</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.functions.transform.description"></a><h6> <a name="fusion.algorithm.transformation.functions.transform.description"></a><h6>
<a name="id598838"></a> <a name="id559775"></a>
<a href="transform.html#fusion.algorithm.transformation.functions.transform.description">Description</a> <a href="transform.html#fusion.algorithm.transformation.functions.transform.description">Description</a>
</h6> </h6>
<p> <p>
@ -37,12 +41,11 @@
of <tt class="computeroutput"><span class="identifier">seq</span></tt>. of <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithm.transformation.functions.transform.unary_version_synopsis"></a><h6> <a name="fusion.algorithm.transformation.functions.transform.unary_version_synopsis"></a><h6>
<a name="id598957"></a> <a name="id559891"></a>
<a href="transform.html#fusion.algorithm.transformation.functions.transform.unary_version_synopsis">Unary <a href="transform.html#fusion.algorithm.transformation.functions.transform.unary_version_synopsis">Unary
version 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>
@ -50,7 +53,7 @@
<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="id599164"></a><p class="title"><b>Table<EFBFBD>1.55.<2E>Parameters</b></p> <a name="id560094"></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>
@ -58,72 +61,53 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <tt class="computeroutput"><span class="identifier">f</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
<tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> <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 for each element <tt class="computeroutput"><span class="identifier">e</span></tt> is a valid expression for each element <tt class="computeroutput"><span class="identifier">e</span></tt>
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 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
each element type <tt class="computeroutput"><span class="identifier">E</span></tt>. each element type <tt class="computeroutput"><span class="identifier">E</span></tt>.
</p> </p></td>
</td> <td><p>
<td>
<p>
Transformation function Transformation function
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.functions.transform.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.functions.transform.expression_semantics"></a><h6>
<a name="id599436"></a> <a name="id560365"></a>
<a href="transform.html#fusion.algorithm.transformation.functions.transform.expression_semantics">Expression <a href="transform.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -136,12 +120,11 @@
within <tt class="computeroutput"><span class="identifier">seq</span></tt>. within <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithm.transformation.functions.transform.binary_version_synopsis"></a><h6> <a name="fusion.algorithm.transformation.functions.transform.binary_version_synopsis"></a><h6>
<a name="id599596"></a> <a name="id560521"></a>
<a href="transform.html#fusion.algorithm.transformation.functions.transform.binary_version_synopsis">Binary <a href="transform.html#fusion.algorithm.transformation.functions.transform.binary_version_synopsis">Binary
version 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">Sequence1</span><span class="special">,</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">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>
@ -150,7 +133,7 @@
<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="id599864"></a><p class="title"><b>Table<EFBFBD>1.56.<2E>Parameters</b></p> <a name="id560785"></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>
@ -158,81 +141,57 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq1</span></tt> <tt class="computeroutput"><span class="identifier">seq1</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq2</span></tt> <tt class="computeroutput"><span class="identifier">seq2</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <tt class="computeroutput"><span class="identifier">f</span></tt>
</p> </p></td>
</td> <td><p>
<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> <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> 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>. 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 <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> type <tt class="computeroutput"><span class="identifier">E1</span></tt> and <tt class="computeroutput"><span class="identifier">E2</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Transformation function Transformation function
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -248,26 +207,24 @@
within <tt class="computeroutput"><span class="identifier">seq1</span></tt> and <tt class="computeroutput"><span class="identifier">seq2</span></tt> respectively. 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.algorithm.transformation.functions.transform.complexity"></a><h6> <a name="fusion.algorithm.transformation.functions.transform.complexity"></a><h6>
<a name="id600351"></a> <a name="id561272"></a>
<a href="transform.html#fusion.algorithm.transformation.functions.transform.complexity">Complexity</a> <a href="transform.html#fusion.algorithm.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.algorithm.transformation.functions.transform.header"></a><h6> <a name="fusion.algorithm.transformation.functions.transform.header"></a><h6>
<a name="id600382"></a> <a name="id561300"></a>
<a href="transform.html#fusion.algorithm.transformation.functions.transform.header">Header</a> <a href="transform.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.transformation.functions.transform.example"></a><h6> <a name="fusion.algorithm.transformation.functions.transform.example"></a><h6>
<a name="id600552"></a> <a name="id561466"></a>
<a href="transform.html#fusion.algorithm.transformation.functions.transform.example">Example</a> <a href="transform.html#fusion.algorithm.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">typedef</span> <span class="keyword">int</span> <span class="identifier">result_type</span><span class="special">;</span>
@ -282,11 +239,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.functions.zip"></a><a href="zip.html" title="zip">zip</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.functions.zip"></a><a href="zip.html" title="zip">zip</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.functions.zip.description"></a><h6> <a name="fusion.algorithm.transformation.functions.zip.description"></a><h6>
<a name="id612726"></a> <a name="id573361"></a>
<a href="zip.html#fusion.algorithm.transformation.functions.zip.description">Description</a> <a href="zip.html#fusion.algorithm.transformation.functions.zip.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
of the members of the component sequences. of the members of the component sequences.
</p> </p>
<a name="fusion.algorithm.transformation.functions.zip.synopsis"></a><h6> <a name="fusion.algorithm.transformation.functions.zip.synopsis"></a><h6>
<a name="id612759"></a> <a name="id573392"></a>
<a href="zip.html#fusion.algorithm.transformation.functions.zip.synopsis">Synopsis</a> <a href="zip.html#fusion.algorithm.transformation.functions.zip.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">Sequence1</span><span class="special">,</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">Sequence2</span><span class="special">,</span>
<span class="special">...</span> <span class="special">...</span>
@ -48,7 +51,7 @@
<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="id613044"></a><p class="title"><b>Table<EFBFBD>1.68.<2E>Parameters</b></p> <a name="id573673"></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>
@ -56,50 +59,37 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<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> <tt class="computeroutput"><span class="identifier">seq1</span></tt> to <tt class="computeroutput"><span class="identifier">seqN</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Each sequence is a model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward Each sequence is a model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr></tbody> </tr></tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.functions.zip.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.functions.zip.expression_semantics"></a><h6>
<a name="id613160"></a> <a name="id573789"></a>
<a href="zip.html#fusion.algorithm.transformation.functions.zip.expression_semantics">Expression <a href="zip.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -117,37 +107,36 @@
<span class="char">'c'</span><span class="special">))</span></tt> <span class="char">'c'</span><span class="special">))</span></tt>
</p> </p>
<a name="fusion.algorithm.transformation.functions.zip.complexity"></a><h6> <a name="fusion.algorithm.transformation.functions.zip.complexity"></a><h6>
<a name="id613470"></a> <a name="id574094"></a>
<a href="zip.html#fusion.algorithm.transformation.functions.zip.complexity">Complexity</a> <a href="zip.html#fusion.algorithm.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.algorithm.transformation.functions.zip.header"></a><h6> <a name="fusion.algorithm.transformation.functions.zip.header"></a><h6>
<a name="id613502"></a> <a name="id574124"></a>
<a href="zip.html#fusion.algorithm.transformation.functions.zip.header">Header</a> <a href="zip.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.transformation.functions.zip.example"></a><h6> <a name="fusion.algorithm.transformation.functions.zip.example"></a><h6>
<a name="id613671"></a> <a name="id574290"></a>
<a href="zip.html#fusion.algorithm.transformation.functions.zip.example">Example</a> <a href="zip.html#fusion.algorithm.transformation.functions.zip.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><a href="../../../container/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="../../../container/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="../../../container/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="../../../container/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>
<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="../../../container/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="../../../container/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="../../../container/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"><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="../../../container/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="../../../container/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="../../../container/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>
</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,8 +23,12 @@
<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="../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.metafunctions"></a><a href="metafunctions.html" title="Metafunctions">Metafunctions</a></h4></div></div></div> <div><div><h4 class="title">
<a name="fusion.algorithm.transformation.metafunctions"></a><a href="metafunctions.html" title="Metafunctions">Metafunctions</a>
</h4></div></div>
<div></div>
</div>
<div class="toc"><dl> <div class="toc"><dl>
<dt><span class="section"><a href="metafunctions/filter.html">filter</a></span></dt> <dt><span class="section"><a href="metafunctions/filter.html">filter</a></span></dt>
<dt><span class="section"><a href="metafunctions/filter_if.html">filter_if</a></span></dt> <dt><span class="section"><a href="metafunctions/filter_if.html">filter_if</a></span></dt>
@ -49,11 +53,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.metafunctions.clear"></a><a href="clear.html" title="clear">clear</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.metafunctions.clear"></a><a href="clear.html" title="clear">clear</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.metafunctions.clear.description"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.clear.description"></a><h6>
<a name="id624719"></a> <a name="id585070"></a>
<a href="clear.html#fusion.algorithm.transformation.metafunctions.clear.description">Description</a> <a href="clear.html#fusion.algorithm.transformation.metafunctions.clear.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
type. type.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.clear.synopsis"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.clear.synopsis"></a><h6>
<a name="id624769"></a> <a name="id585117"></a>
<a href="clear.html#fusion.algorithm.transformation.metafunctions.clear.synopsis">Synopsis</a> <a href="clear.html#fusion.algorithm.transformation.metafunctions.clear.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">struct</span> <span class="identifier">clear</span> <span class="keyword">struct</span> <span class="identifier">clear</span>
@ -47,7 +50,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id624871"></a><p class="title"><b>Table<EFBFBD>1.82.<2E>Parameters</b></p> <a name="id585216"></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>
@ -55,48 +58,35 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr></tbody> </tr></tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.metafunctions.clear.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.clear.expression_semantics"></a><h6>
<a name="id624967"></a> <a name="id585310"></a>
<a href="clear.html#fusion.algorithm.transformation.metafunctions.clear.expression_semantics">Expression <a href="clear.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -107,28 +97,28 @@
<span class="bold"><b>Semantics</b></span>: Returns an empty sequence. <span class="bold"><b>Semantics</b></span>: Returns an empty sequence.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.clear.complexity"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.clear.complexity"></a><h6>
<a name="id625081"></a> <a name="id585422"></a>
<a href="clear.html#fusion.algorithm.transformation.metafunctions.clear.complexity">Complexity</a> <a href="clear.html#fusion.algorithm.transformation.metafunctions.clear.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.clear.header"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.clear.header"></a><h6>
<a name="id625113"></a> <a name="id585450"></a>
<a href="clear.html#fusion.algorithm.transformation.metafunctions.clear.header">Header</a> <a href="clear.html#fusion.algorithm.transformation.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,22 +23,25 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.metafunctions.erase"></a><a href="erase.html" title="erase">erase</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.metafunctions.erase"></a><a href="erase.html" title="erase">erase</a>
</h5></div></div>
<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"><tt class="computeroutput"><span class="identifier">erase</span></tt></a>, given the input sequence
and range delimiting iterator types. and range delimiting iterator types.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.erase.description"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.erase.description"></a><h6>
<a name="id625329"></a> <a name="id585660"></a>
<a href="erase.html#fusion.algorithm.transformation.metafunctions.erase.description">Description</a> <a href="erase.html#fusion.algorithm.transformation.metafunctions.erase.description">Description</a>
</h6> </h6>
<a name="fusion.algorithm.transformation.metafunctions.erase.synopsis"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.erase.synopsis"></a><h6>
<a name="id625355"></a> <a name="id585683"></a>
<a href="erase.html#fusion.algorithm.transformation.metafunctions.erase.synopsis">Synopsis</a> <a href="erase.html#fusion.algorithm.transformation.metafunctions.erase.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="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">It1</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">It1</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">It2</span> <span class="special">=</span> <span class="emphasis"><em>unspecified</em></span><span class="special">&gt;</span> <span class="keyword">typename</span> <span class="identifier">It2</span> <span class="special">=</span> <span class="emphasis"><em>unspecified</em></span><span class="special">&gt;</span>
@ -48,7 +51,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id625501"></a><p class="title"><b>Table<EFBFBD>1.83.<2E>Parameters</b></p> <a name="id585826"></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>
@ -56,90 +59,65 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">It1</span></tt> <tt class="computeroutput"><span class="identifier">It1</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../iterator/concepts/forward_iterator.html" title="Forward A model of <a href="../../../iterator/concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
Iterator</a> Iterator</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">It2</span></tt> <tt class="computeroutput"><span class="identifier">It2</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../iterator/concepts/forward_iterator.html" title="Forward A model of <a href="../../../iterator/concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
Iterator</a> Iterator</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.metafunctions.erase.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.erase.expression_semantics"></a><h6>
<a name="id625695"></a> <a name="id586020"></a>
<a href="erase.html#fusion.algorithm.transformation.metafunctions.erase.expression_semantics">Expression <a href="erase.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -150,8 +128,7 @@
<span class="bold"><b>Semantics</b></span>: Returns a new sequence with <span class="bold"><b>Semantics</b></span>: Returns a new sequence with
the element at <tt class="computeroutput"><span class="identifier">It1</span></tt> removed. the element at <tt class="computeroutput"><span class="identifier">It1</span></tt> 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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -164,28 +141,28 @@
and <tt class="computeroutput"><span class="identifier">It2</span></tt> removed. and <tt class="computeroutput"><span class="identifier">It2</span></tt> removed.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.erase.complexity"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.erase.complexity"></a><h6>
<a name="id625965"></a> <a name="id586284"></a>
<a href="erase.html#fusion.algorithm.transformation.metafunctions.erase.complexity">Complexity</a> <a href="erase.html#fusion.algorithm.transformation.metafunctions.erase.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.erase.header"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.erase.header"></a><h6>
<a name="id625995"></a> <a name="id586312"></a>
<a href="erase.html#fusion.algorithm.transformation.metafunctions.erase.header">Header</a> <a href="erase.html#fusion.algorithm.transformation.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.metafunctions.erase_key"></a><a href="erase_key.html" title="erase_key">erase_key</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.metafunctions.erase_key"></a><a href="erase_key.html" title="erase_key">erase_key</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.metafunctions.erase_key.description"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.erase_key.description"></a><h6>
<a name="id626190"></a> <a name="id586501"></a>
<a href="erase_key.html#fusion.algorithm.transformation.metafunctions.erase_key.description">Description</a> <a href="erase_key.html#fusion.algorithm.transformation.metafunctions.erase_key.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
and key types. and key types.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.erase_key.synopsis"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.erase_key.synopsis"></a><h6>
<a name="id626241"></a> <a name="id586549"></a>
<a href="erase_key.html#fusion.algorithm.transformation.metafunctions.erase_key.synopsis">Synopsis</a> <a href="erase_key.html#fusion.algorithm.transformation.metafunctions.erase_key.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="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Key</span> <span class="keyword">typename</span> <span class="identifier">Key</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
@ -48,7 +51,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id626362"></a><p class="title"><b>Table<EFBFBD>1.84.<2E>Parameters</b></p> <a name="id586667"></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>
@ -56,69 +59,50 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/associative_sequence.html" title="Associative A model of <a href="../../../sequence/concepts/associative_sequence.html" title="Associative
Sequence">Associative Sequence">Associative
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Key</span></tt> <tt class="computeroutput"><span class="identifier">Key</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
Key type Key type
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.metafunctions.erase_key.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.erase_key.expression_semantics"></a><h6>
<a name="id626502"></a> <a name="id586805"></a>
<a href="erase_key.html#fusion.algorithm.transformation.metafunctions.erase_key.expression_semantics">Expression <a href="erase_key.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/associative_sequence.html" title="Associative <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/associative_sequence.html" title="Associative
@ -131,28 +115,28 @@
except those with key <tt class="computeroutput"><span class="identifier">Key</span></tt>. except those with key <tt class="computeroutput"><span class="identifier">Key</span></tt>.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.erase_key.complexity"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.erase_key.complexity"></a><h6>
<a name="id626650"></a> <a name="id586949"></a>
<a href="erase_key.html#fusion.algorithm.transformation.metafunctions.erase_key.complexity">Complexity</a> <a href="erase_key.html#fusion.algorithm.transformation.metafunctions.erase_key.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.erase_key.header"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.erase_key.header"></a><h6>
<a name="id626681"></a> <a name="id586979"></a>
<a href="erase_key.html#fusion.algorithm.transformation.metafunctions.erase_key.header">Header</a> <a href="erase_key.html#fusion.algorithm.transformation.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.metafunctions.filter"></a><a href="filter.html" title="filter">filter</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.metafunctions.filter"></a><a href="filter.html" title="filter">filter</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.metafunctions.filter.description"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.filter.description"></a><h6>
<a name="id617534"></a> <a name="id578050"></a>
<a href="filter.html#fusion.algorithm.transformation.metafunctions.filter.description">Description</a> <a href="filter.html#fusion.algorithm.transformation.metafunctions.filter.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
and type to retain. and type to retain.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.filter.synopsis"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.filter.synopsis"></a><h6>
<a name="id617585"></a> <a name="id578098"></a>
<a href="filter.html#fusion.algorithm.transformation.metafunctions.filter.synopsis">Synopsis</a> <a href="filter.html#fusion.algorithm.transformation.metafunctions.filter.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="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>
@ -48,7 +51,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id617704"></a><p class="title"><b>Table<EFBFBD>1.73.<2E>Parameter</b></p> <a name="id578214"></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>
@ -56,69 +59,50 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <tt class="computeroutput"><span class="identifier">T</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
Type to retain Type to retain
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.metafunctions.filter.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.filter.expression_semantics"></a><h6>
<a name="id617845"></a> <a name="id578354"></a>
<a href="filter.html#fusion.algorithm.transformation.metafunctions.filter.expression_semantics">Expression <a href="filter.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -133,28 +117,28 @@
<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></tt>.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.filter.complexity"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.filter.complexity"></a><h6>
<a name="id618106"></a> <a name="id578611"></a>
<a href="filter.html#fusion.algorithm.transformation.metafunctions.filter.complexity">Complexity</a> <a href="filter.html#fusion.algorithm.transformation.metafunctions.filter.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.filter.header"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.filter.header"></a><h6>
<a name="id618137"></a> <a name="id578640"></a>
<a href="filter.html#fusion.algorithm.transformation.metafunctions.filter.header">Header</a> <a href="filter.html#fusion.algorithm.transformation.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.metafunctions.filter_if"></a><a href="filter_if.html" title="filter_if">filter_if</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.metafunctions.filter_if"></a><a href="filter_if.html" title="filter_if">filter_if</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.metafunctions.filter_if.description"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.filter_if.description"></a><h6>
<a name="id618330"></a> <a name="id578827"></a>
<a href="filter_if.html#fusion.algorithm.transformation.metafunctions.filter_if.description">Description</a> <a href="filter_if.html#fusion.algorithm.transformation.metafunctions.filter_if.description">Description</a>
</h6> </h6>
<p> <p>
@ -35,11 +39,10 @@
Lambda Expression</a> predicate type. Lambda Expression</a> predicate type.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.filter_if.synopsis"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.filter_if.synopsis"></a><h6>
<a name="id618389"></a> <a name="id578884"></a>
<a href="filter_if.html#fusion.algorithm.transformation.metafunctions.filter_if.synopsis">Synopsis</a> <a href="filter_if.html#fusion.algorithm.transformation.metafunctions.filter_if.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="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Pred</span> <span class="keyword">typename</span> <span class="identifier">Pred</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
@ -49,7 +52,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id618511"></a><p class="title"><b>Table<EFBFBD>1.74.<2E>Parameter</b></p> <a name="id579002"></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>
@ -57,70 +60,51 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Pred</span></tt> <tt class="computeroutput"><span class="identifier">Pred</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL A unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL
Lambda Expression</a> Lambda Expression</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Type to retain Type to retain
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.metafunctions.filter_if.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.filter_if.expression_semantics"></a><h6>
<a name="id618656"></a> <a name="id579146"></a>
<a href="filter_if.html#fusion.algorithm.transformation.metafunctions.filter_if.expression_semantics">Expression <a href="filter_if.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -134,28 +118,28 @@
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 <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>.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.filter_if.complexity"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.filter_if.complexity"></a><h6>
<a name="id618840"></a> <a name="id579326"></a>
<a href="filter_if.html#fusion.algorithm.transformation.metafunctions.filter_if.complexity">Complexity</a> <a href="filter_if.html#fusion.algorithm.transformation.metafunctions.filter_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.filter_if.header"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.filter_if.header"></a><h6>
<a name="id618872"></a> <a name="id579356"></a>
<a href="filter_if.html#fusion.algorithm.transformation.metafunctions.filter_if.header">Header</a> <a href="filter_if.html#fusion.algorithm.transformation.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.metafunctions.insert"></a><a href="insert.html" title="insert">insert</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.metafunctions.insert"></a><a href="insert.html" title="insert">insert</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.metafunctions.insert.description"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.insert.description"></a><h6>
<a name="id627695"></a> <a name="id587169"></a>
<a href="insert.html#fusion.algorithm.transformation.metafunctions.insert.description">Description</a> <a href="insert.html#fusion.algorithm.transformation.metafunctions.insert.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
position iterator and insertion types. position iterator and insertion types.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.insert.synopsis"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.insert.synopsis"></a><h6>
<a name="id627740"></a> <a name="id587219"></a>
<a href="insert.html#fusion.algorithm.transformation.metafunctions.insert.synopsis">Synopsis</a> <a href="insert.html#fusion.algorithm.transformation.metafunctions.insert.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="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Position</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Position</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>
@ -49,7 +52,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id386964"></a><p class="title"><b>Table<EFBFBD>1.85.<2E>Parameters</b></p> <a name="id587355"></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>
@ -57,88 +60,63 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Position</span></tt> <tt class="computeroutput"><span class="identifier">Position</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../iterator/concepts/forward_iterator.html" title="Forward A model of <a href="../../../iterator/concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
Iterator</a> Iterator</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <tt class="computeroutput"><span class="identifier">T</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.metafunctions.insert.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.insert.expression_semantics"></a><h6>
<a name="id627938"></a> <a name="id587539"></a>
<a href="insert.html#fusion.algorithm.transformation.metafunctions.insert.expression_semantics">Expression <a href="insert.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -152,28 +130,28 @@
in <tt class="computeroutput"><span class="identifier">Sequence</span></tt>. in <tt class="computeroutput"><span class="identifier">Sequence</span></tt>.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.insert.complexity"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.insert.complexity"></a><h6>
<a name="id628089"></a> <a name="id587707"></a>
<a href="insert.html#fusion.algorithm.transformation.metafunctions.insert.complexity">Complexity</a> <a href="insert.html#fusion.algorithm.transformation.metafunctions.insert.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.insert.header"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.insert.header"></a><h6>
<a name="id628116"></a> <a name="id587736"></a>
<a href="insert.html#fusion.algorithm.transformation.metafunctions.insert.header">Header</a> <a href="insert.html#fusion.algorithm.transformation.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.metafunctions.insert_range"></a><a href="insert_range.html" title="insert_range">insert_range</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.metafunctions.insert_range"></a><a href="insert_range.html" title="insert_range">insert_range</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.metafunctions.insert_range.description"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.insert_range.description"></a><h6>
<a name="id628289"></a> <a name="id587921"></a>
<a href="insert_range.html#fusion.algorithm.transformation.metafunctions.insert_range.description">Description</a> <a href="insert_range.html#fusion.algorithm.transformation.metafunctions.insert_range.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
sequence, position iterator and insertion range types. sequence, position iterator and insertion range types.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.insert_range.synopsis"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.insert_range.synopsis"></a><h6>
<a name="id628334"></a> <a name="id587970"></a>
<a href="insert_range.html#fusion.algorithm.transformation.metafunctions.insert_range.synopsis">Synopsis</a> <a href="insert_range.html#fusion.algorithm.transformation.metafunctions.insert_range.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="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Position</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Position</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>
@ -49,7 +52,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id628458"></a><p class="title"><b>Table<EFBFBD>1.86.<2E>Parameters</b></p> <a name="id588106"></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>
@ -57,90 +60,65 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Position</span></tt> <tt class="computeroutput"><span class="identifier">Position</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../iterator/concepts/forward_iterator.html" title="Forward A model of <a href="../../../iterator/concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
Iterator</a> Iterator</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Range</span></tt> <tt class="computeroutput"><span class="identifier">Range</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.metafunctions.insert_range.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.insert_range.expression_semantics"></a><h6>
<a name="id628642"></a> <a name="id588300"></a>
<a href="insert_range.html#fusion.algorithm.transformation.metafunctions.insert_range.expression_semantics">Expression <a href="insert_range.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -154,28 +132,28 @@
into <tt class="computeroutput"><span class="identifier">Sequence</span></tt>. into <tt class="computeroutput"><span class="identifier">Sequence</span></tt>.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.insert_range.complexity"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.insert_range.complexity"></a><h6>
<a name="id628794"></a> <a name="id588469"></a>
<a href="insert_range.html#fusion.algorithm.transformation.metafunctions.insert_range.complexity">Complexity</a> <a href="insert_range.html#fusion.algorithm.transformation.metafunctions.insert_range.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.insert_range.header"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.insert_range.header"></a><h6>
<a name="id628822"></a> <a name="id588499"></a>
<a href="insert_range.html#fusion.algorithm.transformation.metafunctions.insert_range.header">Header</a> <a href="insert_range.html#fusion.algorithm.transformation.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,21 +23,24 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.metafunctions.join"></a><a href="join.html" title="join">join</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.metafunctions.join"></a><a href="join.html" title="join">join</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.metafunctions.join.description"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.join.description"></a><h6>
<a name="id629814"></a> <a name="id588688"></a>
<a href="join.html#fusion.algorithm.transformation.metafunctions.join.description">Description</a> <a href="join.html#fusion.algorithm.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.algorithm.transformation.metafunctions.join.synopsis"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.join.synopsis"></a><h6>
<a name="id629842"></a> <a name="id588718"></a>
<a href="join.html#fusion.algorithm.transformation.metafunctions.join.synopsis">Synopsis</a> <a href="join.html#fusion.algorithm.transformation.metafunctions.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="keyword">typename</span> <span class="identifier">RhSequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
@ -47,12 +50,11 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<a name="fusion.algorithm.transformation.metafunctions.join.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.join.expression_semantics"></a><h6>
<a name="id385725"></a> <a name="id588844"></a>
<a href="join.html#fusion.algorithm.transformation.metafunctions.join.expression_semantics">Expression <a href="join.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -66,28 +68,28 @@
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.algorithm.transformation.metafunctions.join.complexity"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.join.complexity"></a><h6>
<a name="id629988"></a> <a name="id588991"></a>
<a href="join.html#fusion.algorithm.transformation.metafunctions.join.complexity">Complexity</a> <a href="join.html#fusion.algorithm.transformation.metafunctions.join.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.join.header"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.join.header"></a><h6>
<a name="id630014"></a> <a name="id589020"></a>
<a href="join.html#fusion.algorithm.transformation.metafunctions.join.header">Header</a> <a href="join.html#fusion.algorithm.transformation.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.metafunctions.pop_back"></a><a href="pop_back.html" title="pop_back">pop_back</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.metafunctions.pop_back"></a><a href="pop_back.html" title="pop_back">pop_back</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.metafunctions.pop_back.description"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.pop_back.description"></a><h6>
<a name="id630838"></a> <a name="id589911"></a>
<a href="pop_back.html#fusion.algorithm.transformation.metafunctions.pop_back.description">Description</a> <a href="pop_back.html#fusion.algorithm.transformation.metafunctions.pop_back.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
type. type.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.pop_back.synopsis"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.pop_back.synopsis"></a><h6>
<a name="id630881"></a> <a name="id589958"></a>
<a href="pop_back.html#fusion.algorithm.transformation.metafunctions.pop_back.synopsis">Synopsis</a> <a href="pop_back.html#fusion.algorithm.transformation.metafunctions.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">struct</span> <span class="identifier">pop_back</span> <span class="keyword">struct</span> <span class="identifier">pop_back</span>
@ -47,7 +50,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id630973"></a><p class="title"><b>Table<EFBFBD>1.87.<2E>Parameters</b></p> <a name="id590058"></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>
@ -55,50 +58,37 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr></tbody> </tr></tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.metafunctions.pop_back.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.pop_back.expression_semantics"></a><h6>
<a name="id631073"></a> <a name="id590163"></a>
<a href="pop_back.html#fusion.algorithm.transformation.metafunctions.pop_back.expression_semantics">Expression <a href="pop_back.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -111,28 +101,28 @@
except the last element. except the last element.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.pop_back.complexity"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.pop_back.complexity"></a><h6>
<a name="id631186"></a> <a name="id590286"></a>
<a href="pop_back.html#fusion.algorithm.transformation.metafunctions.pop_back.complexity">Complexity</a> <a href="pop_back.html#fusion.algorithm.transformation.metafunctions.pop_back.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.pop_back.header"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.pop_back.header"></a><h6>
<a name="id631213"></a> <a name="id590316"></a>
<a href="pop_back.html#fusion.algorithm.transformation.metafunctions.pop_back.header">Header</a> <a href="pop_back.html#fusion.algorithm.transformation.metafunctions.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">tranformation</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">tranformation</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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.metafunctions.pop_front"></a><a href="pop_front.html" title="pop_front">pop_front</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.metafunctions.pop_front"></a><a href="pop_front.html" title="pop_front">pop_front</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.metafunctions.pop_front.description"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.pop_front.description"></a><h6>
<a name="id631386"></a> <a name="id590503"></a>
<a href="pop_front.html#fusion.algorithm.transformation.metafunctions.pop_front.description">Description</a> <a href="pop_front.html#fusion.algorithm.transformation.metafunctions.pop_front.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
type. type.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.pop_front.synopsis"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.pop_front.synopsis"></a><h6>
<a name="id631430"></a> <a name="id590551"></a>
<a href="pop_front.html#fusion.algorithm.transformation.metafunctions.pop_front.synopsis">Synopsis</a> <a href="pop_front.html#fusion.algorithm.transformation.metafunctions.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">struct</span> <span class="identifier">pop_front</span> <span class="keyword">struct</span> <span class="identifier">pop_front</span>
@ -47,7 +50,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id631522"></a><p class="title"><b>Table<EFBFBD>1.88.<2E>Parameters</b></p> <a name="id590651"></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>
@ -55,50 +58,37 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr></tbody> </tr></tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.metafunctions.pop_front.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.pop_front.expression_semantics"></a><h6>
<a name="id631621"></a> <a name="id590754"></a>
<a href="pop_front.html#fusion.algorithm.transformation.metafunctions.pop_front.expression_semantics">Expression <a href="pop_front.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -111,7 +101,7 @@
except the first element. except the first element.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.pop_front.complexity"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.pop_front.complexity"></a><h6>
<a name="id631734"></a> <a name="id590877"></a>
<a href="pop_front.html#fusion.algorithm.transformation.metafunctions.pop_front.complexity">Complexity</a> <a href="pop_front.html#fusion.algorithm.transformation.metafunctions.pop_front.complexity">Complexity</a>
</h6> </h6>
<p> <p>
@ -123,11 +113,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.metafunctions.push_back"></a><a href="push_back.html" title="push_back">push_back</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.metafunctions.push_back"></a><a href="push_back.html" title="push_back">push_back</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.metafunctions.push_back.description"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.push_back.description"></a><h6>
<a name="id631786"></a> <a name="id590932"></a>
<a href="push_back.html#fusion.algorithm.transformation.metafunctions.push_back.description">Description</a> <a href="push_back.html#fusion.algorithm.transformation.metafunctions.push_back.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
the input sequence and element to push. the input sequence and element to push.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.push_back.synopsis"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.push_back.synopsis"></a><h6>
<a name="id631832"></a> <a name="id590982"></a>
<a href="push_back.html#fusion.algorithm.transformation.metafunctions.push_back.synopsis">Synopsis</a> <a href="push_back.html#fusion.algorithm.transformation.metafunctions.push_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="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>
@ -48,7 +51,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id631940"></a><p class="title"><b>Table<EFBFBD>1.89.<2E>Parameters</b></p> <a name="id591099"></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>
@ -56,69 +59,50 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <tt class="computeroutput"><span class="identifier">T</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.metafunctions.push_back.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.push_back.expression_semantics"></a><h6>
<a name="id632074"></a> <a name="id591239"></a>
<a href="push_back.html#fusion.algorithm.transformation.metafunctions.push_back.expression_semantics">Expression <a href="push_back.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -132,7 +116,7 @@
added to the end. added to the end.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.push_back.complexity"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.push_back.complexity"></a><h6>
<a name="id632206"></a> <a name="id591384"></a>
<a href="push_back.html#fusion.algorithm.transformation.metafunctions.push_back.complexity">Complexity</a> <a href="push_back.html#fusion.algorithm.transformation.metafunctions.push_back.complexity">Complexity</a>
</h6> </h6>
<p> <p>
@ -144,11 +128,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" href="push_back.html" title="push_back">
<link rel="next" href="../../../tuple.html" title="Tuple"> <link rel="next" href="../../../tuple.html" title="Tuple">
</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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../tuple.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <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="../../../tuple.html"><img src="../../../../../../../../doc/html/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">
<a name="fusion.algorithm.transformation.metafunctions.push_front"></a><a href="push_front.html" title="push_front">push_front</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.metafunctions.push_front"></a><a href="push_front.html" title="push_front">push_front</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.metafunctions.push_front.description"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.push_front.description"></a><h6>
<a name="id632258"></a> <a name="id591438"></a>
<a href="push_front.html#fusion.algorithm.transformation.metafunctions.push_front.description">Description</a> <a href="push_front.html#fusion.algorithm.transformation.metafunctions.push_front.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
of the input sequence and element to push. of the input sequence and element to push.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.push_front.synopsis"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.push_front.synopsis"></a><h6>
<a name="id632305"></a> <a name="id591488"></a>
<a href="push_front.html#fusion.algorithm.transformation.metafunctions.push_front.synopsis">Synopsis</a> <a href="push_front.html#fusion.algorithm.transformation.metafunctions.push_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="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>
@ -48,7 +51,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id632413"></a><p class="title"><b>Table<EFBFBD>1.90.<2E>Parameters</b></p> <a name="id591605"></a><p class="title"><b>Table<EFBFBD>1.90.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -56,69 +59,50 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <tt class="computeroutput"><span class="identifier">T</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.metafunctions.push_front.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.push_front.expression_semantics"></a><h6>
<a name="id632547"></a> <a name="id591745"></a>
<a href="push_front.html#fusion.algorithm.transformation.metafunctions.push_front.expression_semantics">Expression <a href="push_front.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -132,7 +116,7 @@
added to the beginning. added to the beginning.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.push_front.complexity"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.push_front.complexity"></a><h6>
<a name="id632680"></a> <a name="id591890"></a>
<a href="push_front.html#fusion.algorithm.transformation.metafunctions.push_front.complexity">Complexity</a> <a href="push_front.html#fusion.algorithm.transformation.metafunctions.push_front.complexity">Complexity</a>
</h6> </h6>
<p> <p>
@ -144,11 +128,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.metafunctions.remove"></a><a href="remove.html" title="remove">remove</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.metafunctions.remove"></a><a href="remove.html" title="remove">remove</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.metafunctions.remove.description"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.remove.description"></a><h6>
<a name="id622553"></a> <a name="id582961"></a>
<a href="remove.html#fusion.algorithm.transformation.metafunctions.remove.description">Description</a> <a href="remove.html#fusion.algorithm.transformation.metafunctions.remove.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
removal types. removal types.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.remove.synopsis"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.remove.synopsis"></a><h6>
<a name="id622605"></a> <a name="id583010"></a>
<a href="remove.html#fusion.algorithm.transformation.metafunctions.remove.synopsis">Synopsis</a> <a href="remove.html#fusion.algorithm.transformation.metafunctions.remove.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="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>
@ -48,7 +51,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id622724"></a><p class="title"><b>Table<EFBFBD>1.79.<2E>Parameters</b></p> <a name="id583126"></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>
@ -56,69 +59,50 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <tt class="computeroutput"><span class="identifier">T</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
Remove elements of this type Remove elements of this type
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.metafunctions.remove.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.remove.expression_semantics"></a><h6>
<a name="id622863"></a> <a name="id583263"></a>
<a href="remove.html#fusion.algorithm.transformation.metafunctions.remove.expression_semantics">Expression <a href="remove.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -133,28 +117,28 @@
<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></tt>.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.remove.complexity"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.remove.complexity"></a><h6>
<a name="id623124"></a> <a name="id583520"></a>
<a href="remove.html#fusion.algorithm.transformation.metafunctions.remove.complexity">Complexity</a> <a href="remove.html#fusion.algorithm.transformation.metafunctions.remove.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.remove.header"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.remove.header"></a><h6>
<a name="id623155"></a> <a name="id583549"></a>
<a href="remove.html#fusion.algorithm.transformation.metafunctions.remove.header">Header</a> <a href="remove.html#fusion.algorithm.transformation.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.metafunctions.remove_if"></a><a href="remove_if.html" title="remove_if">remove_if</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.metafunctions.remove_if"></a><a href="remove_if.html" title="remove_if">remove_if</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.metafunctions.remove_if.description"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.remove_if.description"></a><h6>
<a name="id623348"></a> <a name="id583737"></a>
<a href="remove_if.html#fusion.algorithm.transformation.metafunctions.remove_if.description">Description</a> <a href="remove_if.html#fusion.algorithm.transformation.metafunctions.remove_if.description">Description</a>
</h6> </h6>
<p> <p>
@ -35,11 +39,10 @@
Lambda Expression</a> predicate types. Lambda Expression</a> predicate types.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.remove_if.synopsis"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.remove_if.synopsis"></a><h6>
<a name="id623406"></a> <a name="id583793"></a>
<a href="remove_if.html#fusion.algorithm.transformation.metafunctions.remove_if.synopsis">Synopsis</a> <a href="remove_if.html#fusion.algorithm.transformation.metafunctions.remove_if.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="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Pred</span> <span class="keyword">typename</span> <span class="identifier">Pred</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
@ -49,7 +52,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id623528"></a><p class="title"><b>Table<EFBFBD>1.80.<2E>Parameters</b></p> <a name="id583911"></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>
@ -57,70 +60,51 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Pred</span></tt> <tt class="computeroutput"><span class="identifier">Pred</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL A model of unary <a href="http://www.boost.org/libs/mpl/doc/refmanual/lambda-expression.html" target="_top">MPL
Lambda Expression</a> Lambda Expression</a>
</p> </p></td>
</td> <td><p>
<td>
<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 <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>
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.metafunctions.remove_if.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.remove_if.expression_semantics"></a><h6>
<a name="id623706"></a> <a name="id584087"></a>
<a href="remove_if.html#fusion.algorithm.transformation.metafunctions.remove_if.expression_semantics">Expression <a href="remove_if.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -134,28 +118,28 @@
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 <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>.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.remove_if.complexity"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.remove_if.complexity"></a><h6>
<a name="id623890"></a> <a name="id584268"></a>
<a href="remove_if.html#fusion.algorithm.transformation.metafunctions.remove_if.complexity">Complexity</a> <a href="remove_if.html#fusion.algorithm.transformation.metafunctions.remove_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.remove_if.header"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.remove_if.header"></a><h6>
<a name="id623921"></a> <a name="id584298"></a>
<a href="remove_if.html#fusion.algorithm.transformation.metafunctions.remove_if.header">Header</a> <a href="remove_if.html#fusion.algorithm.transformation.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.metafunctions.replace"></a><a href="replace.html" title="replace">replace</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.metafunctions.replace"></a><a href="replace.html" title="replace">replace</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.metafunctions.replace.description"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.replace.description"></a><h6>
<a name="id621114"></a> <a name="id581560"></a>
<a href="replace.html#fusion.algorithm.transformation.metafunctions.replace.description">Description</a> <a href="replace.html#fusion.algorithm.transformation.metafunctions.replace.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
the input sequence and element to replace. the input sequence and element to replace.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.replace.synopsis"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.replace.synopsis"></a><h6>
<a name="id621166"></a> <a name="id581610"></a>
<a href="replace.html#fusion.algorithm.transformation.metafunctions.replace.synopsis">Synopsis</a> <a href="replace.html#fusion.algorithm.transformation.metafunctions.replace.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="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>
@ -48,7 +51,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id621285"></a><p class="title"><b>Table<EFBFBD>1.77.<2E>Parameters</b></p> <a name="id581727"></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>
@ -56,69 +59,50 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <tt class="computeroutput"><span class="identifier">T</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
The type of the search and replacement objects The type of the search and replacement objects
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.metafunctions.replace.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.replace.expression_semantics"></a><h6>
<a name="id621428"></a> <a name="id581868"></a>
<a href="replace.html#fusion.algorithm.transformation.metafunctions.replace.expression_semantics">Expression <a href="replace.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -130,28 +114,28 @@
<a href="../functions/replace.html" title="replace"><tt class="computeroutput"><span class="identifier">replace</span></tt></a>. <a href="../functions/replace.html" title="replace"><tt class="computeroutput"><span class="identifier">replace</span></tt></a>.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.replace.complexity"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.replace.complexity"></a><h6>
<a name="id621570"></a> <a name="id582006"></a>
<a href="replace.html#fusion.algorithm.transformation.metafunctions.replace.complexity">Complexity</a> <a href="replace.html#fusion.algorithm.transformation.metafunctions.replace.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.replace.header"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.replace.header"></a><h6>
<a name="id621601"></a> <a name="id582036"></a>
<a href="replace.html#fusion.algorithm.transformation.metafunctions.replace.header">Header</a> <a href="replace.html#fusion.algorithm.transformation.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.metafunctions.replace_if"></a><a href="replace_if.html" title="replace_if">replace_if</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.metafunctions.replace_if"></a><a href="replace_if.html" title="replace_if">replace_if</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.metafunctions.replace_if.description"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.replace_if.description"></a><h6>
<a name="id621794"></a> <a name="id582222"></a>
<a href="replace_if.html#fusion.algorithm.transformation.metafunctions.replace_if.description">Description</a> <a href="replace_if.html#fusion.algorithm.transformation.metafunctions.replace_if.description">Description</a>
</h6> </h6>
<p> <p>
@ -36,11 +40,10 @@
Function Object</a> predicate and replacement object. Function Object</a> predicate and replacement object.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.replace_if.synopsis"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.replace_if.synopsis"></a><h6>
<a name="id621855"></a> <a name="id582281"></a>
<a href="replace_if.html#fusion.algorithm.transformation.metafunctions.replace_if.synopsis">Synopsis</a> <a href="replace_if.html#fusion.algorithm.transformation.metafunctions.replace_if.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="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>
@ -50,7 +53,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id621992"></a><p class="title"><b>Table<EFBFBD>1.78.<2E>Parameters</b></p> <a name="id582414"></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>
@ -58,88 +61,63 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">F</span></tt> <tt class="computeroutput"><span class="identifier">F</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of unary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function A model of unary <a href="../../../functional/concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> Function Object</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Replacement predicate Replacement predicate
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">T</span></tt> <tt class="computeroutput"><span class="identifier">T</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Any type Any type
</p> </p></td>
</td> <td><p>
<td>
<p>
The type of the replacement object The type of the replacement object
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.metafunctions.replace_if.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.replace_if.expression_semantics"></a><h6>
<a name="id622176"></a> <a name="id582597"></a>
<a href="replace_if.html#fusion.algorithm.transformation.metafunctions.replace_if.expression_semantics">Expression <a href="replace_if.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -151,28 +129,28 @@
<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"><tt class="computeroutput"><span class="identifier">replace_if</span></tt></a>.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.replace_if.complexity"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.replace_if.complexity"></a><h6>
<a name="id622330"></a> <a name="id582746"></a>
<a href="replace_if.html#fusion.algorithm.transformation.metafunctions.replace_if.complexity">Complexity</a> <a href="replace_if.html#fusion.algorithm.transformation.metafunctions.replace_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.replace_if.header"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.replace_if.header"></a><h6>
<a name="id622361"></a> <a name="id582775"></a>
<a href="replace_if.html#fusion.algorithm.transformation.metafunctions.replace_if.header">Header</a> <a href="replace_if.html#fusion.algorithm.transformation.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.metafunctions.reverse"></a><a href="reverse.html" title="reverse">reverse</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.metafunctions.reverse"></a><a href="reverse.html" title="reverse">reverse</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.metafunctions.reverse.description"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.reverse.description"></a><h6>
<a name="id624113"></a> <a name="id584483"></a>
<a href="reverse.html#fusion.algorithm.transformation.metafunctions.reverse.description">Description</a> <a href="reverse.html#fusion.algorithm.transformation.metafunctions.reverse.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
type. type.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.reverse.synopsis"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.reverse.synopsis"></a><h6>
<a name="id624163"></a> <a name="id584530"></a>
<a href="reverse.html#fusion.algorithm.transformation.metafunctions.reverse.synopsis">Synopsis</a> <a href="reverse.html#fusion.algorithm.transformation.metafunctions.reverse.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">struct</span> <span class="identifier">reverse</span> <span class="keyword">struct</span> <span class="identifier">reverse</span>
@ -47,7 +50,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id624265"></a><p class="title"><b>Table<EFBFBD>1.81.<2E>Parameters</b></p> <a name="id584629"></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>
@ -55,50 +58,37 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/bidirectional_sequence.html" title="Bidirectional A model of <a href="../../../sequence/concepts/bidirectional_sequence.html" title="Bidirectional
Sequence">Bidirectional Sequence">Bidirectional
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr></tbody> </tr></tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.metafunctions.reverse.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.reverse.expression_semantics"></a><h6>
<a name="id624369"></a> <a name="id584731"></a>
<a href="reverse.html#fusion.algorithm.transformation.metafunctions.reverse.expression_semantics">Expression <a href="reverse.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/bidirectional_sequence.html" title="Bidirectional <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/bidirectional_sequence.html" title="Bidirectional
@ -110,28 +100,28 @@
elements in the reverse order to <tt class="computeroutput"><span class="identifier">Sequence</span></tt>. elements in the reverse order to <tt class="computeroutput"><span class="identifier">Sequence</span></tt>.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.reverse.complexity"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.reverse.complexity"></a><h6>
<a name="id624496"></a> <a name="id584854"></a>
<a href="reverse.html#fusion.algorithm.transformation.metafunctions.reverse.complexity">Complexity</a> <a href="reverse.html#fusion.algorithm.transformation.metafunctions.reverse.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.reverse.header"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.reverse.header"></a><h6>
<a name="id624527"></a> <a name="id584884"></a>
<a href="reverse.html#fusion.algorithm.transformation.metafunctions.reverse.header">Header</a> <a href="reverse.html#fusion.algorithm.transformation.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.metafunctions.transform"></a><a href="transform.html" title="transform">transform</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.metafunctions.transform"></a><a href="transform.html" title="transform">transform</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.metafunctions.transform.description"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.transform.description"></a><h6>
<a name="id619064"></a> <a name="id579541"></a>
<a href="transform.html#fusion.algorithm.transformation.metafunctions.transform.description">Description</a> <a href="transform.html#fusion.algorithm.transformation.metafunctions.transform.description">Description</a>
</h6> </h6>
<p> <p>
@ -37,12 +41,11 @@
of <tt class="computeroutput"><span class="identifier">seq</span></tt>. of <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.transform.unary_version_synopsis"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.transform.unary_version_synopsis"></a><h6>
<a name="id619181"></a> <a name="id579655"></a>
<a href="transform.html#fusion.algorithm.transformation.metafunctions.transform.unary_version_synopsis">Unary <a href="transform.html#fusion.algorithm.transformation.metafunctions.transform.unary_version_synopsis">Unary
version 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>
@ -50,7 +53,7 @@
<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="id619385"></a><p class="title"><b>Table<EFBFBD>1.75.<2E>Parameters</b></p> <a name="id579855"></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>
@ -58,72 +61,53 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <tt class="computeroutput"><span class="identifier">f</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
<tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> <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 for each element <tt class="computeroutput"><span class="identifier">e</span></tt> is a valid expression for each element <tt class="computeroutput"><span class="identifier">e</span></tt>
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 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
each element type <tt class="computeroutput"><span class="identifier">E</span></tt>. each element type <tt class="computeroutput"><span class="identifier">E</span></tt>.
</p> </p></td>
</td> <td><p>
<td>
<p>
Transformation function Transformation function
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithm.transformation.metafunctions.transform.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.transform.expression_semantics"></a><h6>
<a name="id619657"></a> <a name="id580126"></a>
<a href="transform.html#fusion.algorithm.transformation.metafunctions.transform.expression_semantics">Expression <a href="transform.html#fusion.algorithm.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="../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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
@ -136,12 +120,11 @@
within <tt class="computeroutput"><span class="identifier">seq</span></tt>. within <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.transform.binary_version_synopsis"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.transform.binary_version_synopsis"></a><h6>
<a name="id619817"></a> <a name="id580282"></a>
<a href="transform.html#fusion.algorithm.transformation.metafunctions.transform.binary_version_synopsis">Binary <a href="transform.html#fusion.algorithm.transformation.metafunctions.transform.binary_version_synopsis">Binary
version 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">Sequence1</span><span class="special">,</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">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>
@ -150,7 +133,7 @@
<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="id620085"></a><p class="title"><b>Table<EFBFBD>1.76.<2E>Parameters</b></p> <a name="id580547"></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>
@ -158,81 +141,57 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq1</span></tt> <tt class="computeroutput"><span class="identifier">seq1</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq2</span></tt> <tt class="computeroutput"><span class="identifier">seq2</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward A model of <a href="../../../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
Operation's argument Operation's argument
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">f</span></tt> <tt class="computeroutput"><span class="identifier">f</span></tt>
</p> </p></td>
</td> <td><p>
<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> <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> 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>. 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 <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> type <tt class="computeroutput"><span class="identifier">E1</span></tt> and <tt class="computeroutput"><span class="identifier">E2</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Transformation function Transformation function
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -248,26 +207,24 @@
within <tt class="computeroutput"><span class="identifier">seq1</span></tt> and <tt class="computeroutput"><span class="identifier">seq2</span></tt> respectively. 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.algorithm.transformation.metafunctions.transform.complexity"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.transform.complexity"></a><h6>
<a name="id620574"></a> <a name="id581034"></a>
<a href="transform.html#fusion.algorithm.transformation.metafunctions.transform.complexity">Complexity</a> <a href="transform.html#fusion.algorithm.transformation.metafunctions.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.algorithm.transformation.metafunctions.transform.header"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.transform.header"></a><h6>
<a name="id620604"></a> <a name="id581061"></a>
<a href="transform.html#fusion.algorithm.transformation.metafunctions.transform.header">Header</a> <a href="transform.html#fusion.algorithm.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>
<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">include</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">include</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.algorithm.transformation.metafunctions.transform.example"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.transform.example"></a><h6>
<a name="id620775"></a> <a name="id581227"></a>
<a href="transform.html#fusion.algorithm.transformation.metafunctions.transform.example">Example</a> <a href="transform.html#fusion.algorithm.transformation.metafunctions.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">typedef</span> <span class="keyword">int</span> <span class="identifier">result_type</span><span class="special">;</span>
@ -282,11 +239,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<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="../../../../../../../../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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.algorithm.transformation.metafunctions.zip"></a><a href="zip.html" title="zip">zip</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.algorithm.transformation.metafunctions.zip"></a><a href="zip.html" title="zip">zip</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.algorithm.transformation.metafunctions.zip.description"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.zip.description"></a><h6>
<a name="id630186"></a> <a name="id589205"></a>
<a href="zip.html#fusion.algorithm.transformation.metafunctions.zip.description">Description</a> <a href="zip.html#fusion.algorithm.transformation.metafunctions.zip.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,11 +38,10 @@
of the members of the component sequences. of the members of the component sequences.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.zip.synopsis"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.zip.synopsis"></a><h6>
<a name="id630215"></a> <a name="id589236"></a>
<a href="zip.html#fusion.algorithm.transformation.metafunctions.zip.synopsis">Synopsis</a> <a href="zip.html#fusion.algorithm.transformation.metafunctions.zip.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">Sequence1</span><span class="special">,</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">Sequence2</span><span class="special">,</span>
<span class="special">...</span> <span class="special">...</span>
@ -50,12 +53,11 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<a name="fusion.algorithm.transformation.metafunctions.zip.expression_semantics"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.zip.expression_semantics"></a><h6>
<a name="id630353"></a> <a name="id589385"></a>
<a href="zip.html#fusion.algorithm.transformation.metafunctions.zip.expression_semantics">Expression <a href="zip.html#fusion.algorithm.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"><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>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A model of the most restrictive <span class="bold"><b>Return type</b></span>: A model of the most restrictive
@ -73,28 +75,28 @@
<span class="char">'c'</span><span class="special">))</span></tt> <span class="char">'c'</span><span class="special">))</span></tt>
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.zip.complexity"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.zip.complexity"></a><h6>
<a name="id630640"></a> <a name="id589698"></a>
<a href="zip.html#fusion.algorithm.transformation.metafunctions.zip.complexity">Complexity</a> <a href="zip.html#fusion.algorithm.transformation.metafunctions.zip.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithm.transformation.metafunctions.zip.header"></a><h6> <a name="fusion.algorithm.transformation.metafunctions.zip.header"></a><h6>
<a name="id630666"></a> <a name="id589725"></a>
<a href="zip.html#fusion.algorithm.transformation.metafunctions.zip.header">Header</a> <a href="zip.html#fusion.algorithm.transformation.metafunctions.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>
<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">include</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">include</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>
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" 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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,32 +23,52 @@
<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="../../../../../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>
</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">
<a name="fusion.change_log"></a><a href="change_log.html" title="Change log">Change log</a></h2></div></div></div> <div><div><h2 class="title" style="clear: both">
<a name="fusion.change_log"></a><a href="change_log.html" title="Change log">Change log</a>
</h2></div></div>
<div></div>
</div>
<p> <p>
This section summarizes significant changes to the Fusion library. This section summarizes significant changes to the Fusion library.
</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 <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">tuple</span></tt>
support. support. (Joel de Guzman)
</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 <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">variant</span></tt>
support. support. (Joel de Guzman)
</li> </li>
<li> <li>
Feb 15, 2007: Added functional module. Feb 15, 2007: Added functional module. (Tobias Schwinger)
</li>
<li>
APRIL 2, 2007: Added struct adapter. (Joel de Guzman)
</li>
<li>
May 8, 2007: Added associative struct adapter. (Dan Marsden)
</li>
<li>
Dec 20, 2007: Removed <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">variant</span></tt>
support. After thorough investigation, I think now that the move to make
variant a fusion sequence is rather quirky. A variant will always have a
size==1 regardless of the number of types it can contain and there's no way
to know at compile time what it contains. Iterating over its types is simply
wrong. All these imply that the variant is <span class="bold"><b>not</b></span>
a fusion sequence. (Joel de Guzman)
</li> </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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,20 +3,20 @@
<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>Container</title> <title>Container</title>
<link rel="stylesheet" href="../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="sequence/operator/comparison/greater_than_equal.html" title="greater <link rel="previous" href="sequence/operator/comparison/greater_than_equal.html" title="greater
than equal"> than equal">
<link rel="next" href="container/vector.html" title="vector"> <link rel="next" href="container/vector.html" title="vector">
</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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -24,8 +24,12 @@
<a accesskey="p" href="sequence/operator/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="container/vector.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="sequence/operator/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="container/vector.html"><img src="../../../../../doc/html/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">
<a name="fusion.container"></a><a href="container.html" title="Container">Container</a></h2></div></div></div> <div><div><h2 class="title" style="clear: both">
<a name="fusion.container"></a><a href="container.html" title="Container">Container</a>
</h2></div></div>
<div></div>
</div>
<div class="toc"><dl> <div class="toc"><dl>
<dt><span class="section"><a href="container/vector.html">vector</a></span></dt> <dt><span class="section"><a href="container/vector.html">vector</a></span></dt>
<dt><span class="section"><a href="container/cons.html">cons</a></span></dt> <dt><span class="section"><a href="container/cons.html">cons</a></span></dt>
@ -49,21 +53,21 @@
These containers are more or less counterparts of those in <a href="http://en.wikipedia.org/wiki/Standard_Template_Library" target="_top">STL</a>. These containers are more or less counterparts of those in <a href="http://en.wikipedia.org/wiki/Standard_Template_Library" target="_top">STL</a>.
</p> </p>
<a name="fusion.container.header"></a><h3> <a name="fusion.container.header"></a><h3>
<a name="id524649"></a> <a name="id478616"></a>
<a href="container.html#fusion.container.header">Header</a> <a href="container.html#fusion.container.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">container</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">container</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">include</span><span class="special">/</span><span class="identifier">container</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">include</span><span class="special">/</span><span class="identifier">container</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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>cons</title> <title>cons</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../container.html" title="Container"> <link rel="up" href="../container.html" title="Container">
<link rel="prev" href="vector.html" title="vector"> <link rel="previous" href="vector.html" title="vector">
<link rel="next" href="list.html" title="list"> <link rel="next" href="list.html" title="list">
</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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,10 +23,14 @@
<a accesskey="p" href="vector.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../container.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="list.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="vector.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../container.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="list.html"><img src="../../../../../../doc/html/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">
<a name="fusion.container.cons"></a><a href="cons.html" title="cons">cons</a></h3></div></div></div> <div><div><h3 class="title">
<a name="fusion.container.cons"></a><a href="cons.html" title="cons">cons</a>
</h3></div></div>
<div></div>
</div>
<a name="fusion.container.cons.description"></a><h4> <a name="fusion.container.cons.description"></a><h4>
<a name="id527545"></a> <a name="id481484"></a>
<a href="cons.html#fusion.container.cons.description">Description</a> <a href="cons.html#fusion.container.cons.description">Description</a>
</h4> </h4>
<p> <p>
@ -42,23 +46,21 @@
Inlined Functions</a>). Inlined Functions</a>).
</p> </p>
<a name="fusion.container.cons.header"></a><h4> <a name="fusion.container.cons.header"></a><h4>
<a name="id527690"></a> <a name="id481626"></a>
<a href="cons.html#fusion.container.cons.header">Header</a> <a href="cons.html#fusion.container.cons.header">Header</a>
</h4> </h4>
<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">container</span><span class="special">/</span><span class="identifier">list</span><span class="special">/</span><span class="identifier">cons</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">container</span><span class="special">/</span><span class="identifier">list</span><span class="special">/</span><span class="identifier">cons</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">include</span><span class="special">/</span><span class="identifier">cons</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">include</span><span class="special">/</span><span class="identifier">cons</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.container.cons.synopsis"></a><h4> <a name="fusion.container.cons.synopsis"></a><h4>
<a name="id527858"></a> <a name="id481791"></a>
<a href="cons.html#fusion.container.cons.synopsis">Synopsis</a> <a href="cons.html#fusion.container.cons.synopsis">Synopsis</a>
</h4> </h4>
<pre class="programlisting"> <pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Car</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Cdr</span> <span class="special">=</span> <span class="identifier">nil</span><span class="special">&gt;</span>
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Car</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Cdr</span> <span class="special">=</span> <span class="identifier">nil</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">cons</span><span class="special">;</span> <span class="keyword">struct</span> <span class="identifier">cons</span><span class="special">;</span>
</pre> </pre>
<a name="fusion.container.cons.template_parameters"></a><h4> <a name="fusion.container.cons.template_parameters"></a><h4>
<a name="id527966"></a> <a name="id481898"></a>
<a href="cons.html#fusion.container.cons.template_parameters">Template parameters</a> <a href="cons.html#fusion.container.cons.template_parameters">Template parameters</a>
</h4> </h4>
<div class="informaltable"><table class="table"> <div class="informaltable"><table class="table">
@ -68,60 +70,42 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th> <th><p>
<th>
<p>
Default Default
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Car</span></tt> <tt class="computeroutput"><span class="identifier">Car</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Head type Head type
</p> </p></td>
</td> <td><p>
<td> </p></td>
<p>
</p>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Cdr</span></tt> <tt class="computeroutput"><span class="identifier">Cdr</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Tail type Tail type
</p> </p></td>
</td> <td><p>
<td>
<p>
<tt class="computeroutput"><span class="identifier">nil</span></tt> <tt class="computeroutput"><span class="identifier">nil</span></tt>
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table></div> </table></div>
<a name="fusion.container.cons.model_of"></a><h4> <a name="fusion.container.cons.model_of"></a><h4>
<a name="id528116"></a> <a name="id482046"></a>
<a href="cons.html#fusion.container.cons.model_of">Model of</a> <a href="cons.html#fusion.container.cons.model_of">Model of</a>
</h4> </h4>
<div class="itemizedlist"><ul type="disc"><li><a href="../sequence/concepts/forward_sequence.html" title="Forward <div class="itemizedlist"><ul type="disc"><li><a href="../sequence/concepts/forward_sequence.html" title="Forward
@ -163,7 +147,7 @@
</dl> </dl>
</div> </div>
<a name="fusion.container.cons.expression_semantics"></a><h4> <a name="fusion.container.cons.expression_semantics"></a><h4>
<a name="id528397"></a> <a name="id482328"></a>
<a href="cons.html#fusion.container.cons.expression_semantics">Expression Semantics</a> <a href="cons.html#fusion.container.cons.expression_semantics">Expression Semantics</a>
</h4> </h4>
<p> <p>
@ -178,115 +162,83 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Expression Expression
</p> </p></th>
</th> <th><p>
<th>
<p>
Semantics Semantics
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">nil</span><span class="special">()</span></tt> <tt class="computeroutput"><span class="identifier">nil</span><span class="special">()</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Creates an empty list. Creates an empty list.
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">C</span><span class="special">()</span></tt> <tt class="computeroutput"><span class="identifier">C</span><span class="special">()</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Creates a cons with default constructed elements. Creates a cons with default constructed elements.
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">C</span><span class="special">(</span><span class="identifier">car</span><span class="special">)</span></tt> <tt class="computeroutput"><span class="identifier">C</span><span class="special">(</span><span class="identifier">car</span><span class="special">)</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Creates a cons with <tt class="computeroutput"><span class="identifier">car</span></tt> Creates a cons with <tt class="computeroutput"><span class="identifier">car</span></tt>
head and default constructed tail. head and default constructed tail.
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">C</span><span class="special">(</span><span class="identifier">car</span><span class="special">,</span> <tt class="computeroutput"><span class="identifier">C</span><span class="special">(</span><span class="identifier">car</span><span class="special">,</span>
<span class="identifier">cdr</span><span class="special">)</span></tt> <span class="identifier">cdr</span><span class="special">)</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Creates a cons with <tt class="computeroutput"><span class="identifier">car</span></tt> Creates a cons with <tt class="computeroutput"><span class="identifier">car</span></tt>
head and <tt class="computeroutput"><span class="identifier">cdr</span></tt> tail. head and <tt class="computeroutput"><span class="identifier">cdr</span></tt> tail.
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">C</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt> <tt class="computeroutput"><span class="identifier">C</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Copy constructs a cons from a <a href="../sequence/concepts/forward_sequence.html" title="Forward Copy constructs a cons from a <a href="../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>, <tt class="computeroutput"><span class="identifier">s</span></tt>. Sequence</a>, <tt class="computeroutput"><span class="identifier">s</span></tt>.
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">l</span> <span class="special">=</span> <tt class="computeroutput"><span class="identifier">l</span> <span class="special">=</span>
<span class="identifier">s</span></tt> <span class="identifier">s</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
Assigns to a cons, <tt class="computeroutput"><span class="identifier">l</span></tt>, Assigns to a cons, <tt class="computeroutput"><span class="identifier">l</span></tt>,
from a <a href="../sequence/concepts/forward_sequence.html" title="Forward from a <a href="../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>, <tt class="computeroutput"><span class="identifier">s</span></tt>. Sequence</a>, <tt class="computeroutput"><span class="identifier">s</span></tt>.
</p> </p></td>
</td>
</tr> </tr>
<tr> <tr>
<td> <td><p>
<p>
<tt class="computeroutput"><a href="../sequence/intrinsic/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;(</span><span class="identifier">l</span><span class="special">)</span></tt> <tt class="computeroutput"><a href="../sequence/intrinsic/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;(</span><span class="identifier">l</span><span class="special">)</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
The Nth element from the beginning of the sequence; see <a href="../sequence/intrinsic/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a>. The Nth element from the beginning of the sequence; see <a href="../sequence/intrinsic/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a>.
</p> </p></td>
</td>
</tr> </tr>
</tbody> </tbody>
</table></div> </table></div>
<div class="sidebar"><p> <div class="sidebar"><p>
<span class="inlinemediaobject"><img src="../../images/note.png" alt="note"></span> <tt class="computeroutput"><a href="../sequence/intrinsic/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;(</span><span class="identifier">l</span><span class="special">)</span></tt> is provided <span class="inlinemediaobject"><img src="images/note.png" alt="note"></span> <tt class="computeroutput"><a href="../sequence/intrinsic/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;(</span><span class="identifier">l</span><span class="special">)</span></tt> is provided
for convenience and compatibility with the original <a href="http://www.boost.org/libs/tuple/doc/tuple_users_guide.html" target="_top">Boost.Tuple</a> for convenience and compatibility with the original <a href="http://www.boost.org/libs/tuple/doc/tuple_users_guide.html" target="_top">Boost.Tuple</a>
library, despite <tt class="computeroutput"><span class="identifier">cons</span></tt> being library, despite <tt class="computeroutput"><span class="identifier">cons</span></tt> being
a <a href="../sequence/concepts/forward_sequence.html" title="Forward a <a href="../sequence/concepts/forward_sequence.html" title="Forward
@ -298,22 +250,22 @@
Inlined Functions</a>). Inlined Functions</a>).
</p></div> </p></div>
<a name="fusion.container.cons.example"></a><h4> <a name="fusion.container.cons.example"></a><h4>
<a name="id529048"></a> <a name="id482977"></a>
<a href="cons.html#fusion.container.cons.example">Example</a> <a href="cons.html#fusion.container.cons.example">Example</a>
</h4> </h4>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">cons</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="identifier">cons</span><span class="special">&lt;</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="identifier">l</span><span class="special">(</span><span class="number">12</span><span class="special">,</span> <span class="identifier">cons</span><span class="special">&lt;</span><span class="keyword">float</span><span class="special">&gt;(</span><span class="number">5.5f</span><span class="special">));</span>
<span class="identifier">cons</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="identifier">cons</span><span class="special">&lt;</span><span class="keyword">float</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="identifier">l</span><span class="special">(</span><span class="number">12</span><span class="special">,</span> <span class="identifier">cons</span><span class="special">&lt;</span><span class="keyword">float</span><span class="special">&gt;(</span><span class="number">5.5f</span><span class="special">));</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <a href="../sequence/intrinsic/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special">&lt;</span><span class="number">0</span><span class="special">&gt;(</span><span class="identifier">l</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <a href="../sequence/intrinsic/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special">&lt;</span><span class="number">0</span><span class="special">&gt;(</span><span class="identifier">l</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <a href="../sequence/intrinsic/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special">&lt;</span><span class="number">1</span><span class="special">&gt;(</span><span class="identifier">l</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <a href="../sequence/intrinsic/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special">&lt;</span><span class="number">1</span><span class="special">&gt;(</span><span class="identifier">l</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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>Conversion</title> <title>Conversion</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../container.html" title="Container"> <link rel="up" href="../container.html" title="Container">
<link rel="prev" href="generation/metafunctions/map_tie.html" title="map_tie"> <link rel="previous" href="generation/metafunctions/map_tie.html" title="map_tie">
<link rel="next" href="conversion/functions.html" title="Functions"> <link rel="next" href="conversion/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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,8 +23,12 @@
<a accesskey="p" href="generation/metafunctions/map_tie.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../container.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="conversion/functions.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="generation/metafunctions/map_tie.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../container.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="conversion/functions.html"><img src="../../../../../../doc/html/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">
<a name="fusion.container.conversion"></a><a href="conversion.html" title="Conversion">Conversion</a></h3></div></div></div> <div><div><h3 class="title">
<a name="fusion.container.conversion"></a><a href="conversion.html" title="Conversion">Conversion</a>
</h3></div></div>
<div></div>
</div>
<div class="toc"><dl> <div class="toc"><dl>
<dt><span class="section"><a href="conversion/functions.html">Functions</a></span></dt> <dt><span class="section"><a href="conversion/functions.html">Functions</a></span></dt>
<dt><span class="section"><a href="conversion/metafunctions.html">Metafunctions</a></span></dt> <dt><span class="section"><a href="conversion/metafunctions.html">Metafunctions</a></span></dt>
@ -34,20 +38,20 @@
types using one of these conversion functions. types using one of these conversion functions.
</p> </p>
<a name="fusion.container.conversion.header"></a><h4> <a name="fusion.container.conversion.header"></a><h4>
<a name="id553528"></a> <a name="id511157"></a>
<a href="conversion.html#fusion.container.conversion.header">Header</a> <a href="conversion.html#fusion.container.conversion.header">Header</a>
</h4> </h4>
<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">include</span><span class="special">/</span><span class="identifier">convert</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">include</span><span class="special">/</span><span class="identifier">convert</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../conversion.html" title="Conversion"> <link rel="up" href="../conversion.html" title="Conversion">
<link rel="prev" href="../conversion.html" title="Conversion"> <link rel="previous" href="../conversion.html" title="Conversion">
<link rel="next" href="functions/as_list.html" title="as_list"> <link rel="next" href="functions/as_list.html" title="as_list">
</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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,8 +23,12 @@
<a accesskey="p" href="../conversion.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../conversion.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/as_list.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="../conversion.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../conversion.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/as_list.html"><img src="../../../../../../../doc/html/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">
<a name="fusion.container.conversion.functions"></a><a href="functions.html" title="Functions">Functions</a></h4></div></div></div> <div><div><h4 class="title">
<a name="fusion.container.conversion.functions"></a><a href="functions.html" title="Functions">Functions</a>
</h4></div></div>
<div></div>
</div>
<div class="toc"><dl> <div class="toc"><dl>
<dt><span class="section"><a href="functions/as_list.html">as_list</a></span></dt> <dt><span class="section"><a href="functions/as_list.html">as_list</a></span></dt>
<dt><span class="section"><a href="functions/as_vector.html">as_vector</a></span></dt> <dt><span class="section"><a href="functions/as_vector.html">as_vector</a></span></dt>
@ -34,11 +38,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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>as_list</title> <title>as_list</title>
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" href="../functions.html" title="Functions">
<link rel="next" href="as_vector.html" title="as_vector"> <link rel="next" href="as_vector.html" title="as_vector">
</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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,21 +23,24 @@
<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="as_vector.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <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="as_vector.html"><img src="../../../../../../../../doc/html/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">
<a name="fusion.container.conversion.functions.as_list"></a><a href="as_list.html" title="as_list">as_list</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.container.conversion.functions.as_list"></a><a href="as_list.html" title="as_list">as_list</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.container.conversion.functions.as_list.description"></a><h6> <a name="fusion.container.conversion.functions.as_list.description"></a><h6>
<a name="id553663"></a> <a name="id511286"></a>
<a href="as_list.html#fusion.container.conversion.functions.as_list.description">Description</a> <a href="as_list.html#fusion.container.conversion.functions.as_list.description">Description</a>
</h6> </h6>
<p> <p>
Convert a fusion sequence to a <a href="../../list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a>. Convert a fusion sequence to a <a href="../../list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a>.
</p> </p>
<a name="fusion.container.conversion.functions.as_list.synopsis"></a><h6> <a name="fusion.container.conversion.functions.as_list.synopsis"></a><h6>
<a name="id553712"></a> <a name="id511333"></a>
<a href="as_list.html#fusion.container.conversion.functions.as_list.synopsis">Synopsis</a> <a href="as_list.html#fusion.container.conversion.functions.as_list.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">Sequence</span><span class="special">&gt;</span>
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">&gt;</span>
<span class="keyword">typename</span> <span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_list</span><span class="special">&lt;</span><span class="identifier">Sequence</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">as_list</span><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span>
<span class="identifier">as_list</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">as_list</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
@ -46,7 +49,7 @@
<span class="identifier">as_list</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">as_list</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>
<a name="fusion.container.conversion.functions.as_list.parameters"></a><h6> <a name="fusion.container.conversion.functions.as_list.parameters"></a><h6>
<a name="id553970"></a> <a name="id511589"></a>
<a href="as_list.html#fusion.container.conversion.functions.as_list.parameters">Parameters</a> <a href="as_list.html#fusion.container.conversion.functions.as_list.parameters">Parameters</a>
</h6> </h6>
<div class="informaltable"><table class="table"> <div class="informaltable"><table class="table">
@ -56,47 +59,34 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
An instance of Sequence An instance of Sequence
</p> </p></td>
</td> <td><p>
<td>
<p>
The sequence to convert. The sequence to convert.
</p> </p></td>
</td>
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.container.conversion.functions.as_list.expression_semantics"></a><h6> <a name="fusion.container.conversion.functions.as_list.expression_semantics"></a><h6>
<a name="id554078"></a> <a name="id511694"></a>
<a href="as_list.html#fusion.container.conversion.functions.as_list.expression_semantics">Expression <a href="as_list.html#fusion.container.conversion.functions.as_list.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">as_list</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
<span class="identifier">as_list</span><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 href="../metafunctions/as_list.html" title="as_list"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_list</span></tt></a><tt class="computeroutput"><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span></tt> <span class="bold"><b>Return type</b></span>: <a href="../metafunctions/as_list.html" title="as_list"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_list</span></tt></a><tt class="computeroutput"><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span></tt>
@ -106,28 +96,27 @@
<tt class="computeroutput"><span class="identifier">seq</span></tt>, to a <a href="../../list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a>. <tt class="computeroutput"><span class="identifier">seq</span></tt>, to a <a href="../../list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a>.
</p> </p>
<a name="fusion.container.conversion.functions.as_list.header"></a><h6> <a name="fusion.container.conversion.functions.as_list.header"></a><h6>
<a name="id554240"></a> <a name="id511852"></a>
<a href="as_list.html#fusion.container.conversion.functions.as_list.header">Header</a> <a href="as_list.html#fusion.container.conversion.functions.as_list.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">container</span><span class="special">/</span><span class="identifier">list</span><span class="special">/</span><span class="identifier">convert</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">container</span><span class="special">/</span><span class="identifier">list</span><span class="special">/</span><span class="identifier">convert</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">include</span><span class="special">/</span><span class="identifier">as_list</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">include</span><span class="special">/</span><span class="identifier">as_list</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.container.conversion.functions.as_list.example"></a><h6> <a name="fusion.container.conversion.functions.as_list.example"></a><h6>
<a name="id554410"></a> <a name="id512018"></a>
<a href="as_list.html#fusion.container.conversion.functions.as_list.example">Example</a> <a href="as_list.html#fusion.container.conversion.functions.as_list.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">as_list</span><span class="special">(</span><a href="../../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">'x'</span><span class="special">,</span> <span class="number">123</span><span class="special">,</span> <span class="string">"hello"</span><span class="special">))</span>
<span class="identifier">as_list</span><span class="special">(</span><a href="../../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">'x'</span><span class="special">,</span> <span class="number">123</span><span class="special">,</span> <span class="string">"hello"</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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>as_map</title> <title>as_map</title>
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="as_set.html" title="as_set"> <link rel="previous" href="as_set.html" title="as_set">
<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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,21 +23,24 @@
<a accesskey="p" href="as_set.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="as_set.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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage">
<a name="fusion.container.conversion.functions.as_map"></a><a href="as_map.html" title="as_map">as_map</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.container.conversion.functions.as_map"></a><a href="as_map.html" title="as_map">as_map</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.container.conversion.functions.as_map.description"></a><h6> <a name="fusion.container.conversion.functions.as_map.description"></a><h6>
<a name="id556270"></a> <a name="id513836"></a>
<a href="as_map.html#fusion.container.conversion.functions.as_map.description">Description</a> <a href="as_map.html#fusion.container.conversion.functions.as_map.description">Description</a>
</h6> </h6>
<p> <p>
Convert a fusion sequence to a <a href="../../map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a>. Convert a fusion sequence to a <a href="../../map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a>.
</p> </p>
<a name="fusion.container.conversion.functions.as_map.synopsis"></a><h6> <a name="fusion.container.conversion.functions.as_map.synopsis"></a><h6>
<a name="id556318"></a> <a name="id513883"></a>
<a href="as_map.html#fusion.container.conversion.functions.as_map.synopsis">Synopsis</a> <a href="as_map.html#fusion.container.conversion.functions.as_map.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">Sequence</span><span class="special">&gt;</span>
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">&gt;</span>
<span class="keyword">typename</span> <span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_map</span><span class="special">&lt;</span><span class="identifier">Sequence</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">as_map</span><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span>
<span class="identifier">as_map</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">as_map</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
@ -46,7 +49,7 @@
<span class="identifier">as_map</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">as_map</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>
<a name="fusion.container.conversion.functions.as_map.parameters"></a><h6> <a name="fusion.container.conversion.functions.as_map.parameters"></a><h6>
<a name="id556576"></a> <a name="id514138"></a>
<a href="as_map.html#fusion.container.conversion.functions.as_map.parameters">Parameters</a> <a href="as_map.html#fusion.container.conversion.functions.as_map.parameters">Parameters</a>
</h6> </h6>
<div class="informaltable"><table class="table"> <div class="informaltable"><table class="table">
@ -56,47 +59,34 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
An instance of Sequence An instance of Sequence
</p> </p></td>
</td> <td><p>
<td>
<p>
The sequence to convert. The sequence to convert.
</p> </p></td>
</td>
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.container.conversion.functions.as_map.expression_semantics"></a><h6> <a name="fusion.container.conversion.functions.as_map.expression_semantics"></a><h6>
<a name="id556684"></a> <a name="id514243"></a>
<a href="as_map.html#fusion.container.conversion.functions.as_map.expression_semantics">Expression <a href="as_map.html#fusion.container.conversion.functions.as_map.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">as_map</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
<span class="identifier">as_map</span><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 href="../metafunctions/as_map.html" title="as_map"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_map</span></tt></a><tt class="computeroutput"><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span></tt> <span class="bold"><b>Return type</b></span>: <a href="../metafunctions/as_map.html" title="as_map"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_map</span></tt></a><tt class="computeroutput"><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span></tt>
@ -111,30 +101,29 @@
There may be no duplicate <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></tt></a> key types. There may be no duplicate <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></tt></a> key types.
</p> </p>
<a name="fusion.container.conversion.functions.as_map.header"></a><h6> <a name="fusion.container.conversion.functions.as_map.header"></a><h6>
<a name="id556891"></a> <a name="id514447"></a>
<a href="as_map.html#fusion.container.conversion.functions.as_map.header">Header</a> <a href="as_map.html#fusion.container.conversion.functions.as_map.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">container</span><span class="special">/</span><span class="identifier">map</span><span class="special">/</span><span class="identifier">convert</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">container</span><span class="special">/</span><span class="identifier">map</span><span class="special">/</span><span class="identifier">convert</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">include</span><span class="special">/</span><span class="identifier">as_map</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">include</span><span class="special">/</span><span class="identifier">as_map</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.container.conversion.functions.as_map.example"></a><h6> <a name="fusion.container.conversion.functions.as_map.example"></a><h6>
<a name="id557060"></a> <a name="id514613"></a>
<a href="as_map.html#fusion.container.conversion.functions.as_map.example">Example</a> <a href="as_map.html#fusion.container.conversion.functions.as_map.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">as_map</span><span class="special">(</span><a href="../../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">as_map</span><span class="special">(</span><a href="../../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="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">make_pair</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;(</span><span class="char">'X'</span><span class="special">)</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">make_pair</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;(</span><span class="char">'X'</span><span class="special">)</span>
<span class="special">,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">make_pair</span></tt></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">&gt;(</span><span class="string">"Men"</span><span class="special">)))</span> <span class="special">,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">make_pair</span></tt></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">&gt;(</span><span class="string">"Men"</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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>as_set</title> <title>as_set</title>
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="as_vector.html" title="as_vector"> <link rel="previous" href="as_vector.html" title="as_vector">
<link rel="next" href="as_map.html" title="as_map"> <link rel="next" href="as_map.html" title="as_map">
</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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,21 +23,24 @@
<a accesskey="p" href="as_vector.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="as_map.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="as_vector.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="as_map.html"><img src="../../../../../../../../doc/html/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">
<a name="fusion.container.conversion.functions.as_set"></a><a href="as_set.html" title="as_set">as_set</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.container.conversion.functions.as_set"></a><a href="as_set.html" title="as_set">as_set</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.container.conversion.functions.as_set.description"></a><h6> <a name="fusion.container.conversion.functions.as_set.description"></a><h6>
<a name="id555396"></a> <a name="id512981"></a>
<a href="as_set.html#fusion.container.conversion.functions.as_set.description">Description</a> <a href="as_set.html#fusion.container.conversion.functions.as_set.description">Description</a>
</h6> </h6>
<p> <p>
Convert a fusion sequence to a <a href="../../set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a>. Convert a fusion sequence to a <a href="../../set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a>.
</p> </p>
<a name="fusion.container.conversion.functions.as_set.synopsis"></a><h6> <a name="fusion.container.conversion.functions.as_set.synopsis"></a><h6>
<a name="id555444"></a> <a name="id513027"></a>
<a href="as_set.html#fusion.container.conversion.functions.as_set.synopsis">Synopsis</a> <a href="as_set.html#fusion.container.conversion.functions.as_set.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">Sequence</span><span class="special">&gt;</span>
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">&gt;</span>
<span class="keyword">typename</span> <span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_set</span><span class="special">&lt;</span><span class="identifier">Sequence</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">as_set</span><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span>
<span class="identifier">as_set</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">as_set</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
@ -46,7 +49,7 @@
<span class="identifier">as_set</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">as_set</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>
<a name="fusion.container.conversion.functions.as_set.parameters"></a><h6> <a name="fusion.container.conversion.functions.as_set.parameters"></a><h6>
<a name="id555702"></a> <a name="id513282"></a>
<a href="as_set.html#fusion.container.conversion.functions.as_set.parameters">Parameters</a> <a href="as_set.html#fusion.container.conversion.functions.as_set.parameters">Parameters</a>
</h6> </h6>
<div class="informaltable"><table class="table"> <div class="informaltable"><table class="table">
@ -56,47 +59,34 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
An instance of Sequence An instance of Sequence
</p> </p></td>
</td> <td><p>
<td>
<p>
The sequence to convert. The sequence to convert.
</p> </p></td>
</td>
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.container.conversion.functions.as_set.expression_semantics"></a><h6> <a name="fusion.container.conversion.functions.as_set.expression_semantics"></a><h6>
<a name="id555809"></a> <a name="id513387"></a>
<a href="as_set.html#fusion.container.conversion.functions.as_set.expression_semantics">Expression <a href="as_set.html#fusion.container.conversion.functions.as_set.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">as_set</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
<span class="identifier">as_set</span><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 href="../metafunctions/as_set.html" title="as_set"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_set</span></tt></a><tt class="computeroutput"><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span></tt> <span class="bold"><b>Return type</b></span>: <a href="../metafunctions/as_set.html" title="as_set"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_set</span></tt></a><tt class="computeroutput"><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span></tt>
@ -110,28 +100,27 @@
key types. key types.
</p> </p>
<a name="fusion.container.conversion.functions.as_set.header"></a><h6> <a name="fusion.container.conversion.functions.as_set.header"></a><h6>
<a name="id555982"></a> <a name="id513556"></a>
<a href="as_set.html#fusion.container.conversion.functions.as_set.header">Header</a> <a href="as_set.html#fusion.container.conversion.functions.as_set.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">container</span><span class="special">/</span><span class="identifier">set</span><span class="special">/</span><span class="identifier">convert</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">container</span><span class="special">/</span><span class="identifier">set</span><span class="special">/</span><span class="identifier">convert</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">include</span><span class="special">/</span><span class="identifier">as_set</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">include</span><span class="special">/</span><span class="identifier">as_set</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.container.conversion.functions.as_set.example"></a><h6> <a name="fusion.container.conversion.functions.as_set.example"></a><h6>
<a name="id556151"></a> <a name="id513722"></a>
<a href="as_set.html#fusion.container.conversion.functions.as_set.example">Example</a> <a href="as_set.html#fusion.container.conversion.functions.as_set.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">as_set</span><span class="special">(</span><a href="../../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">'x'</span><span class="special">,</span> <span class="number">123</span><span class="special">,</span> <span class="string">"hello"</span><span class="special">))</span>
<span class="identifier">as_set</span><span class="special">(</span><a href="../../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">'x'</span><span class="special">,</span> <span class="number">123</span><span class="special">,</span> <span class="string">"hello"</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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>as_vector</title> <title>as_vector</title>
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="as_list.html" title="as_list"> <link rel="previous" href="as_list.html" title="as_list">
<link rel="next" href="as_set.html" title="as_set"> <link rel="next" href="as_set.html" title="as_set">
</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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,21 +23,24 @@
<a accesskey="p" href="as_list.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="as_set.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="as_list.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="as_set.html"><img src="../../../../../../../../doc/html/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">
<a name="fusion.container.conversion.functions.as_vector"></a><a href="as_vector.html" title="as_vector">as_vector</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.container.conversion.functions.as_vector"></a><a href="as_vector.html" title="as_vector">as_vector</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.container.conversion.functions.as_vector.description"></a><h6> <a name="fusion.container.conversion.functions.as_vector.description"></a><h6>
<a name="id554529"></a> <a name="id512133"></a>
<a href="as_vector.html#fusion.container.conversion.functions.as_vector.description">Description</a> <a href="as_vector.html#fusion.container.conversion.functions.as_vector.description">Description</a>
</h6> </h6>
<p> <p>
Convert a fusion sequence to a <a href="../../vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>. Convert a fusion sequence to a <a href="../../vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>.
</p> </p>
<a name="fusion.container.conversion.functions.as_vector.synopsis"></a><h6> <a name="fusion.container.conversion.functions.as_vector.synopsis"></a><h6>
<a name="id554577"></a> <a name="id512180"></a>
<a href="as_vector.html#fusion.container.conversion.functions.as_vector.synopsis">Synopsis</a> <a href="as_vector.html#fusion.container.conversion.functions.as_vector.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">Sequence</span><span class="special">&gt;</span>
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">&gt;</span>
<span class="keyword">typename</span> <span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_vector</span><span class="special">&lt;</span><span class="identifier">Sequence</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">as_vector</span><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span>
<span class="identifier">as_vector</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">as_vector</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
@ -46,7 +49,7 @@
<span class="identifier">as_vector</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">as_vector</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>
<a name="fusion.container.conversion.functions.as_vector.parameters"></a><h6> <a name="fusion.container.conversion.functions.as_vector.parameters"></a><h6>
<a name="id554836"></a> <a name="id512435"></a>
<a href="as_vector.html#fusion.container.conversion.functions.as_vector.parameters">Parameters</a> <a href="as_vector.html#fusion.container.conversion.functions.as_vector.parameters">Parameters</a>
</h6> </h6>
<div class="informaltable"><table class="table"> <div class="informaltable"><table class="table">
@ -56,47 +59,34 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">seq</span></tt> <tt class="computeroutput"><span class="identifier">seq</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
An instance of Sequence An instance of Sequence
</p> </p></td>
</td> <td><p>
<td>
<p>
The sequence to convert. The sequence to convert.
</p> </p></td>
</td>
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.container.conversion.functions.as_vector.expression_semantics"></a><h6> <a name="fusion.container.conversion.functions.as_vector.expression_semantics"></a><h6>
<a name="id554944"></a> <a name="id512541"></a>
<a href="as_vector.html#fusion.container.conversion.functions.as_vector.expression_semantics">Expression <a href="as_vector.html#fusion.container.conversion.functions.as_vector.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">as_vector</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
<span class="identifier">as_vector</span><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 href="../metafunctions/as_vector.html" title="as_vector"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_vector</span></tt></a><tt class="computeroutput"><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span></tt> <span class="bold"><b>Return type</b></span>: <a href="../metafunctions/as_vector.html" title="as_vector"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_vector</span></tt></a><tt class="computeroutput"><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span></tt>
@ -106,28 +96,27 @@
<tt class="computeroutput"><span class="identifier">seq</span></tt>, to a <a href="../../vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>. <tt class="computeroutput"><span class="identifier">seq</span></tt>, to a <a href="../../vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>.
</p> </p>
<a name="fusion.container.conversion.functions.as_vector.header"></a><h6> <a name="fusion.container.conversion.functions.as_vector.header"></a><h6>
<a name="id555107"></a> <a name="id512700"></a>
<a href="as_vector.html#fusion.container.conversion.functions.as_vector.header">Header</a> <a href="as_vector.html#fusion.container.conversion.functions.as_vector.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">container</span><span class="special">/</span><span class="identifier">vector</span><span class="special">/</span><span class="identifier">convert</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">container</span><span class="special">/</span><span class="identifier">vector</span><span class="special">/</span><span class="identifier">convert</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">include</span><span class="special">/</span><span class="identifier">as_vector</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">include</span><span class="special">/</span><span class="identifier">as_vector</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.container.conversion.functions.as_vector.example"></a><h6> <a name="fusion.container.conversion.functions.as_vector.example"></a><h6>
<a name="id555277"></a> <a name="id512866"></a>
<a href="as_vector.html#fusion.container.conversion.functions.as_vector.example">Example</a> <a href="as_vector.html#fusion.container.conversion.functions.as_vector.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">as_vector</span><span class="special">(</span><a href="../../generation/functions/make_list.html" title="make_list"><tt class="computeroutput"><span class="identifier">make_list</span></tt></a><span class="special">(</span><span class="char">'x'</span><span class="special">,</span> <span class="number">123</span><span class="special">,</span> <span class="string">"hello"</span><span class="special">))</span>
<span class="identifier">as_vector</span><span class="special">(</span><a href="../../generation/functions/make_list.html" title="make_list"><tt class="computeroutput"><span class="identifier">make_list</span></tt></a><span class="special">(</span><span class="char">'x'</span><span class="special">,</span> <span class="number">123</span><span class="special">,</span> <span class="string">"hello"</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../conversion.html" title="Conversion"> <link rel="up" href="../conversion.html" title="Conversion">
<link rel="prev" href="functions/as_map.html" title="as_map"> <link rel="previous" href="functions/as_map.html" title="as_map">
<link rel="next" href="metafunctions/as_list.html" title="as_list"> <link rel="next" href="metafunctions/as_list.html" title="as_list">
</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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,8 +23,12 @@
<a accesskey="p" href="functions/as_map.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../conversion.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/as_list.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="functions/as_map.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../conversion.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/as_list.html"><img src="../../../../../../../doc/html/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">
<a name="fusion.container.conversion.metafunctions"></a><a href="metafunctions.html" title="Metafunctions">Metafunctions</a></h4></div></div></div> <div><div><h4 class="title">
<a name="fusion.container.conversion.metafunctions"></a><a href="metafunctions.html" title="Metafunctions">Metafunctions</a>
</h4></div></div>
<div></div>
</div>
<div class="toc"><dl> <div class="toc"><dl>
<dt><span class="section"><a href="metafunctions/as_list.html">as_list</a></span></dt> <dt><span class="section"><a href="metafunctions/as_list.html">as_list</a></span></dt>
<dt><span class="section"><a href="metafunctions/as_vector.html">as_vector</a></span></dt> <dt><span class="section"><a href="metafunctions/as_vector.html">as_vector</a></span></dt>
@ -34,11 +38,12 @@
</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>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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>as_list</title> <title>as_list</title>
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="previous" href="../metafunctions.html" title="Metafunctions">
<link rel="next" href="as_vector.html" title="as_vector"> <link rel="next" href="as_vector.html" title="as_vector">
</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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,25 +23,28 @@
<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="as_vector.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <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="as_vector.html"><img src="../../../../../../../../doc/html/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">
<a name="fusion.container.conversion.metafunctions.as_list"></a><a href="as_list.html" title="as_list">as_list</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.container.conversion.metafunctions.as_list"></a><a href="as_list.html" title="as_list">as_list</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.container.conversion.metafunctions.as_list.description"></a><h6> <a name="fusion.container.conversion.metafunctions.as_list.description"></a><h6>
<a name="id557255"></a> <a name="id514801"></a>
<a href="as_list.html#fusion.container.conversion.metafunctions.as_list.description">Description</a> <a href="as_list.html#fusion.container.conversion.metafunctions.as_list.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/as_list.html" title="as_list"><tt class="computeroutput"><span class="identifier">as_list</span></tt></a>. Returns the result type of <a href="../functions/as_list.html" title="as_list"><tt class="computeroutput"><span class="identifier">as_list</span></tt></a>.
</p> </p>
<a name="fusion.container.conversion.metafunctions.as_list.synopsis"></a><h6> <a name="fusion.container.conversion.metafunctions.as_list.synopsis"></a><h6>
<a name="id557304"></a> <a name="id514849"></a>
<a href="as_list.html#fusion.container.conversion.metafunctions.as_list.synopsis">Synopsis</a> <a href="as_list.html#fusion.container.conversion.metafunctions.as_list.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">Sequence</span><span class="special">&gt;</span>
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">as_list</span><span class="special">;</span> <span class="keyword">struct</span> <span class="identifier">as_list</span><span class="special">;</span>
</pre> </pre>
<a name="fusion.container.conversion.metafunctions.as_list.parameters"></a><h6> <a name="fusion.container.conversion.metafunctions.as_list.parameters"></a><h6>
<a name="id557386"></a> <a name="id514927"></a>
<a href="as_list.html#fusion.container.conversion.metafunctions.as_list.parameters">Parameters</a> <a href="as_list.html#fusion.container.conversion.metafunctions.as_list.parameters">Parameters</a>
</h6> </h6>
<div class="informaltable"><table class="table"> <div class="informaltable"><table class="table">
@ -51,47 +54,34 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A fusion <a href="../../../sequence.html" title="Sequence">Sequence</a> A fusion <a href="../../../sequence.html" title="Sequence">Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
The sequence type to convert. The sequence type to convert.
</p> </p></td>
</td>
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.container.conversion.metafunctions.as_list.expression_semantics"></a><h6> <a name="fusion.container.conversion.metafunctions.as_list.expression_semantics"></a><h6>
<a name="id557502"></a> <a name="id515042"></a>
<a href="as_list.html#fusion.container.conversion.metafunctions.as_list.expression_semantics">Expression <a href="as_list.html#fusion.container.conversion.metafunctions.as_list.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_list</span><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">;</span>
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_list</span><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">;</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A <a href="../../list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a> with same elements as the <span class="bold"><b>Return type</b></span>: A <a href="../../list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a> with same elements as the
@ -102,28 +92,27 @@
<tt class="computeroutput"><span class="identifier">Sequence</span></tt>, to a <a href="../../list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a>. <tt class="computeroutput"><span class="identifier">Sequence</span></tt>, to a <a href="../../list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a>.
</p> </p>
<a name="fusion.container.conversion.metafunctions.as_list.header"></a><h6> <a name="fusion.container.conversion.metafunctions.as_list.header"></a><h6>
<a name="id557660"></a> <a name="id515196"></a>
<a href="as_list.html#fusion.container.conversion.metafunctions.as_list.header">Header</a> <a href="as_list.html#fusion.container.conversion.metafunctions.as_list.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">container</span><span class="special">/</span><span class="identifier">list</span><span class="special">/</span><span class="identifier">convert</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">container</span><span class="special">/</span><span class="identifier">list</span><span class="special">/</span><span class="identifier">convert</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">include</span><span class="special">/</span><span class="identifier">as_list</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">include</span><span class="special">/</span><span class="identifier">as_list</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.container.conversion.metafunctions.as_list.example"></a><h6> <a name="fusion.container.conversion.metafunctions.as_list.example"></a><h6>
<a name="id557829"></a> <a name="id515362"></a>
<a href="as_list.html#fusion.container.conversion.metafunctions.as_list.example">Example</a> <a href="as_list.html#fusion.container.conversion.metafunctions.as_list.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_list</span><span class="special">&lt;</span><a href="../../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="special">&gt;::</span><span class="identifier">type</span>
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_list</span><span class="special">&lt;</span><a href="../../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="special">&gt;::</span><span class="identifier">type</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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>as_map</title> <title>as_map</title>
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="as_set.html" title="as_set"> <link rel="previous" href="as_set.html" title="as_set">
<link rel="next" href="../../../view.html" title="View"> <link rel="next" href="../../../view.html" title="View">
</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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,25 +23,28 @@
<a accesskey="p" href="as_set.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="../../../view.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="as_set.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="../../../view.html"><img src="../../../../../../../../doc/html/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">
<a name="fusion.container.conversion.metafunctions.as_map"></a><a href="as_map.html" title="as_map">as_map</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.container.conversion.metafunctions.as_map"></a><a href="as_map.html" title="as_map">as_map</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.container.conversion.metafunctions.as_map.description"></a><h6> <a name="fusion.container.conversion.metafunctions.as_map.description"></a><h6>
<a name="id559377"></a> <a name="id516868"></a>
<a href="as_map.html#fusion.container.conversion.metafunctions.as_map.description">Description</a> <a href="as_map.html#fusion.container.conversion.metafunctions.as_map.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/as_map.html" title="as_map"><tt class="computeroutput"><span class="identifier">as_map</span></tt></a>. Returns the result type of <a href="../functions/as_map.html" title="as_map"><tt class="computeroutput"><span class="identifier">as_map</span></tt></a>.
</p> </p>
<a name="fusion.container.conversion.metafunctions.as_map.synopsis"></a><h6> <a name="fusion.container.conversion.metafunctions.as_map.synopsis"></a><h6>
<a name="id559427"></a> <a name="id516916"></a>
<a href="as_map.html#fusion.container.conversion.metafunctions.as_map.synopsis">Synopsis</a> <a href="as_map.html#fusion.container.conversion.metafunctions.as_map.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">Sequence</span><span class="special">&gt;</span>
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">as_map</span><span class="special">;</span> <span class="keyword">struct</span> <span class="identifier">as_map</span><span class="special">;</span>
</pre> </pre>
<a name="fusion.container.conversion.metafunctions.as_map.parameters"></a><h6> <a name="fusion.container.conversion.metafunctions.as_map.parameters"></a><h6>
<a name="id559508"></a> <a name="id516994"></a>
<a href="as_map.html#fusion.container.conversion.metafunctions.as_map.parameters">Parameters</a> <a href="as_map.html#fusion.container.conversion.metafunctions.as_map.parameters">Parameters</a>
</h6> </h6>
<div class="informaltable"><table class="table"> <div class="informaltable"><table class="table">
@ -51,47 +54,34 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A fusion <a href="../../../sequence.html" title="Sequence">Sequence</a> A fusion <a href="../../../sequence.html" title="Sequence">Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
The sequence to convert. The sequence to convert.
</p> </p></td>
</td>
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.container.conversion.metafunctions.as_map.expression_semantics"></a><h6> <a name="fusion.container.conversion.metafunctions.as_map.expression_semantics"></a><h6>
<a name="id559624"></a> <a name="id517108"></a>
<a href="as_map.html#fusion.container.conversion.metafunctions.as_map.expression_semantics">Expression <a href="as_map.html#fusion.container.conversion.metafunctions.as_map.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_map</span><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">;</span>
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_map</span><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">;</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A <a href="../../map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a> with same elements as the <span class="bold"><b>Return type</b></span>: A <a href="../../map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a> with same elements as the
@ -107,30 +97,29 @@
There may be no duplicate <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></tt></a> key types. There may be no duplicate <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></tt></a> key types.
</p> </p>
<a name="fusion.container.conversion.metafunctions.as_map.header"></a><h6> <a name="fusion.container.conversion.metafunctions.as_map.header"></a><h6>
<a name="id559826"></a> <a name="id517307"></a>
<a href="as_map.html#fusion.container.conversion.metafunctions.as_map.header">Header</a> <a href="as_map.html#fusion.container.conversion.metafunctions.as_map.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">container</span><span class="special">/</span><span class="identifier">map</span><span class="special">/</span><span class="identifier">convert</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">container</span><span class="special">/</span><span class="identifier">map</span><span class="special">/</span><span class="identifier">convert</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">include</span><span class="special">/</span><span class="identifier">as_map</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">include</span><span class="special">/</span><span class="identifier">as_map</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.container.conversion.metafunctions.as_map.example"></a><h6> <a name="fusion.container.conversion.metafunctions.as_map.example"></a><h6>
<a name="id559996"></a> <a name="id517474"></a>
<a href="as_map.html#fusion.container.conversion.metafunctions.as_map.example">Example</a> <a href="as_map.html#fusion.container.conversion.metafunctions.as_map.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_map</span><span class="special">&lt;</span><a href="../../vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span>
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_map</span><span class="special">&lt;</span><a href="../../vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span>
<a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</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> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</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="special">,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></tt></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span> <span class="special">,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></tt></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&gt;</span> <span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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>as_set</title> <title>as_set</title>
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="as_vector.html" title="as_vector"> <link rel="previous" href="as_vector.html" title="as_vector">
<link rel="next" href="as_map.html" title="as_map"> <link rel="next" href="as_map.html" title="as_map">
</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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,25 +23,28 @@
<a accesskey="p" href="as_vector.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="as_map.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="as_vector.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="as_map.html"><img src="../../../../../../../../doc/html/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">
<a name="fusion.container.conversion.metafunctions.as_set"></a><a href="as_set.html" title="as_set">as_set</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.container.conversion.metafunctions.as_set"></a><a href="as_set.html" title="as_set">as_set</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.container.conversion.metafunctions.as_set.description"></a><h6> <a name="fusion.container.conversion.metafunctions.as_set.description"></a><h6>
<a name="id558661"></a> <a name="id516171"></a>
<a href="as_set.html#fusion.container.conversion.metafunctions.as_set.description">Description</a> <a href="as_set.html#fusion.container.conversion.metafunctions.as_set.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/as_set.html" title="as_set"><tt class="computeroutput"><span class="identifier">as_set</span></tt></a>. Returns the result type of <a href="../functions/as_set.html" title="as_set"><tt class="computeroutput"><span class="identifier">as_set</span></tt></a>.
</p> </p>
<a name="fusion.container.conversion.metafunctions.as_set.synopsis"></a><h6> <a name="fusion.container.conversion.metafunctions.as_set.synopsis"></a><h6>
<a name="id558711"></a> <a name="id516219"></a>
<a href="as_set.html#fusion.container.conversion.metafunctions.as_set.synopsis">Synopsis</a> <a href="as_set.html#fusion.container.conversion.metafunctions.as_set.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">Sequence</span><span class="special">&gt;</span>
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">as_set</span><span class="special">;</span> <span class="keyword">struct</span> <span class="identifier">as_set</span><span class="special">;</span>
</pre> </pre>
<a name="fusion.container.conversion.metafunctions.as_set.parameters"></a><h6> <a name="fusion.container.conversion.metafunctions.as_set.parameters"></a><h6>
<a name="id558793"></a> <a name="id516297"></a>
<a href="as_set.html#fusion.container.conversion.metafunctions.as_set.parameters">Parameters</a> <a href="as_set.html#fusion.container.conversion.metafunctions.as_set.parameters">Parameters</a>
</h6> </h6>
<div class="informaltable"><table class="table"> <div class="informaltable"><table class="table">
@ -51,47 +54,34 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A fusion <a href="../../../sequence.html" title="Sequence">Sequence</a> A fusion <a href="../../../sequence.html" title="Sequence">Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
The sequence to convert. The sequence to convert.
</p> </p></td>
</td>
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.container.conversion.metafunctions.as_set.expression_semantics"></a><h6> <a name="fusion.container.conversion.metafunctions.as_set.expression_semantics"></a><h6>
<a name="id558910"></a> <a name="id516412"></a>
<a href="as_set.html#fusion.container.conversion.metafunctions.as_set.expression_semantics">Expression <a href="as_set.html#fusion.container.conversion.metafunctions.as_set.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_set</span><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">;</span>
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_set</span><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">;</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A <a href="../../set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a> with same elements as the <span class="bold"><b>Return type</b></span>: A <a href="../../set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a> with same elements as the
@ -106,28 +96,27 @@
key types. key types.
</p> </p>
<a name="fusion.container.conversion.metafunctions.as_set.header"></a><h6> <a name="fusion.container.conversion.metafunctions.as_set.header"></a><h6>
<a name="id559079"></a> <a name="id516578"></a>
<a href="as_set.html#fusion.container.conversion.metafunctions.as_set.header">Header</a> <a href="as_set.html#fusion.container.conversion.metafunctions.as_set.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">container</span><span class="special">/</span><span class="identifier">set</span><span class="special">/</span><span class="identifier">convert</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">container</span><span class="special">/</span><span class="identifier">set</span><span class="special">/</span><span class="identifier">convert</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">include</span><span class="special">/</span><span class="identifier">as_set</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">include</span><span class="special">/</span><span class="identifier">as_set</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.container.conversion.metafunctions.as_set.example"></a><h6> <a name="fusion.container.conversion.metafunctions.as_set.example"></a><h6>
<a name="id559249"></a> <a name="id516744"></a>
<a href="as_set.html#fusion.container.conversion.metafunctions.as_set.example">Example</a> <a href="as_set.html#fusion.container.conversion.metafunctions.as_set.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_set</span><span class="special">&lt;</span><a href="../../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="special">&gt;::</span><span class="identifier">type</span>
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_set</span><span class="special">&lt;</span><a href="../../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="special">&gt;::</span><span class="identifier">type</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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>as_vector</title> <title>as_vector</title>
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" 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="as_list.html" title="as_list"> <link rel="previous" href="as_list.html" title="as_list">
<link rel="next" href="as_set.html" title="as_set"> <link rel="next" href="as_set.html" title="as_set">
</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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,25 +23,28 @@
<a accesskey="p" href="as_list.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="as_set.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a> <a accesskey="p" href="as_list.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="as_set.html"><img src="../../../../../../../../doc/html/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">
<a name="fusion.container.conversion.metafunctions.as_vector"></a><a href="as_vector.html" title="as_vector">as_vector</a></h5></div></div></div> <div><div><h5 class="title">
<a name="fusion.container.conversion.metafunctions.as_vector"></a><a href="as_vector.html" title="as_vector">as_vector</a>
</h5></div></div>
<div></div>
</div>
<a name="fusion.container.conversion.metafunctions.as_vector.description"></a><h6> <a name="fusion.container.conversion.metafunctions.as_vector.description"></a><h6>
<a name="id557958"></a> <a name="id515486"></a>
<a href="as_vector.html#fusion.container.conversion.metafunctions.as_vector.description">Description</a> <a href="as_vector.html#fusion.container.conversion.metafunctions.as_vector.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/as_vector.html" title="as_vector"><tt class="computeroutput"><span class="identifier">as_vector</span></tt></a>. Returns the result type of <a href="../functions/as_vector.html" title="as_vector"><tt class="computeroutput"><span class="identifier">as_vector</span></tt></a>.
</p> </p>
<a name="fusion.container.conversion.metafunctions.as_vector.synopsis"></a><h6> <a name="fusion.container.conversion.metafunctions.as_vector.synopsis"></a><h6>
<a name="id558007"></a> <a name="id515533"></a>
<a href="as_vector.html#fusion.container.conversion.metafunctions.as_vector.synopsis">Synopsis</a> <a href="as_vector.html#fusion.container.conversion.metafunctions.as_vector.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">Sequence</span><span class="special">&gt;</span>
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">as_vector</span><span class="special">;</span> <span class="keyword">struct</span> <span class="identifier">as_vector</span><span class="special">;</span>
</pre> </pre>
<a name="fusion.container.conversion.metafunctions.as_vector.parameters"></a><h6> <a name="fusion.container.conversion.metafunctions.as_vector.parameters"></a><h6>
<a name="id558088"></a> <a name="id515612"></a>
<a href="as_vector.html#fusion.container.conversion.metafunctions.as_vector.parameters">Parameters</a> <a href="as_vector.html#fusion.container.conversion.metafunctions.as_vector.parameters">Parameters</a>
</h6> </h6>
<div class="informaltable"><table class="table"> <div class="informaltable"><table class="table">
@ -51,47 +54,34 @@
<col> <col>
</colgroup> </colgroup>
<thead><tr> <thead><tr>
<th> <th><p>
<p>
Parameter Parameter
</p> </p></th>
</th> <th><p>
<th>
<p>
Requirement Requirement
</p> </p></th>
</th> <th><p>
<th>
<p>
Description Description
</p> </p></th>
</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td><p>
<p>
<tt class="computeroutput"><span class="identifier">Sequence</span></tt> <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
</p> </p></td>
</td> <td><p>
<td>
<p>
A fusion <a href="../../../sequence.html" title="Sequence">Sequence</a> A fusion <a href="../../../sequence.html" title="Sequence">Sequence</a>
</p> </p></td>
</td> <td><p>
<td>
<p>
The sequence to convert. The sequence to convert.
</p> </p></td>
</td>
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.container.conversion.metafunctions.as_vector.expression_semantics"></a><h6> <a name="fusion.container.conversion.metafunctions.as_vector.expression_semantics"></a><h6>
<a name="id558203"></a> <a name="id515724"></a>
<a href="as_vector.html#fusion.container.conversion.metafunctions.as_vector.expression_semantics">Expression <a href="as_vector.html#fusion.container.conversion.metafunctions.as_vector.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_vector</span><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">;</span>
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_vector</span><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">;</span>
</pre> </pre>
<p> <p>
<span class="bold"><b>Return type</b></span>: A <a href="../../vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a> with same elements as <span class="bold"><b>Return type</b></span>: A <a href="../../vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a> with same elements as
@ -102,28 +92,27 @@
<tt class="computeroutput"><span class="identifier">Sequence</span></tt>, to a <a href="../../vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>. <tt class="computeroutput"><span class="identifier">Sequence</span></tt>, to a <a href="../../vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>.
</p> </p>
<a name="fusion.container.conversion.metafunctions.as_vector.header"></a><h6> <a name="fusion.container.conversion.metafunctions.as_vector.header"></a><h6>
<a name="id558361"></a> <a name="id515879"></a>
<a href="as_vector.html#fusion.container.conversion.metafunctions.as_vector.header">Header</a> <a href="as_vector.html#fusion.container.conversion.metafunctions.as_vector.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">container</span><span class="special">/</span><span class="identifier">vector</span><span class="special">/</span><span class="identifier">convert</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">container</span><span class="special">/</span><span class="identifier">vector</span><span class="special">/</span><span class="identifier">convert</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">include</span><span class="special">/</span><span class="identifier">as_vector</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">include</span><span class="special">/</span><span class="identifier">as_vector</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.container.conversion.metafunctions.as_vector.example"></a><h6> <a name="fusion.container.conversion.metafunctions.as_vector.example"></a><h6>
<a name="id558532"></a> <a name="id516046"></a>
<a href="as_vector.html#fusion.container.conversion.metafunctions.as_vector.example">Example</a> <a href="as_vector.html#fusion.container.conversion.metafunctions.as_vector.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_vector</span><span class="special">&lt;</span><a href="../../list.html" title="list"><tt class="computeroutput"><span class="identifier">list</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="special">&gt;::</span><span class="identifier">type</span>
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_vector</span><span class="special">&lt;</span><a href="../../list.html" title="list"><tt class="computeroutput"><span class="identifier">list</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="special">&gt;::</span><span class="identifier">type</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

View File

@ -3,19 +3,19 @@
<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="../../../../../../doc/html/boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="home" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../container.html" title="Container"> <link rel="up" href="../container.html" title="Container">
<link rel="prev" href="map.html" title="map"> <link rel="previous" href="map.html" title="map">
<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%"><tr>
<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.html">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="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="../../../../../../more/faq.htm">FAQ</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">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> </tr></table>
<hr> <hr>
@ -23,8 +23,12 @@
<a accesskey="p" href="map.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../container.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="map.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../container.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>
</div> </div>
<div class="section" lang="en"> <div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title"> <div class="titlepage">
<a name="fusion.container.generation"></a><a href="generation.html" title="Generation">Generation</a></h3></div></div></div> <div><div><h3 class="title">
<a name="fusion.container.generation"></a><a href="generation.html" title="Generation">Generation</a>
</h3></div></div>
<div></div>
</div>
<div class="toc"><dl> <div class="toc"><dl>
<dt><span class="section"><a href="generation/functions.html">Functions</a></span></dt> <dt><span class="section"><a href="generation/functions.html">Functions</a></span></dt>
<dt><span class="section"><a href="generation/metafunctions.html">MetaFunctions</a></span></dt> <dt><span class="section"><a href="generation/metafunctions.html">MetaFunctions</a></span></dt>
@ -33,21 +37,21 @@
These are the functions that you can use to generate various forms of <a href="../container.html" title="Container">Container</a> from elemental values. These are the functions that you can use to generate various forms of <a href="../container.html" title="Container">Container</a> from elemental values.
</p> </p>
<a name="fusion.container.generation.header"></a><h4> <a name="fusion.container.generation.header"></a><h4>
<a name="id535024"></a> <a name="id488901"></a>
<a href="generation.html#fusion.container.generation.header">Header</a> <a href="generation.html#fusion.container.generation.header">Header</a>
</h4> </h4>
<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">container</span><span class="special">/</span><span class="identifier">generation</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">container</span><span class="special">/</span><span class="identifier">generation</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">include</span><span class="special">/</span><span class="identifier">generation</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">include</span><span class="special">/</span><span class="identifier">generation</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</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>
<td align="left"></td> <td align="left"></td>
<td align="right"><div class="copyright-footer"><small>Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias <td align="right"><div class="copyright-footer">Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
Schwinger<p> Schwinger<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p></small></div></td> </p>
</div></td>
</tr></table> </tr></table>
<hr> <hr>
<div class="spirit-nav"> <div class="spirit-nav">

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