iterator: added [[nodiscard]] to input_iterator_proxy::operator->

This commit is contained in:
Michele Caini
2021-09-30 16:57:20 +02:00
parent f1e7602775
commit 081c3fdb5b

View File

@@ -23,7 +23,7 @@ struct input_iterator_proxy {
* @brief Access operator for accessing wrapped values.
* @return A pointer to the wrapped value.
*/
Type *operator->() ENTT_NOEXCEPT {
[[nodiscard]] Type *operator->() ENTT_NOEXCEPT {
return std::addressof(value);
}