Bug 685905 - Adding ReplaceElementAt to nsTArray. r=sicking

This commit is contained in:
Atul Aggarwal 2011-09-20 21:04:35 +05:30
Родитель c0e01ee34d
Коммит 82ec5ca411
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -689,6 +689,12 @@ public:
return ReplaceElementsAt(start, count, &item, 1);
}
// A variation on the ReplaceElementsAt method defined above.
template<class Item>
elem_type *ReplaceElementAt(index_type index, const Item& item) {
return ReplaceElementsAt(index, 1, item, 1);
}
// A variation on the ReplaceElementsAt method defined above.
template<class Item>
elem_type *InsertElementsAt(index_type index, const Item* array,