2004-11-28 03:35:12 +00:00
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" xml:lang = "en" lang = "en" >
2006-10-18 06:08:05 +00:00
<!-- Copyright Aleksey Gurtovoy 2006. Distributed under the Boost -->
<!-- Software License, Version 1.0. (See accompanying -->
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
2004-11-28 03:35:12 +00:00
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" />
< meta name = "generator" content = "Docutils 0.3.6: http://docutils.sourceforge.net/" />
< title > The MPL Reference Manual: BOOST_MPL_LIMIT_VECTOR_SIZE</ title >
< link rel = "stylesheet" href = "../style.css" type = "text/css" />
</ head >
< body class = "docframe refmanual" >
< table class = "header" >< tr class = "header" >< td class = "header-group navigation-bar" >< span class = "navigation-group" >< a href = "./limit-metafunction-arity.html" class = "navigation-link" > Prev</ a > < a href = "./limit-list-size.html" class = "navigation-link" > Next</ a ></ span >< span class = "navigation-group-separator" > | </ span >< span class = "navigation-group" >< a href = "./limit-metafunction-arity.html" class = "navigation-link" > Back</ a > < a href = "./limit-list-size.html" class = "navigation-link" > Along</ a ></ span >< span class = "navigation-group-separator" > | </ span >< span class = "navigation-group" >< a href = "./configuration.html" class = "navigation-link" > Up</ a > < a href = "../refmanual.html" class = "navigation-link" > Home</ a ></ span >< span class = "navigation-group-separator" > | </ span >< span class = "navigation-group" >< a href = "./refmanual_toc.html" class = "navigation-link" > Full TOC</ a ></ span ></ td >
< td class = "header-group page-location" >< a href = "../refmanual.html" class = "navigation-link" > Front Page</ a > / < a href = "./macros.html" class = "navigation-link" > Macros</ a > / < a href = "./configuration.html" class = "navigation-link" > Configuration</ a > / < a href = "./limit-vector-size.html" class = "navigation-link" > BOOST_MPL_LIMIT_VECTOR_SIZE</ a ></ td >
</ tr ></ table >< div class = "header-separator" ></ div >
< div class = "section" id = "limit-vector-size" >
< h1 >< a class = "toc-backref" href = "./configuration.html#id522" name = "limit-vector-size" > BOOST_MPL_LIMIT_VECTOR_SIZE</ a ></ h1 >
< div class = "section" id = "configuration-limit-synopsis" >
< h3 >< a class = "subsection-title" href = "#synopsis" name = "synopsis" > Synopsis</ a ></ h3 >
< pre class = "literal-block" >
#if !defined(< a href = "./limit-vector-size.html" class = "identifier" > BOOST_MPL_LIMIT_VECTOR_SIZE</ a > )
# define < a href = "./limit-vector-size.html" class = "identifier" > BOOST_MPL_LIMIT_VECTOR_SIZE</ a > \
< em > implementation-defined integral constant</ em > \
/**/
#endif
</ pre >
</ div >
< div class = "section" id = "configuration-limit-description" >
< h3 >< a class = "subsection-title" href = "#description" name = "description" > Description</ a ></ h3 >
< p >< tt class = "literal" >< span class = "pre" >< a href = "./limit-vector-size.html" class = "identifier" > BOOST_MPL_LIMIT_VECTOR_SIZE</ a ></ span ></ tt > is an overridable configuration macro regulating
the maximum arity of the < tt class = "literal" >< span class = "pre" >< a href = "./vector.html" class = "identifier" > vector</ a ></ span ></ tt > 's and < tt class = "literal" >< span class = "pre" >< a href = "./vector-c.html" class = "identifier" > vector_c</ a ></ span ></ tt > 's < a class = "reference" href = "./variadic-sequence.html" > variadic forms</ a > . In this
implementation of the library, < tt class = "literal" >< span class = "pre" >< a href = "./limit-vector-size.html" class = "identifier" > BOOST_MPL_LIMIT_VECTOR_SIZE</ a ></ span ></ tt > has a default value
of 20. To override the default limit, define < tt class = "literal" >< span class = "pre" >< a href = "./limit-vector-size.html" class = "identifier" > BOOST_MPL_LIMIT_VECTOR_SIZE</ a ></ span ></ tt > to
the desired maximum arity rounded up to the nearest multiple of ten before
including any library header. [< em > Note:</ em > Overriding will take effect
< em > only</ em > if the library is configured not to use < a class = "reference" href = "./cfg-no-preprocessed.html" > preprocessed headers</ a > . See
< a class = "refentry reference" href = "./cfg-no-preprocessed.html" >< tt class = "refentry literal" >< span class = "pre" > BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS</ span ></ tt ></ a > for more information. — < em > end note</ em > ]</ p >
</ div >
< div class = "section" id = "configuration-limit-example" >
< h3 >< a class = "subsection-title" href = "#example" name = "example" > Example</ a ></ h3 >
< pre class = "literal-block" >
#define < a href = "./cfg-no-preprocessed.html" class = "identifier" > BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS</ a >
#define < a href = "./limit-vector-size.html" class = "identifier" > BOOST_MPL_LIMIT_VECTOR_SIZE</ a > 10
< tt class = "literal" >< span class = "pre" > #</ span ></ tt > include < boost/mpl/< a href = "./vector.html" class = "identifier" > vector</ a > .hpp>
using namespace boost::mpl;
typedef < a href = "./vector-c.html" class = "identifier" > vector_c</ a > < int,1> v_1;
typedef < a href = "./vector-c.html" class = "identifier" > vector_c</ a > < int,1,2,3,4,5,6,7,8,9,10> v_10;
// typedef < a href = "./vector-c.html" class = "identifier" > vector_c</ a > < int,1,2,3,4,5,6,7,8,9,10,11> v_11; // error!
</ pre >
</ div >
< div class = "section" id = "configuration-limit-see-also" >
< h3 >< a class = "subsection-title" href = "#see-also" name = "see-also" > See also</ a ></ h3 >
< p >< a class = "reference" href = "./configuration.html" > Configuration</ a > , < a class = "refentry reference" href = "./cfg-no-preprocessed.html" >< tt class = "refentry literal" >< span class = "pre" > BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS</ span ></ tt ></ a > , < a class = "refentry reference" href = "./limit-list-size.html" >< tt class = "refentry literal" >< span class = "pre" > BOOST_MPL_LIMIT_LIST_SIZE</ span ></ tt ></ a ></ p >
<!-- modtime: November 10, 2004 04:38:20 +0000 -->
<!-- Macros/Configuration//BOOST_MPL_LIMIT_LIST_SIZE |40 -->
</ div >
</ div >
< div class = "footer-separator" ></ div >
< table class = "footer" >< tr class = "footer" >< td class = "header-group navigation-bar" >< span class = "navigation-group" >< a href = "./limit-metafunction-arity.html" class = "navigation-link" > Prev</ a > < a href = "./limit-list-size.html" class = "navigation-link" > Next</ a ></ span >< span class = "navigation-group-separator" > | </ span >< span class = "navigation-group" >< a href = "./limit-metafunction-arity.html" class = "navigation-link" > Back</ a > < a href = "./limit-list-size.html" class = "navigation-link" > Along</ a ></ span >< span class = "navigation-group-separator" > | </ span >< span class = "navigation-group" >< a href = "./configuration.html" class = "navigation-link" > Up</ a > < a href = "../refmanual.html" class = "navigation-link" > Home</ a ></ span >< span class = "navigation-group-separator" > | </ span >< span class = "navigation-group" >< a href = "./refmanual_toc.html" class = "navigation-link" > Full TOC</ a ></ span ></ td >
</ tr ></ table ></ body >
</ html >