Home | History | Annotate | Download | only in include

Lines Matching refs:last

84     // Create a vector by copying the elements from [first, last).
90 vector(_Iterator first, _Iterator last) {
97 initialize(first, last, integral());
153 // Remove the last element. However, no memory is reclaimed from
163 // Remove a range of elements [first, last)
165 // @param last Iterator pointing to one past the last element to be removed.
166 // @return An iterator pointing to the elt next to 'last' or end().
167 iterator erase(iterator first, iterator last);
194 void range_initialize(_Iterator first, _Iterator last,
199 void range_initialize(_InputIterator first, _InputIterator last,
203 // The last parameter true_type is used by the caller to target this method.
209 // Not a repeat constructor (last param type is false_type). first
210 // and last are really iterators. Dispatch the call depending on
213 void initialize(_InputIterator first, _InputIterator last, false_type) {
214 range_initialize(first, last, android::iterator_category(first));
366 vector<_T>::erase(iterator first, iterator last) {
367 difference_type len = std::distance(first, last);
369 last = std::copy(last, end(), first);
372 while (last != end()) {
373 last->~_T();
374 ++last;
435 void vector<_T>::range_initialize(_InputIterator first, _InputIterator last,
441 for (; first != last; ++first) {
448 void vector<_T>::range_initialize(_Iterator first, _Iterator last,
451 const difference_type num = std::distance(first, last);
457 std::uninitialized_copy(first, last, iterator(mBegin));