mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
common array: allow it to modify values.
This commit is contained in:
parent
accb8c5699
commit
b81b23af62
1 changed files with 2 additions and 2 deletions
|
@ -82,12 +82,12 @@ struct Array
|
||||||
return data + count;
|
return data + count;
|
||||||
}
|
}
|
||||||
|
|
||||||
const T& last() const
|
T& last()
|
||||||
{
|
{
|
||||||
return data[count - 1];
|
return data[count - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
const T& first() const
|
T& first()
|
||||||
{
|
{
|
||||||
return data[0];
|
return data[0];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue