view/group: make ::handle [[nodiscard]]
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user