highlight-cpp"><div class="highlight"><pre><span></span><span class="k">auto</span> <span class="n">r</span> <span class="o">=</span> <span class="n">transform</span><span class="p">(</span>
    <span class="n">filter</span><span class="p">(</span>
        <span class="n">numbers</span><span class="p">,</span>
        <span class="p">[](</span><span class="kt">int</span> <span class="n">x</span><span class="p">)</span> <span class="p">{</span> <span class="k">return</span> <span class="n">x</span> <span cla