Files
test/source/blender/blenlib
Bastien Montagne fe9b21a44a Add GHash/GSet pop() feature.
Behavior is similar to python's set.pop(), it removes and returns a 'random' entry from the hash.

Notes:
* Popping will return items in same order as ghash/gset iterators (i.e. increasing
  order in internal buckets-based storage), unless ghash/gset is modified in between.
* We are keeping a track of the latest bucket we popped out (through a 'state' parameter),
  this allows for similar performances to iterators when iteratively popping a whole hash
  (without it, we are roughly O(n!), with it we are roughly O(n)...).

Reviewers: campbellbarton

Differential Revision: https://developer.blender.org/D1808
2016-02-20 15:28:25 +01:00
..
2016-02-20 15:28:25 +01:00
2015-10-10 17:35:30 +02:00
2012-07-04 20:47:12 +00:00
2016-02-13 18:59:56 +11:00
2015-12-24 01:52:54 +11:00
2015-02-14 08:00:41 +11:00
2016-02-20 15:28:25 +01:00
2014-08-07 14:42:47 +10:00
2015-08-25 08:50:53 +10:00
2015-10-17 16:04:54 +11:00
2015-10-17 00:03:29 +11:00
2015-06-19 20:19:37 +10:00
2015-12-24 20:05:45 +11:00
2016-01-16 15:59:37 +01:00
2015-12-21 13:02:38 +11:00
2016-02-03 21:17:07 +11:00
2013-10-31 14:10:01 +00:00