| 109 | |
| 110 | template<typename F> |
| 111 | void forEachVec(F&& handler) const { |
| 112 | FieldNumber index = 0; |
| 113 | for (const auto& item : getVec()) { |
| 114 | if (!item.isUnset()) { |
| 115 | handler(Entry(index, &item)); |
| 116 | } |
| 117 | index++; |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | inline FieldMap::Vector& getVec() { |
| 122 | return *reinterpret_cast<FieldMap::Vector*>(&_storage); |