forked from boostorg/unordered
Merge pull request #106 from cmazakas/missing-nodiscard
Add missing `[[nodiscard]]` qualifiers as outlined by C++20
This commit is contained in:
@@ -87,7 +87,7 @@ namespace boost {
|
||||
const_iterator xref:#unordered_map_cend[cend]() const noexcept;
|
||||
|
||||
// capacity
|
||||
bool xref:#unordered_map_empty[empty]() const noexcept;
|
||||
++[[nodiscard]]++ bool xref:#unordered_map_empty[empty]() const noexcept;
|
||||
size_type xref:#unordered_map_size[size]() const noexcept;
|
||||
size_type xref:#unordered_map_max_size[max_size]() const noexcept;
|
||||
|
||||
@@ -633,7 +633,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]
|
||||
|
||||
Reference in New Issue
Block a user