mirror of
https://github.com/holub/mame
synced 2025-06-05 20:33:45 +03:00
squash me
This commit is contained in:
parent
3ea466a845
commit
d664e1e324
@ -113,12 +113,14 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
ATTR_HOT C& operator[](const std::size_t index)
|
||||
size_t size() { return N; }
|
||||
|
||||
C& operator[](const std::size_t &index)
|
||||
{
|
||||
return *reinterpret_cast<C *>(reinterpret_cast<char *>(m_buf) + index * sizeof(C));
|
||||
}
|
||||
|
||||
ATTR_HOT const C& operator[](const std::size_t index) const
|
||||
const C& operator[](const std::size_t &index) const
|
||||
{
|
||||
return *reinterpret_cast<C *>(reinterpret_cast<char *>(m_buf) + index * sizeof(C));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user