compressible

Synopsis

Declared in <folly/detail/ThreadLocalDetail.h>

bool
compressible() const;

Description

If many elements have been removed, then size might be much less than capacity and it becomes possible to reduce memory usage.

Return Value

True if the set can be compressed to save memory.

Created with MrDocs