Behdad Esfahbod
90226eab89
[test-map] Test inserting shared_ptr key
2 years ago
Behdad Esfahbod
f657ef7e57
[map] Allow std::move-ing keys into the map
2 years ago
Behdad Esfahbod
a1768ad829
[map] Fix use of !=
2 years ago
Behdad Esfahbod
e74b372b59
[test-map] Test moving values
2 years ago
Behdad Esfahbod
a9c6a20b19
[map] Support moving value in sink interface
2 years ago
Behdad Esfahbod
1bf9afaad0
[test-vector] Test sink interface
2 years ago
Behdad Esfahbod
fa0e4b041d
[test-map] Test sink interface
2 years ago
Behdad Esfahbod
1c612a8541
[test-set] Test sinking range
2 years ago
Behdad Esfahbod
356708e34a
[test-set] Test length of iterator
2 years ago
Behdad Esfahbod
2892fc71e8
[vector] Add std::move to pop()
...
This was removed in 76fc27713f
,
but I believe that was faultly. It was because of a bad move
implementation in the set.
2 years ago
Behdad Esfahbod
921f45f46d
[array] Rewrite hash() as dagger
2 years ago
Behdad Esfahbod
213117317c
[array] Remove hash specializations for bytes
...
Not needed.
2 years ago
Behdad Esfahbod
bef5a1c8dc
[vector] Comment
2 years ago
Behdad Esfahbod
69b41f92ec
[vector] Simplify shift_down_vector()
...
Compiler is smarter than I am.
2 years ago
Behdad Esfahbod
1dd9396c7a
[vector] Optimize grow_vector() for size
...
Again, compiler is smarter than I am.
2 years ago
Behdad Esfahbod
d36f688131
[vector] Optimize shrink_vector for size
...
Compiler is smarter than I am.
2 years ago
Behdad Esfahbod
bc8eded296
[vector] Remove a for loop
2 years ago
Behdad Esfahbod
afd9a58bd7
[vector] Save a couple hb_iter() invocations
2 years ago
Behdad Esfahbod
3ead9863d2
[map] Add size()
2 years ago
Behdad Esfahbod
42db8be189
[map] Minor remove if condition
2 years ago
Behdad Esfahbod
4ec706980c
[map] Rewrite hash() as dagger
...
Somehow our daggers instead of for loop save size. I cannot
pinpoint why, other than maybe not inlining.
2 years ago
Behdad Esfahbod
025a68cb07
[map] Optimize copy resizing logic
2 years ago
Behdad Esfahbod
f1d716871d
[map] Change bucket_for_hash() to item_for_hash()
2 years ago
Behdad Esfahbod
d012f9a9b3
[map] Change bucket_for() to item_for()
2 years ago
Behdad Esfahbod
68a29020c5
[bit-page] Write hash() as dagger
2 years ago
Behdad Esfahbod
87271e1b2e
[bit-page] Write get_population as dagger
2 years ago
Behdad Esfahbod
744eb6baf9
[bit-page] Write is_empty() as dagger
2 years ago
Behdad Esfahbod
43a4028f0e
[algs] Move hb_vector_size_t to bit-page as only user
2 years ago
Behdad Esfahbod
01f961ac3a
[gsubgpos] Minor call hb_iter() instead of ->iter() directly
2 years ago
Behdad Esfahbod
bba5765583
[gsubgpos] Remove a few unnecessary namespace invocations
2 years ago
Behdad Esfahbod
b4d0d1608d
[gsubgpos] Rewrite a couple apply() functions as daggers
2 years ago
Behdad Esfahbod
76c8214eb5
[gsubgpos] Move member around
2 years ago
Behdad Esfahbod
81a573008e
[map] Optimize storage
2 years ago
Behdad Esfahbod
ae080bf202
[map] Initialize key and value explicitly
...
If they are of int time they won't be initialized otherwise.
2 years ago
Behdad Esfahbod
1d41b9cb3c
[user-data] std::move item
2 years ago
Behdad Esfahbod
ff0bb74895
[map] Call item_t constructor/destructor directly
2 years ago
Behdad Esfahbod
5c88715949
[map] Add item_t.destruct()
2 years ago
Behdad Esfahbod
7f83040836
[map] Simplify (de)construction of item_t
2 years ago
Behdad Esfahbod
99103bd976
[map] Destruct objects when clearing
2 years ago
Behdad Esfahbod
4caad5720c
[test-map] Add test for reset
...
I expect this to leak now, since we don't destruct items.
2 years ago
Behdad Esfahbod
e93c01c3ae
[map] Rename item clear() to construct()
2 years ago
Behdad Esfahbod
fc22d706fe
[test-map] Don't insert null smart-pointers in map
...
Dereferencing them is not supported anymore after
3aad7c2ddf
We don't support that for regular pointers, so don't supporting
them for smart-pointers sounds right to me.
2 years ago
Behdad Esfahbod
896377463f
[map] Don't resize map if not necessary
2 years ago
Behdad Esfahbod
7595fa2d9a
[map] Fix copy-assignment operator
...
Ouch!
2 years ago
Behdad Esfahbod
41f4bdac35
[map] Fix resize during copy-construction/assignment
2 years ago
Behdad Esfahbod
3aad7c2ddf
[algs] Remove smart-pointers from hb_hash()
...
hb_deref() handles them. I think this code predated that.
2 years ago
Behdad Esfahbod
7bd101728a
[map] Minor use hb_iter instead of hb_array
2 years ago
Behdad Esfahbod
238fc14716
[map] Simplify iterators
2 years ago
Behdad Esfahbod
410c14bfa2
[map] Fix equality
...
Ouch!
2 years ago
Behdad Esfahbod
6dfd4a16e7
[ot-font] Remove stale TODO
2 years ago