Mercurial > hg > svcore
changeset 1840:7faa08747f5e
Comments
author | Chris Cannam |
---|---|
date | Tue, 14 Apr 2020 08:19:23 +0100 |
parents | 915d316a5609 |
children | 627a7d7ada45 |
files | base/ById.h |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/base/ById.h Thu Apr 09 14:59:05 2020 +0100 +++ b/base/ById.h Tue Apr 14 08:19:23 2020 +0100 @@ -67,6 +67,11 @@ * shared_ptr, then the object being pointed to can't be deleted while * that shared_ptr is in scope. * + * The result is like using weak_ptr references to a shared_ptr whose + * ownership is within a "layer" (at "application level") rather than + * managed by a specific object. A human-readable id representation is + * also quite useful for debugging. + * * Example: * * class Thing : public WithTypedId<Thing> { Thing(int x) { } }; @@ -182,7 +187,7 @@ /** * Return an id for this object. The id is a unique value for this - * object among all objects that implement WithTypedId within this + * object among all objects that implement WithId within this * single run of the application. */ Id getId() const {