medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit c5330c66328e67ffb4564ad2f99048eb3a6d828d
parent 390bdd48b7e75a399e82df38e008803eb1784fb6
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Dec 25 13:22:20 +0200

Pool const begin/end

Diffstat:
pool.h | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/pool.h b/pool.h @@ -105,6 +105,14 @@ public: return PoolIterator< T, N >( this, INVALID_IDX ); } + PoolIterator< const T, N > begin() const { + return PoolIterator< const T, N >( this, first_used ); + } + + PoolIterator< const T, N > end() const { + return PoolIterator< const T, N >( this, INVALID_IDX ); + } + private: enum { INVALID_IDX = U32_MAX };