Add Flags<F>::Iterator.

This simplifies the string code and seems generally useful for people
that want to operate on individual flags.

Bug: 160010896
Test: atest libinput_tests
Change-Id: I13aa913eb85d6294b2bf3c899a6a1ab700a40374
2 files changed