pool: add ssize query
This commit is contained in:
parent
2f28e5caa6
commit
8437bb79f9
3
pool.hpp
3
pool.hpp
@ -174,7 +174,8 @@ namespace cruft {
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
auto capacity (void) const { return m_capacity; }
|
||||
auto size (void) const { return capacity () - m_available.size (); }
|
||||
size_t size (void) const { return capacity () - m_available.size (); }
|
||||
ssize_t ssize (void) const { return capacity () - m_available.size (); }
|
||||
bool empty (void) const { return size () == 0; }
|
||||
bool full (void) const { return size () == capacity (); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user