]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Add nodiscard to std::find
authorJonathan Wakely <jwakely@redhat.com>
Thu, 17 Oct 2024 20:18:14 +0000 (21:18 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 18 Oct 2024 13:49:34 +0000 (14:49 +0100)
commit5546be4c24cd1085c8e43b5635be56a9b591c626
tree3ae9b3c46b7e0054daf2247ebb662fa609671c8b
parent7ed561f63e7955df4d194669998176df5ef47803
libstdc++: Add nodiscard to std::find

I missed this one out in r14-9478-gdf483ebd24689a but I don't think that
was intentional. I see no reason std::find shouldn't be [[nodiscard]].

libstdc++-v3/ChangeLog:

* include/bits/stl_algo.h (find): Add nodiscard.

Reviewed-by: Patrick Palka <ppalka@redhat.com>
libstdc++-v3/include/bits/stl_algo.h