Blender Git Commit Log

Git Commits -> Revision 7041568

Revision 7041568 by Jacques Lucke (master)
April 30, 2021, 09:09 (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: 7041568ff922318f462b06e1c833cc9287aaa04b
Parent Commit: 2b723ab
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