MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / has_function

Method has_function

include/chaiscript/dispatchkit/dispatchkit.hpp:199–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197 }
198
199 bool has_function(const Proxy_Function &new_f, const std::string &name)
200 {
201 return std::any_of(m_funcs.begin(), m_funcs.end(),
202 [&](const std::pair<Proxy_Function, std::string> &existing_f) {
203 return existing_f.second == name && *(existing_f.first) == *(new_f);
204 }
205 );
206 }
207
208
209 private:

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected