This is an archive of the discontinued LLVM Phabricator instance.

Improve StringMap iterator support
AbandonedPublic

Authored by zturner on Mar 20 2017, 10:46 PM.

Details

Summary

Make the two StringMap iterators support iterator_facade_base. This fixes some usage scenarios when passing begin and end to various STL algorithms. After doing that, it's easy to make a StringMapKeysIterator that only iterates keys, so I've done that as well.

Diff Detail

Event Timeline

zturner created this revision.Mar 20 2017, 10:46 PM
zturner abandoned this revision.Mar 20 2017, 10:46 PM

Forgot to add llvm-commits, will need to re-create