ion" href="classb8array.html#adc9081b1c4ee53e75acc9df81c328d69">push_back</a>(MyClass(1));        <span class="comment">// Add MyClass objects to the array.</span></div>
<div class="line">arr.push_back(MyClass(2));</div>
<div class="line"> </div>
<div class="line"><span class="keywordflow">for</span> (<span class="keyword">const</span> MyClass&amp; obj : arr) {  <span class="comment">// Iterate through elements.</span></div>
<div class="line">    std::cout &lt;&lt; obj.getValue() &lt;&lt; std::endl;</div>
<