Skip to content

Commit 2865d21

Browse files
plguokkoopa
authored andcommitted
doc: fix the comment about PersistentBase::IsEmpty (#805)
* Fix the comments about PersistentBase's `IsEmpty` and `Empty` functions * Add the missing `const` to `IsEmpty` to match the actual code
1 parent ca5134d commit 2865d21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/persistent.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ template<typename T> class PersistentBase {
4343
*/
4444
template<typename S> void Reset(const PersistentBase<S> &other);
4545

46+
/** Returns true if the handle is empty. */
47+
bool IsEmpty() const;
48+
4649
/**
4750
* If non-empty, destroy the underlying storage cell
4851
* IsEmpty() will return true after this call.
4952
*/
50-
bool IsEmpty();
51-
5253
void Empty();
5354

5455
template<typename S> bool operator==(const PersistentBase<S> &that);

0 commit comments

Comments
 (0)