PageRenderTime 24ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/boost_1_57_0/doc/html/boost/proto/child_c_idp227698512.html

http://github.com/MisterTea/HyperNEAT
HTML | 91 lines | 90 code | 1 blank | 0 comment | 0 complexity | 51e6b5b1e85168f21a9f81093bc76d5a MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-3.0, GPL-3.0, GPL-2.0
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
  4. <title>Function child_c</title>
  5. <link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
  6. <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
  7. <link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
  8. <link rel="up" href="../../proto/reference.html#header.boost.proto.traits_hpp" title="Header &lt;boost/proto/traits.hpp&gt;">
  9. <link rel="prev" href="child_idp227670016.html" title="Function child">
  10. <link rel="next" href="value_idp227717568.html" title="Function value">
  11. </head>
  12. <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
  13. <table cellpadding="2" width="100%"><tr>
  14. <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
  15. <td align="center"><a href="../../../../index.html">Home</a></td>
  16. <td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
  17. <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
  18. <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
  19. <td align="center"><a href="../../../../more/index.htm">More</a></td>
  20. </tr></table>
  21. <hr>
  22. <div class="spirit-nav">
  23. <a accesskey="p" href="child_idp227670016.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../proto/reference.html#header.boost.proto.traits_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="value_idp227717568.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
  24. </div>
  25. <div class="refentry">
  26. <a name="boost.proto.child_c_idp227698512"></a><div class="titlepage"></div>
  27. <div class="refnamediv">
  28. <h2><span class="refentrytitle">Function child_c</span></h2>
  29. <p>boost::proto::child_c &#8212; Return the <em class="replaceable"><code>N</code></em><sup>th</sup> child of the specified
  30. Proto expression. </p>
  31. </div>
  32. <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
  33. <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../proto/reference.html#header.boost.proto.traits_hpp" title="Header &lt;boost/proto/traits.hpp&gt;">boost/proto/traits.hpp</a>&gt;
  34. </span>
  35. <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">long</span> N<span class="special">,</span> <span class="keyword">typename</span> <a class="link" href="../../Expr.html" title="Concept Expr">Expr</a><span class="special">&gt;</span>
  36. <span class="keyword">typename</span> <a class="link" href="result_of/child_c.html" title="Struct template child_c">proto::result_of::child_c</a><span class="special">&lt;</span> <span class="identifier">Expr</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">N</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="identifier">child_c</span><span class="special">(</span><span class="identifier">Expr</span> <span class="special">&amp;</span> expr<span class="special">)</span><span class="special">;</span>
  37. <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">long</span> N<span class="special">,</span> <span class="keyword">typename</span> <a class="link" href="../../Expr.html" title="Concept Expr">Expr</a><span class="special">&gt;</span>
  38. <span class="keyword">typename</span> <a class="link" href="result_of/child_c.html" title="Struct template child_c">proto::result_of::child_c</a><span class="special">&lt;</span> <span class="identifier">Expr</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">N</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span>
  39. <span class="identifier">child_c</span><span class="special">(</span><span class="identifier">Expr</span> <span class="keyword">const</span> <span class="special">&amp;</span> expr<span class="special">)</span><span class="special">;</span></pre></div>
  40. <div class="refsect1">
  41. <a name="idp385987168"></a><h2>Description</h2>
  42. <p>
  43. Return the <em class="replaceable"><code>N</code></em><sup>th</sup> child of the specified Proto
  44. expression. The child is returned by reference.
  45. </p>
  46. <div class="variablelist"><table border="0" class="variablelist compact">
  47. <colgroup>
  48. <col align="left" valign="top">
  49. <col>
  50. </colgroup>
  51. <tbody>
  52. <tr>
  53. <td><p><span class="term">Requires:</span></p></td>
  54. <td>
  55. <p>
  56. <code class="computeroutput"><a class="link" href="is_expr.html" title="Struct template is_expr">proto::is_expr</a>&lt;Expr&gt;::value</code> is
  57. <code class="computeroutput">true</code>.
  58. </p>
  59. <p>
  60. <code class="computeroutput">N &lt; Expr::proto_arity::value</code>
  61. </p>
  62. </td>
  63. </tr>
  64. <tr>
  65. <td><p><span class="term">Returns:</span></p></td>
  66. <td><p>A reference to the <em class="replaceable"><code>N</code></em><sup>th</sup> child
  67. of <code class="computeroutput">expr</code>.</p></td>
  68. </tr>
  69. <tr>
  70. <td><p><span class="term">Throws:</span></p></td>
  71. <td>Will not throw.</td>
  72. </tr>
  73. </tbody>
  74. </table></div>
  75. </div>
  76. </div>
  77. <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
  78. <td align="left"></td>
  79. <td align="right"><div class="copyright-footer">Copyright &#169; 2008 Eric Niebler<p>
  80. Distributed under the Boost Software License, Version 1.0. (See accompanying
  81. 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>)
  82. </p>
  83. </div></td>
  84. </tr></table>
  85. <hr>
  86. <div class="spirit-nav">
  87. <a accesskey="p" href="child_idp227670016.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../proto/reference.html#header.boost.proto.traits_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="value_idp227717568.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
  88. </div>
  89. </body>
  90. </html>