Allow returning non-const value when iterating

Modifying the object shouldn't harm and directly using it avoids a copy.
Of course this does not modify the object in the database.
This commit is contained in:
Martchus 2021-12-23 23:31:19 +01:00
parent 84e2e9ceea
commit 98bf74ed80
1 changed files with 5 additions and 0 deletions

View File

@ -340,6 +340,11 @@ public:
return &d_t;
}
T &value()
{
return d_t;
}
// implements generic ++ or --
iter_t& genoperator(MDB_cursor_op dupop, MDB_cursor_op op)
{