ENH: change refCount (internal) from count() to use_count()

- allows unambiguous of count() for other classes.
  Naming as per std::shared_ptr.

STYLE: qualify use_count() and unique() methods with the refCount base

- clearer/consistent meaning
This commit is contained in:
Mark Olesen
2023-02-27 15:33:03 +01:00
parent 00f499d714
commit 0ab0ecb541
4 changed files with 13 additions and 13 deletions

View File

@ -41,7 +41,7 @@ void printInfo(const tmp<T>& item, const bool verbose = false)
<< " movable:" << Switch(item.movable());
if (item)
{
Info<< " refCount:" << item->count();
Info<< " refCount:" << item->use_count();
}
Info<< " move-constructible:"