bind_map missing methods compared to native dicts #3249
kenoslund-google
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
@kenoslund-google Just noone has bothered to implement them. PR welcome on this front with relevant tests. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using bind_map from stl_bind.hpp, there are several standard (and widely used) methods that are missing compared to native dictionaries:
In particular,
values
,keys
andclear
are pretty widely used. Is there a reason these are missing? Could they be added?keys
would probably be pretty trivial to implement withmake_key_iterator
. It doesn't look like an equivalent foriter.second
exists, but presumably would be pretty simple to add following the same pattern asmake_key_iterator
. clear should be trivial too.Beta Was this translation helpful? Give feedback.
All reactions