|
wavelength 1.0.0
|
A free list of fixed-size elements in one block. More...
#include <Pool.h>
Public Member Functions | |
| Pool () | |
| void * | Alloc () |
| Take an element. | |
| void | Free (void *elem) |
| Return an element, which must lie in the pool's block. | |
A free list of fixed-size elements in one block.
The object is 0x10 bytes. The member names follow the assertion text of the source. Which of the two counts is the element size and which the element count is not settled by the control, which never sets up a pool.
|
inline |
| void * Pool::Alloc | ( | ) |
Take an element.
| void Pool::Free | ( | void * | elem | ) |
Return an element, which must lie in the pool's block.
| elem | The element. |