| 74 | |
| 75 | template<typename F> |
| 76 | void forEachSorted(F&& handler) const { |
| 77 | if (VALDI_UNLIKELY(_isMap)) { |
| 78 | auto entries = getEntries(); |
| 79 | for (const auto& entry : entries) { |
| 80 | handler(entry); |
| 81 | } |
| 82 | } else { |
| 83 | forEachVec(std::move(handler)); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | std::vector<FieldNumber> sortedFieldNumbers() const; |
| 88 |