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

Method forEachMap

valdi_protobuf/src/valdi_protobuf/FieldMap.hpp:102–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

isUnsetMethod · 0.80
EntryClass · 0.70
handlerFunction · 0.50

Tested by

no test coverage detected