T, Result&gt;(<wbr>_:<wbr> T,  _: T throws -&gt; Result)</a>
        
<div class="comment collapse" id="comment-func-withextendedlifetime-t-result_-t_-t-throws-result"><div class="p">
    <p>Evaluate <code>f(x)</code> and return its result, ensuring that <code>x</code> is not
destroyed before f returns.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func withExtendedLifetime&lt;T, Result&gt;(x: T, @noescape _ f: T throws -&gt; Result) rethrows -&gt; Result</code>
    
    
</div></div>
<