[committed 2/2] libstdc++: Add [[nodiscard]] to sequence containers
Jonathan Wakely
jwakely@redhat.com
Thu Aug 5 14:38:07 GMT 2021
On 04/08/21 13:00 +0100, Jonathan Wakely wrote:
>On 04/08/21 12:56 +0100, Jonathan Wakely wrote:
>>... and container adaptors.
>>
>>This adds the [[nodiscard]] attribute to functions with no side-effects
>>for the sequence containers and their iterators, and the debug versions
>>of those containers, and the container adaptors,
>
>I don't plan to add any more [[nodiscard]] attributes for now, but
>these two commits should demonstrate how to do it for anybody who
>wants to contribute similar patches.
OK, one more change in this vein, adding [[nodiscard]] to <compare>.
Tested powerpc64le-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 10719 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20210805/faa8a93e/attachment.bin>
More information about the Libstdc++
mailing list