[map] tweak test-iter.cc

This commit is contained in:
rsheeter 2019-05-08 13:51:11 -07:00 committed by Behdad Esfahbod
parent 492af0f1bf
commit b827181ba1
2 changed files with 1 additions and 2 deletions

View File

@ -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:

View File

@ -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; });