| 100 | |
| 101 | template<typename F> |
| 102 | void forEachMap(F&& handler) const { |
| 103 | for (const auto& it : getMap()) { |
| 104 | if (!it.second.isUnset()) { |
| 105 | handler(Entry(it.first, &it.second)); |
| 106 | } |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | template<typename F> |
| 111 | void forEachVec(F&& handler) const { |