">return</span>(sum);</span>
<span id="cb3-12"><a href="030_basic_usage.html#cb3-12"></a>}</span></code></pre></div>
<div id="format-for-defining-a-function-in-rcpp." class="section level3" number="3.1.1">
<h3><span class="header-section-number">3.1.1</span> Format for defining a function in Rcpp.</h3>
<p>The following code shows the basic format for defining a Rcpp function.</p>
<div class="sourceCode" id="cb4"><pre class="sourceCode cpp"><code class="sourceCode cpp"><span id="cb4-1"><a href="030_basic_usa