Merge pull request #106 from cmazakas/missing-nodiscard

Add missing `[[nodiscard]]` qualifiers as outlined by C++20
This commit is contained in:
Peter Dimov authored and GitHub committed 2022-02-24 18:00:00 +02:00
commit 0d3ece98c1
6 files changed
+32 -14

No files matched your search

+2 -2
View File
@@ -84,7 +84,7 @@ namespace boost {
const_iterator xref:#unordered_multiset_cend[cend]() const noexcept;
// capacity
bool xref:#unordered_multiset_empty[empty]() const noexcept;
++[[nodiscard]]++ bool xref:#unordered_multiset_empty[empty]() const noexcept;
size_type xref:#unordered_multiset_size[size]() const noexcept;
size_type xref:#unordered_multiset_max_size[max_size]() const noexcept;
@@ -611,7 +611,7 @@ Returns:;; A `const_iterator` which refers to the past-the-end value for the con
==== empty
```c++
bool empty() const noexcept;
[[nodiscard]] bool empty() const noexcept;
```
[horizontal]