MCPcopy Create free account
hub / github.com/boostorg/spirit / find_var

Method find_var

example/qi/compiler_tutorial/conjure2/compiler.cpp:39–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 }
38
39 int const* function::find_var(std::string const& name) const
40 {
41 std::map<std::string, int>::const_iterator i = variables.find(name);
42 if (i == variables.end())
43 return 0;
44 return &i->second;
45 }
46
47 void function::add_var(std::string const& name)
48 {

Callers 1

operator()Method · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected