diff options
author | lloyd <[email protected]> | 2010-03-22 22:47:55 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-22 22:47:55 +0000 |
commit | 9056872fd42d52e13b22a4368ee73c8223813efb (patch) | |
tree | 3c640fcf5270766d37665801a613ccef73f5e344 | |
parent | 572c106e868821da13447ca7349523ef4a90ec2c (diff) |
Fix Doxygen comment for grow_to
-rw-r--r-- | src/alloc/secmem.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/alloc/secmem.h b/src/alloc/secmem.h index 42b5c7a2d..96d2d32bf 100644 --- a/src/alloc/secmem.h +++ b/src/alloc/secmem.h @@ -179,11 +179,13 @@ class MemoryRegion void resize(u32bit n); /** - * Preallocate memory, so that this buffer can grow up to size n without - * having to perform any actual memory allocations. (This is - * the same principle as for std::vector::reserve().) + * Change the size to n elements. If n is >= size(), preexisting + * elements remain unchanged, with later elements + * zero-initialized. If n < size(), then the last (size() - N) + * elements are removed. + * @param n the new size */ - void grow_to(u32bit N); + void grow_to(u32bit n); /** * Swap this buffer with another object. |