MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / as_bool

Method as_bool

subprojects/llama.cpp/common/jinja/value.h:133–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 virtual double as_float() const { throw std::runtime_error(type() + " is not a float value"); }
132 virtual string as_string() const { throw std::runtime_error(type() + " is not a string value"); }
133 virtual bool as_bool() const { throw std::runtime_error(type() + " is not a bool value"); }
134 virtual const std::vector<value> & as_array() const { throw std::runtime_error(type() + " is not an array value"); }
135 virtual const std::vector<std::pair<value, value>> & as_ordered_object() const { throw std::runtime_error(type() + " is not an object value"); }
136 virtual value invoke(const func_args &) const { throw std::runtime_error(type() + " is not a function value"); }

Callers 9

execute_implMethod · 0.45
execute_implMethod · 0.45
tojsonFunction · 0.45
selectattrFunction · 0.45
default_valueFunction · 0.45
value.cppFile · 0.45
value_compareFunction · 0.45
value_to_json_internalFunction · 0.45
execute_implMethod · 0.45

Calls 1

typeEnum · 0.85

Tested by

no test coverage detected