[map] tweak test-iter.cc
This commit is contained in:
parent
492af0f1bf
commit
b827181ba1
@ -222,7 +222,6 @@ struct hb_hashmap_t
|
||||
+ iter()
|
||||
| hb_map (&hb_pair_t<K, V>::first)
|
||||
)
|
||||
// | hb_map ([&] (item_t i) { return i.key; })
|
||||
|
||||
protected:
|
||||
|
||||
|
@ -206,7 +206,7 @@ main (int argc, char **argv)
|
||||
| hb_reduce ([&] (int acc, int value) -> int { return acc; }, 2)
|
||||
;
|
||||
|
||||
using map_pair_t = decltype (*hb_iter (m));
|
||||
using map_pair_t = hb_item_type<hb_map_t>;
|
||||
+ hb_iter (m)
|
||||
| hb_map ([] (map_pair_t p) { return p.first * p.second; });
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user