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

Method as_float

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

Source from the content-addressed store, hash-verified

129
130 virtual int64_t as_int() const { throw std::runtime_error(type() + " is not an int value"); }
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"); }

Callers 4

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