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

Method get_pos

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

Source from the content-addressed store, hash-verified

39}
40
41value func_args::get_pos(size_t pos) const {
42 if (count() > pos) {
43 return args[pos];
44 }
45 throw raised_exception("Function '" + func_name + "' expected at least " + std::to_string(pos + 1) + " arguments, got " + std::to_string(count()));
46}
47
48value func_args::get_pos(size_t pos, value default_val) const {
49 if (count() > pos) {

Callers 7

test_type_fnFunction · 0.80
test_compare_fnFunction · 0.80
tojsonFunction · 0.80
selectattrFunction · 0.80
default_valueFunction · 0.80
value.cppFile · 0.80
execute_implMethod · 0.80

Calls 2

raised_exceptionClass · 0.85
to_stringFunction · 0.85

Tested by 2

test_type_fnFunction · 0.64
test_compare_fnFunction · 0.64