Skip to content

Commit 672362a

Browse files
committed
Update iterator comments.
1 parent 4be4658 commit 672362a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

include/bitcoin/database/primitives/iterator.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,16 @@ class iterator
5050
iterator(memory_ptr&& data, const Link& start, Key&& key) NOEXCEPT;
5151
iterator(memory_ptr&& data, const Link& start, const Key& key) NOEXCEPT;
5252

53-
/// Advance to and return next iterator.
53+
/// Advance to next and return false if none found.
5454
inline bool advance() NOEXCEPT;
5555

5656
/// Expose the search key.
5757
inline const Key& key() const NOEXCEPT;
5858

59-
/// Advance to next match and return false if terminal (not found).
59+
/// Return current link, terminal if not found.
6060
inline const Link& self() const NOEXCEPT;
6161

6262
/// Access the underlying memory pointer.
63-
// TODO: for use by hashmap, make exclusive via friend.
6463
inline const memory_ptr& get() const NOEXCEPT;
6564

6665
/// Release the memory pointer, invalidates iterator.

0 commit comments

Comments
 (0)