MCPcopy Create free account
hub / github.com/Snapchat/Valdi / forEachSorted

Method forEachSorted

valdi_protobuf/src/valdi_protobuf/FieldMap.hpp:76–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

encodeMethod · 0.80

Calls 1

handlerFunction · 0.50

Tested by

no test coverage detected