alloc: trivial top level comments for linear/stack

This commit is contained in:
Danny Robson 2015-11-19 15:03:57 +11:00
parent 38678cc78e
commit 873997fa33
2 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,8 @@
namespace util { namespace alloc {
// allocate progressively across a buffer without concern for deallocation.
// deallocation is a noop; the only way to free allocations is via reset.
class linear {
public:
linear (const linear&) = delete;

View File

@ -22,6 +22,8 @@
namespace util { namespace alloc {
// allocate memory from a buffer in a stacklike manner. deallocation that
// is not correctly ordered has undefined (read 'bad') results.
class stack {
public:
stack (const stack&) = delete;