Blender Git Commit Log

Git Commits -> Revision ab94ee3

May 1, 2021, 08:12 (GMT)
BLI: improve VectorSet data structure

This adds two new methods:
* `clear` just removes all keys from the vector set.
* `index_of_or_add` returns the index of a key and adds it if has not
been added before.

Commit Details:

Full Hash: ab94ee39f174833a9c8cfcecf812bc001649911c
Parent Commit: dc9d940
Committed By: YimingWu
Lines Changed: +71, -0

2 Modified Paths:

/source/blender/blenlib/BLI_vector_set.hh (+45, -0) (Diff)
/source/blender/blenlib/tests/BLI_vector_set_test.cc (+26, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021