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:
parent
84e2e9ceea
commit
98bf74ed80
|
@ -340,6 +340,11 @@ public:
|
||||||
return &d_t;
|
return &d_t;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
T &value()
|
||||||
|
{
|
||||||
|
return d_t;
|
||||||
|
}
|
||||||
|
|
||||||
// implements generic ++ or --
|
// implements generic ++ or --
|
||||||
iter_t& genoperator(MDB_cursor_op dupop, MDB_cursor_op op)
|
iter_t& genoperator(MDB_cursor_op dupop, MDB_cursor_op op)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue