MCPcopy Create free account
hub / github.com/Gecode/gecode / put

Method put

gecode/flatzinc/symboltable.hh:55–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54 template<class Val>
55 bool
56 SymbolTable<Val>::put(const std::string& key, const Val& val) {
57 const auto& i = m.find(key);
58 bool fresh = (i == m.end());
59 m[key] = val;
60 return fresh;
61 }
62
63 template<class Val>
64 bool

Callers 2

yyparseFunction · 0.45
archiveMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected