From 89317dc542a10fc1cb3f0f2fa0f826be91578c7f Mon Sep 17 00:00:00 2001 From: clemahieu Date: Sat, 16 Mar 2024 15:44:24 +0000 Subject: [PATCH] Add operator* to store::iterator. (#4493) --- nano/store/iterator.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nano/store/iterator.hpp b/nano/store/iterator.hpp index aef5cc709..7fe957d72 100644 --- a/nano/store/iterator.hpp +++ b/nano/store/iterator.hpp @@ -49,6 +49,10 @@ public: { return ¤t; } + std::pair const & operator* () const + { + return current; + } bool operator== (iterator const & other_a) const { return (impl == nullptr && other_a.impl == nullptr) || (impl != nullptr && *impl == other_a.impl.get ()) || (other_a.impl != nullptr && *other_a.impl == impl.get ());