mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
Merge branch '10.6' into 10.11
This commit is contained in:
@@ -140,12 +140,24 @@ public:
|
||||
DBUG_ASSERT(idx < array.elements);
|
||||
return *(((Elem*)array.buffer) + idx);
|
||||
}
|
||||
|
||||
/// Const variant of at(), which cannot change data
|
||||
const Elem& at(size_t idx) const
|
||||
{
|
||||
return *(((Elem*)array.buffer) + idx);
|
||||
}
|
||||
|
||||
Elem& operator[](size_t idx)
|
||||
{
|
||||
return at(idx);
|
||||
}
|
||||
|
||||
/// Const variant of operator[]
|
||||
const Elem& operator[](size_t idx) const
|
||||
{
|
||||
return at(idx);
|
||||
}
|
||||
|
||||
/// @returns pointer to first element
|
||||
Elem *front()
|
||||
{
|
||||
|
Reference in New Issue
Block a user