2006-08-22 15:57:13 +00:00
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=ISO-8859-1" >
< title > Class template tuple</ title >
< link rel = "stylesheet" href = "../../boostbook.css" type = "text/css" >
< meta name = "generator" content = "DocBook XSL Stylesheets V1.66.1" >
< link rel = "start" href = "../../index.html" title = "Chapter 1. Fusion 2.0" >
< link rel = "up" href = "../tuples.html" title = "Tuples" >
< link rel = "prev" href = "../tuples.html" title = "Tuples" >
< link rel = "next" href = "class_template_tuple/construction.html" title = "Construction" >
</ head >
< body bgcolor = "white" text = "black" link = "#0000FF" vlink = "#840084" alink = "#0000FF" >
< table cellpadding = "2" width = "100%" >
< 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 >
</ table >
< hr >
< div class = "spirit-nav" >
< a accesskey = "p" href = "../tuples.html" >< img src = "../../images/prev.png" alt = "Prev" ></ a >< a accesskey = "u" href = "../tuples.html" >< img src = "../../images/up.png" alt = "Up" ></ a >< a accesskey = "h" href = "../../index.html" >< img src = "../../images/home.png" alt = "Home" ></ a >< a accesskey = "n" href = "class_template_tuple/construction.html" >< img src = "../../images/next.png" alt = "Next" ></ a >
</ div >
< div class = "section" lang = "en" >
< div class = "titlepage" >< div >< div >< h3 class = "title" >
< a name = "fusion.tuples.class_template_tuple" ></ a >< a href = "class_template_tuple.html" title = "Class template tuple" > Class template tuple</ a ></ h3 ></ div ></ div ></ div >
< div class = "toc" >< dl >
< dt >< span class = "section" >< a href = "class_template_tuple/construction.html" > Construction</ a ></ span ></ dt >
< dt >< span class = "section" >< a href = "class_template_tuple/tuple_creation_functions.html" > Tuple
creation functions</ a ></ span ></ dt >
< dt >< span class = "section" >< a href = "class_template_tuple/tuple_helper_classes.html" > Tuple
helper classes</ a ></ span ></ dt >
< dt >< span class = "section" >< a href = "class_template_tuple/element_access.html" > Element
access</ a ></ span ></ dt >
< dt >< span class = "section" >< a href = "class_template_tuple/relational_operators.html" > Relational
operators</ a ></ span ></ dt >
</ dl ></ div >
< p >
Fusion's implementation of the < a href = "http://std.dkuug.dk/jtc1/sc22/wg21/docs/papers/2002/n1403.pdf" target = "_top" > TR1
Tuple</ a > is also a fusion < a href = "../sequences/concepts/forward_sequence.html" title = "Forward
Sequence" > Forward
Sequence</ a > . As such the fusion tuple type provides a lot of functionality
beyond that required by TR1.
</ p >
< p >
Currently tuple is basically a synonym for < a href = "../sequences/containers/vector.html" title = "vector" >< tt class = "computeroutput" >< span class = "identifier" > vector</ span ></ tt ></ a > , although this may be changed
in future releases of fusion.
</ p >
< a name = "fusion.tuples.class_template_tuple.synopsis" ></ a >< h4 >
2006-09-16 05:27:33 +00:00
< a name = "id376964" ></ a >
2006-08-22 15:57:13 +00:00
< a href = "class_template_tuple.html#fusion.tuples.class_template_tuple.synopsis" > Synopsis</ a >
</ h4 >
< pre class = "programlisting" >
< span class = "keyword" > template</ span >< span class = "special" > < </ span >
< span class = "keyword" > typename</ span > < span class = "identifier" > T1</ span > < span class = "special" > =</ span > < span class = "emphasis" >< em > unspecified</ em ></ span >< span class = "special" > ,</ span >
< span class = "keyword" > typename</ span > < span class = "identifier" > T2</ span > < span class = "special" > =</ span > < span class = "emphasis" >< em > unspecified</ em ></ span >< span class = "special" > ,</ span >
< span class = "special" > ...</ span >
< span class = "keyword" > typename</ span > < span class = "identifier" > TN</ span > < span class = "special" > =</ span > < span class = "emphasis" >< em > unspecified</ em ></ span >< span class = "special" > > </ span >
< span class = "keyword" > class</ span > < span class = "identifier" > tuple</ span >< span class = "special" > ;</ span >
</ pre >
< a name = "fusion.tuples.class_template_tuple.header" ></ a >< h4 >
2006-09-16 05:27:33 +00:00
< a name = "id378920" ></ a >
2006-08-22 15:57:13 +00:00
< a href = "class_template_tuple.html#fusion.tuples.class_template_tuple.header" > Header</ a >
</ h4 >
< pre class = "programlisting" >
< span class = "preprocessor" > #include</ span > < span class = "special" > < </ span >< span class = "identifier" > boost</ span >< span class = "special" > /</ span >< span class = "identifier" > fusion</ span >< span class = "special" > /</ span >< span class = "identifier" > tuple</ span >< span class = "special" > .</ span >< span class = "identifier" > hpp</ 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" >< small > Copyright © 2001-2005 Joel de Guzman, Dan Marsden</ small ></ td >
</ tr ></ table >
< hr >
< div class = "spirit-nav" >
< a accesskey = "p" href = "../tuples.html" >< img src = "../../images/prev.png" alt = "Prev" ></ a >< a accesskey = "u" href = "../tuples.html" >< img src = "../../images/up.png" alt = "Up" ></ a >< a accesskey = "h" href = "../../index.html" >< img src = "../../images/home.png" alt = "Home" ></ a >< a accesskey = "n" href = "class_template_tuple/construction.html" >< img src = "../../images/next.png" alt = "Next" ></ a >
</ div >
</ body >
</ html >