Add const array accessor

This commit is contained in:
2025-02-15 01:09:15 +01:00
parent c304b50eb3
commit 302b2b9a94

View File

@@ -187,6 +187,13 @@ namespace minipp
return nullptr; return nullptr;
return m_values[index]; return m_values[index];
} }
const Value* operator[](size_t index) const noexcept
{
if (index >= m_values.size())
return nullptr;
return m_values[index];
}
}; };
}; };