| 3769 | } |
| 3770 | |
| 3771 | Value Value::get(ArrayIndex index, const Value &defaultValue) const |
| 3772 | { |
| 3773 | const Value *value = &((*this)[index]); |
| 3774 | return value == &nullSingleton() ? defaultValue : *value; |
| 3775 | } |
| 3776 | |
| 3777 | bool Value::isValidIndex(ArrayIndex index) const { return index < size(); } |
| 3778 |