Blender Git Commit Log

Git Commits -> Revision 3d95f77

July 7, 2021, 12:10 (GMT)
bli: generational_arena: fix: begin() points to `EntryNoExist`

When the first element of `Arena::data` is `EntryNoExist`, must iterate over the vector until the first `EntryExist` is found.

For `Arena::end()` this shouldn't be necessary because it should point to the last element + 1 anyway, so the `operator*` on this is meaningless.

Commit Details:

Full Hash: 3d95f774c8efb78e5aa1ab6c0470d3efb415afb1
Parent Commit: 128ad36
Lines Changed: +53, -4

2 Modified Paths:

/source/blender/blenlib/BLI_generational_arena.hh (+38, -4) (Diff)
/source/blender/blenlib/tests/BLI_generational_arena_test.cc (+15, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021