view/group: make ::handle [[nodiscard]]

This commit is contained in:
Michele Caini
2022-09-22 15:08:37 +02:00
parent 9a457c5aca
commit ab33111192
2 changed files with 3 additions and 3 deletions

View File

@@ -163,7 +163,7 @@ public:
* @brief Returns a const reference to the underlying handler.
* @return A const reference to the underlying handler.
*/
const base_type &handle() const noexcept {
[[nodiscard]] const base_type &handle() const noexcept {
return *handler;
}

View File

@@ -309,7 +309,7 @@ public:
* @brief Returns the leading storage of a view.
* @return The leading storage of the view.
*/
const base_type &handle() const noexcept {
[[nodiscard]] const base_type &handle() const noexcept {
return *view;
}
@@ -587,7 +587,7 @@ public:
* @brief Returns the leading storage of a view.
* @return The leading storage of the view.
*/
const base_type &handle() const noexcept {
[[nodiscard]] const base_type &handle() const noexcept {
return storage();
}