File: deduce_r.html

package info (click to toggle)
boost 1.33.1-10
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 100,948 kB
  • ctags: 145,103
  • sloc: cpp: 573,492; xml: 49,055; python: 15,626; ansic: 13,588; sh: 2,099; yacc: 858; makefile: 660; perl: 427; lex: 111; csh: 6
file content (37 lines) | stat: -rw-r--r-- 1,441 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<html>
<head>
	<title>BOOST_PP_DEDUCE_R</title>
	<link rel="stylesheet" type="text/css" href="../styles.css">
</head>
<body>
	<div style="margin-left:  0px;">
		The <b>BOOST_PP_DEDUCE_R</b> macro manually deduces the state of the <b>BOOST_PP_FOR</b> construct.
	</div>
	<h4>Usage</h4>
		<div class="code">
			<b>BOOST_PP_DEDUCE_R</b>()
		</div>
	<h4>Remarks</h4>
		<div>
			This macro is intended to avoid the use of <i>automatic-recursion</i> at deep expansion depths.&nbsp;
			<i>Automatic-recursion</i> at such depths can be inefficient on some preprocessors.&nbsp;
			It is not intended to be used directly with the invocation of macros with a <b>_R</b> suffix such as:
			<div>
				<b>BOOST_PP_LIST_ENUM_R</b>(<b>BOOST_PP_DEDUCE_R</b>(), (a, (b, (c, <b>BOOST_PP_NIL</b>))))
			</div>
			If it is used in this context, the <b>_R</b> macro will fail.&nbsp;
			The <b>_R</b> macros directly concatenate to the <i>r</i> parameter that is passed to them,
			which would prevent <b>BOOST_PP_DEDUCE_R</b>() from expanding.&nbsp;
			Furthermore, it is pointless to use this macro in a situation such as this
			because it would already be too late to gain any efficiency.
		</div>
	<h4>See Also</h4>
		<ul>
			<li><a href="for.html">BOOST_PP_FOR</a></li>
		</ul>
	<h4>Requirements</h4>
		<div>
			<b>Header:</b> &nbsp;<a href="../headers/repetition/deduce_r.html">&lt;boost/preprocessor/repetition/deduce_r.hpp&gt;</a>
		</div>
</body>
</html>