2007-11-06 12:13:52 +00:00
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=ISO-8859-1" >
< title > is_sequence< / title >
2007-11-07 03:46:23 +00:00
< link rel = "stylesheet" href = "../../../../../../doc/html/boostbook.css" type = "text/css" >
2009-06-13 06:29:32 +00:00
< meta name = "generator" content = "DocBook XSL Stylesheets V1.65.1" >
< link rel = "home" href = "../../index.html" title = "Chapter<65> 1.<2E> Fusion 2.0" >
2007-11-06 12:13:52 +00:00
< link rel = "up" href = "../support.html" title = "Support" >
2009-06-13 06:29:32 +00:00
< link rel = "previous" href = "../support.html" title = "Support" >
2007-11-06 12:13:52 +00:00
< link rel = "next" href = "is_view.html" title = "is_view" >
< / 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 >
2008-07-17 23:59:22 +00:00
< td align = "center" > < a href = "../../../../../../index.html" > Home< / a > < / td >
2007-11-06 12:13:52 +00:00
< td align = "center" > < a href = "../../../../../libraries.htm" > Libraries< / a > < / td >
2008-07-17 23:59:22 +00:00
< 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 >
2007-11-06 12:13:52 +00:00
< td align = "center" > < a href = "../../../../../../more/index.htm" > More< / a > < / td >
< / tr > < / table >
< hr >
< div class = "spirit-nav" >
< a accesskey = "p" href = "../support.html" > < img src = "../../../../../../doc/html/images/prev.png" alt = "Prev" > < / a > < a accesskey = "u" href = "../support.html" > < img src = "../../../../../../doc/html/images/up.png" alt = "Up" > < / a > < a accesskey = "h" href = "../../index.html" > < img src = "../../../../../../doc/html/images/home.png" alt = "Home" > < / a > < a accesskey = "n" href = "is_view.html" > < img src = "../../../../../../doc/html/images/next.png" alt = "Next" > < / a >
< / div >
< div class = "section" lang = "en" >
2009-06-13 06:29:32 +00:00
< div class = "titlepage" >
< div > < div > < h3 class = "title" >
< a name = "fusion.support.is_sequence" > < / a > < a href = "is_sequence.html" title = "is_sequence" > is_sequence< / a >
< / h3 > < / div > < / div >
< div > < / div >
< / div >
2007-11-06 12:13:52 +00:00
< a name = "fusion.support.is_sequence.description" > < / a > < h4 >
2009-06-13 06:29:32 +00:00
< a name = "id412310" > < / a >
2007-11-06 12:13:52 +00:00
< a href = "is_sequence.html#fusion.support.is_sequence.description" > Description< / a >
< / h4 >
< p >
2009-06-13 06:29:32 +00:00
Metafunction that evaluates to < tt class = "computeroutput" > < span class = "identifier" > mpl< / span > < span class = "special" > ::< / span > < span class = "identifier" > true_< / span > < / tt >
if a certain type < tt class = "computeroutput" > < span class = "identifier" > T< / span > < / tt > is a
conforming Fusion < a href = "../sequence.html" title = "Sequence" > Sequence< / a > , < tt class = "computeroutput" > < span class = "identifier" > mpl< / span > < span class = "special" > ::< / span > < span class = "identifier" > false_< / span > < / tt >
2007-11-06 12:13:52 +00:00
otherwise. This may be specialized to accomodate clients which provide Fusion
conforming sequences.
< / p >
< a name = "fusion.support.is_sequence.synopsis" > < / a > < h4 >
2009-06-13 06:29:32 +00:00
< a name = "id412390" > < / a >
2007-11-06 12:13:52 +00:00
< a href = "is_sequence.html#fusion.support.is_sequence.synopsis" > Synopsis< / a >
< / h4 >
2009-02-22 06:27:12 +00:00
< pre class = "programlisting" > < span class = "keyword" > namespace< / span > < span class = "identifier" > traits< / span >
2007-11-06 12:13:52 +00:00
< span class = "special" > {< / span >
< span class = "keyword" > template< / span > < span class = "special" > < < / span > < span class = "keyword" > typename< / span > < span class = "identifier" > T< / span > < span class = "special" > > < / span >
2007-11-07 02:12:28 +00:00
< span class = "keyword" > struct< / span > < span class = "identifier" > is_sequence< / span >
2007-11-06 12:13:52 +00:00
< span class = "special" > {< / span >
< span class = "keyword" > typedef< / span > < span class = "emphasis" > < em > unspecified< / em > < / span > < span class = "identifier" > type< / span > < span class = "special" > ;< / span >
< span class = "special" > };< / span >
< span class = "special" > }< / span >
< / pre >
< a name = "fusion.support.is_sequence.parameters" > < / a > < h4 >
2009-06-13 06:29:32 +00:00
< a name = "id412506" > < / a >
2007-11-06 12:13:52 +00:00
< a href = "is_sequence.html#fusion.support.is_sequence.parameters" > Parameters< / a >
< / h4 >
< div class = "informaltable" > < table class = "table" >
< colgroup >
< col >
< col >
< col >
< / colgroup >
< thead > < tr >
2009-06-13 06:29:32 +00:00
< th > < p >
2007-11-06 12:13:52 +00:00
Parameter
2009-06-13 06:29:32 +00:00
< / p > < / th >
< th > < p >
2007-11-06 12:13:52 +00:00
Requirement
2009-06-13 06:29:32 +00:00
< / p > < / th >
< th > < p >
2007-11-06 12:13:52 +00:00
Description
2009-06-13 06:29:32 +00:00
< / p > < / th >
2007-11-06 12:13:52 +00:00
< / tr > < / thead >
< tbody > < tr >
2009-06-13 06:29:32 +00:00
< td > < p >
< tt class = "computeroutput" > < span class = "identifier" > T< / span > < / tt >
< / p > < / td >
< td > < p >
2007-11-06 12:13:52 +00:00
Any type
2009-06-13 06:29:32 +00:00
< / p > < / td >
< td > < p >
2007-11-06 12:13:52 +00:00
The type to query.
2009-06-13 06:29:32 +00:00
< / p > < / td >
2007-11-06 12:13:52 +00:00
< / tr > < / tbody >
< / table > < / div >
< a name = "fusion.support.is_sequence.expression_semantics" > < / a > < h4 >
2009-06-13 06:29:32 +00:00
< a name = "id412606" > < / a >
2007-11-06 12:13:52 +00:00
< a href = "is_sequence.html#fusion.support.is_sequence.expression_semantics" > Expression
Semantics< / a >
< / h4 >
2009-02-22 06:27:12 +00:00
< pre class = "programlisting" > < span class = "keyword" > typedef< / span > < span class = "identifier" > traits< / span > < span class = "special" > ::< / span > < span class = "identifier" > is_sequence< / span > < span class = "special" > < < / span > < span class = "identifier" > T< / span > < span class = "special" > > ::< / span > < span class = "identifier" > type< / span > < span class = "identifier" > c< / span > < span class = "special" > ;< / span >
2007-11-06 12:13:52 +00:00
< / pre >
< p >
2009-06-13 06:29:32 +00:00
< span class = "bold" > < b > Return type< / b > < / span > : An < a href = "http://www.boost.org/libs/mpl/doc/refmanual/integral-constant.html" target = "_top" > MPL
2007-11-06 12:13:52 +00:00
Boolean Constant< / a > .
< / p >
< p >
2009-06-13 06:29:32 +00:00
< span class = "bold" > < b > Semantics< / b > < / span > : Metafunction that evaluates to
< tt class = "computeroutput" > < span class = "identifier" > mpl< / span > < span class = "special" > ::< / span > < span class = "identifier" > true_< / span > < / tt > if a certain type < tt class = "computeroutput" > < span class = "identifier" > T< / span > < / tt >
is a conforming Fusion sequence, < tt class = "computeroutput" > < span class = "identifier" > mpl< / span > < span class = "special" > ::< / span > < span class = "identifier" > false_< / span > < / tt >
2007-11-06 12:13:52 +00:00
otherwise.
< / p >
< a name = "fusion.support.is_sequence.header" > < / a > < h4 >
2009-06-13 06:29:32 +00:00
< a name = "id412755" > < / a >
2007-11-06 12:13:52 +00:00
< a href = "is_sequence.html#fusion.support.is_sequence.header" > Header< / a >
< / h4 >
2009-02-22 06:27:12 +00:00
< 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" > support< / span > < span class = "special" > /< / span > < span class = "identifier" > is_sequence< / span > < span class = "special" > .< / span > < span class = "identifier" > hpp< / span > < span class = "special" > > < / span >
2007-11-06 12:13:52 +00:00
< span class = "preprocessor" > #include< / span > < span class = "special" > < < / span > < span class = "identifier" > boost< / span > < span class = "special" > /< / span > < span class = "identifier" > fusion< / span > < span class = "special" > /< / span > < span class = "identifier" > include< / span > < span class = "special" > /< / span > < span class = "identifier" > is_sequence< / span > < span class = "special" > .< / span > < span class = "identifier" > hpp< / span > < span class = "special" > > < / span >
< / pre >
< a name = "fusion.support.is_sequence.example" > < / a > < h4 >
2009-06-13 06:29:32 +00:00
< a name = "id412893" > < / a >
2007-11-06 12:13:52 +00:00
< a href = "is_sequence.html#fusion.support.is_sequence.example" > Example< / a >
< / h4 >
2009-02-22 06:27:12 +00:00
< pre class = "programlisting" > < span class = "identifier" > BOOST_MPL_ASSERT_NOT< / span > < span class = "special" > ((< / span > < span class = "identifier" > traits< / span > < span class = "special" > ::< / span > < span class = "identifier" > is_sequence< / span > < span class = "special" > < < / span > < span class = "identifier" > std< / span > < span class = "special" > ::< / span > < span class = "identifier" > vector< / span > < span class = "special" > < < / span > < span class = "keyword" > int< / span > < span class = "special" > > < / span > < span class = "special" > > < / span > < span class = "special" > ));< / span >
2007-11-06 12:13:52 +00:00
< span class = "identifier" > BOOST_MPL_ASSERT_NOT< / span > < span class = "special" > ((< / span > < span class = "identifier" > is_sequence< / span > < span class = "special" > < < / span > < span class = "keyword" > int< / span > < span class = "special" > > < / span > < span class = "special" > ));< / span >
2009-06-13 06:29:32 +00:00
< span class = "identifier" > BOOST_MPL_ASSERT< / span > < span class = "special" > ((< / span > < span class = "identifier" > traits< / span > < span class = "special" > ::< / span > < span class = "identifier" > is_sequence< / span > < span class = "special" > < < / span > < a href = "../container/list.html" title = "list" > < tt class = "computeroutput" > < span class = "identifier" > list< / span > < / tt > < / a > < span class = "special" > < > < / span > < span class = "special" > > < / span > < span class = "special" > ));< / span >
< span class = "identifier" > BOOST_MPL_ASSERT< / span > < span class = "special" > ((< / span > < span class = "identifier" > traits< / span > < span class = "special" > ::< / span > < span class = "identifier" > is_sequence< / span > < span class = "special" > < < / span > < a href = "../container/list.html" title = "list" > < tt class = "computeroutput" > < span class = "identifier" > list< / span > < / tt > < / a > < span class = "special" > < < / span > < span class = "keyword" > int< / span > < span class = "special" > > < / span > < span class = "special" > > < / span > < span class = "special" > ));< / span >
< span class = "identifier" > BOOST_MPL_ASSERT< / span > < span class = "special" > ((< / span > < span class = "identifier" > traits< / span > < span class = "special" > ::< / span > < span class = "identifier" > is_sequence< / 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" > < > < / span > < span class = "special" > > < / span > < span class = "special" > ));< / span >
< span class = "identifier" > BOOST_MPL_ASSERT< / span > < span class = "special" > ((< / span > < span class = "identifier" > traits< / span > < span class = "special" > ::< / span > < span class = "identifier" > is_sequence< / 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" > < < / span > < span class = "keyword" > int< / span > < span class = "special" > > < / span > < span class = "special" > > < / span > < span class = "special" > ));< / span >
2007-11-06 12:13:52 +00:00
< / pre >
< / div >
< table xmlns:rev = "http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width = "100%" > < tr >
< td align = "left" > < / td >
2007-11-14 10:17:09 +00:00
< td align = "right" > < div class = "copyright-footer" > Copyright <20> 2001-2007 Joel de Guzman, Dan Marsden, Tobias
2007-11-07 02:12:28 +00:00
Schwinger< p >
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at < a href = "http://www.boost.org/LICENSE_1_0.txt" target = "_top" > http://www.boost.org/LICENSE_1_0.txt< / a > )
2007-11-14 10:17:09 +00:00
< / p >
< / div > < / td >
2007-11-06 12:13:52 +00:00
< / tr > < / table >
< hr >
< div class = "spirit-nav" >
< a accesskey = "p" href = "../support.html" > < img src = "../../../../../../doc/html/images/prev.png" alt = "Prev" > < / a > < a accesskey = "u" href = "../support.html" > < img src = "../../../../../../doc/html/images/up.png" alt = "Up" > < / a > < a accesskey = "h" href = "../../index.html" > < img src = "../../../../../../doc/html/images/home.png" alt = "Home" > < / a > < a accesskey = "n" href = "is_view.html" > < img src = "../../../../../../doc/html/images/next.png" alt = "Next" > < / a >
< / div >
< / body >
< / html >