<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62390>62390</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
lifetimebound on more functions, including container methods
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
higher-performance
</td>
</tr>
</table>
<pre>
A suggestion that I wanted to relay:
In the spirit of #59900 and #60020, how about adding `[[clang::lifetimebound]]` to other functions as well?
Containers in particular seem to have many methods that could benefit from this attribute, including `back()`, `begin()`, `find()`, `insert()`, `operator[]`, `emplace_back()`, etc., since all of their outputs require the container to be alive for validity.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxkUt2OozwMfZpwY02VJoVvuOBiflRpnuJTSAx4NyRs4rTq26_CzKiaroSwOMb28fExOdMcEAfRvor2vTGFl5iGheYF09OGaYppNcFiM0Z3G14gl3nGzBQD8GIYPuBqAqMDjpDQm5vQL0K-C_n1_qj_IeSNEjHECYTSbd9LCSa4-tFJqaRQb7DEK5gxFgbjHIUZRCd3Vq_WmzDXvvrF04RMK46xBCfa9_p0sg6PvGCCqQRbyWUwGa7ovdBngE8qbzGwoYApAwXYTGKyxZsEGXGtLRZzQVhNuMGKvESXP1e0sXgHIwaciGFKcQVeKINhTjQWxsqegvXlm_Zo7G-hnoXq6w7qbcdwpvAIThTcI0YhY-JHNG6YDMf0eac7juvmjcX__xmJbA81ZgoWwXhfxecFKUEsvBXOkPBPoYT7gey3OFWIsRbQBWGKCS7GkyO-HRo3aNfr3jQ4HLtn1epey7ZZhs5o1K0bO6fMUT07J6eTlqhV61wrtW5oUFJpeVKdkvJ4ag81ofRxtNN_djJqEieJqyF_8P6yHmKaG8q54NAp3cvGmxF93i2qVMAr7EmhVHVsGmrN01jmLE7SU-Z878LEHocfpoEYYI0J71b5eb67EF8maEryw8K85WpBdRbqPBMvZTzYuAp1rsO-wtOW4i-0LNR5p5iFOu8r_A0AAP__PDMXFQ">