Blender Git Loki

Git Commits -> Revision d288eeb

Revision d288eeb by Jacques Lucke (master)
May 13, 2021, 11:39 (GMT)
BLI: support looking up a key stored in Map or VectorSet

Sometimes it is useful to find the key that compares equal
to a known key. Typically that happens when the key itself
has additional data attached that is not part of its hash.

Note that the returned key reference/pointer is const, because
the caller must not change the key in a way that changes its
hash or how it compares to other keys.

Commit Details:

Full Hash: d288eeb79abc08d09f535bfd5d64b623d26bd129
Parent Commit: 5228680
Lines Changed: +89, -0

4 Modified Paths:

/source/blender/blenlib/BLI_map.hh (+31, -0) (Diff)
/source/blender/blenlib/BLI_vector_set.hh (+32, -0) (Diff)
/source/blender/blenlib/tests/BLI_map_test.cc (+13, -0) (Diff)
/source/blender/blenlib/tests/BLI_vector_set_test.cc (+13, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021