зеркало из https://github.com/mozilla/gecko-dev.git
Bug 685905 - Adding ReplaceElementAt to nsTArray. r=sicking
This commit is contained in:
Родитель
c0e01ee34d
Коммит
82ec5ca411
|
@ -688,7 +688,13 @@ public:
|
||||||
const Item& item) {
|
const Item& item) {
|
||||||
return ReplaceElementsAt(start, count, &item, 1);
|
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.
|
// A variation on the ReplaceElementsAt method defined above.
|
||||||
template<class Item>
|
template<class Item>
|
||||||
elem_type *InsertElementsAt(index_type index, const Item* array,
|
elem_type *InsertElementsAt(index_type index, const Item* array,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче