mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
improve List::AddRange performance
This commit is contained in:
@@ -51,10 +51,7 @@ public:
|
||||
|
||||
void AddRange(std::initializer_list<T> initializerList)
|
||||
{
|
||||
for (T item : initializerList)
|
||||
{
|
||||
this->push_back(item);
|
||||
}
|
||||
this->insert(this->end(), initializerList.begin(), initializerList.end());
|
||||
}
|
||||
|
||||
void Insert(T item, size_t index)
|
||||
|
||||
Reference in New Issue
Block a user