commit | a30482718491e3455365167e1c85981c8c0f542b | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Wed May 08 15:08:10 2019 -0700 |
committer | Behdad Esfahbod <behdad@behdad.org> | Wed May 08 15:08:33 2019 -0700 |
tree | 8a264a8077b29034d0f2780f277be9c00180a63e | |
parent | 3c69505b3a7850b68a931849a2badb84b6b36d51 [diff] [blame] |
[map] Add .values() iterator
diff --git a/src/test-iter.cc b/src/test-iter.cc index 69f2de9..0a0e4d1 100644 --- a/src/test-iter.cc +++ b/src/test-iter.cc
@@ -215,6 +215,14 @@ using map_key_t = decltype (*m.keys()); + hb_iter (m.keys ()) | hb_filter ([] (map_key_t k) { return k < 42; }) + | hb_drain + ; + + m.values (); + using map_value_t = decltype (*m.values()); + + hb_iter (m.values ()) + | hb_filter ([] (map_value_t k) { return k < 42; }) + | hb_drain ; unsigned int temp1 = 10;