pool: compute pool::empty
correctly...
This commit is contained in:
parent
9c62ab5e7b
commit
d73332034f
3
pool.hpp
3
pool.hpp
@ -143,8 +143,7 @@ namespace cruft {
|
|||||||
|
|
||||||
auto capacity (void) const { return m_capacity; }
|
auto capacity (void) const { return m_capacity; }
|
||||||
auto size (void) const { return m_size.load (); }
|
auto size (void) const { return m_size.load (); }
|
||||||
|
bool empty (void) const { return size () == 0; }
|
||||||
bool empty (void) const { return m_size == m_capacity; }
|
|
||||||
|
|
||||||
|
|
||||||
// Indexing
|
// Indexing
|
||||||
|
Loading…
Reference in New Issue
Block a user