view: minor changes

This commit is contained in:
Michele Caini
2023-07-07 12:17:49 +02:00
parent 12865f318e
commit a5e259c19b

View File

@@ -740,7 +740,7 @@ public:
* otherwise.
*/
[[nodiscard]] entity_type front() const noexcept {
return (!view || view->empty()) ? null : *view->begin();
return empty() ? null : *view->begin();
}
/**
@@ -749,7 +749,7 @@ public:
* otherwise.
*/
[[nodiscard]] entity_type back() const noexcept {
return (!view || view->empty()) ? null : *view->rbegin();
return empty() ? null : *view->rbegin();
}
/**