MCPcopy Create free account
hub / github.com/Tracktion/choc / operator[]

Method operator[]

choc/javascript/choc_javascript.h:58–58  ·  view source on GitHub ↗

Returns an argument, or a nullptr if the index is out of range.

Source from the content-addressed store, hash-verified

56
57 /// Returns an argument, or a nullptr if the index is out of range.
58 const choc::value::Value* operator[] (size_t index) const { return index < numArgs ? args + index : nullptr; }
59
60 /// Gets an argument as a primitive type (or a string).
61 /// If the index is out of range or the object isn't a suitable type,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected