checked_array_iterator::operator++

Aumenta checked_array_iterator al elemento siguiente.

checked_array_iterator& operator++();
checked_array_iterator<_Iterator> operator++(int);

Valor devuelto

El primer operador devuelve checked_array_iterator preincremented y el segundo, el operador de postincrement, devuelve una copia de checked_array_iteratorsuperior.

Comentarios

Para obtener más información, vea Iteradores comprobados.

Ejemplo

// checked_array_iterators_op_plus_plus.cpp
// compile with: /EHsc
#include <vector>
#include <iostream>

int main() {
   using namespace stdext;
   using namespace std;
   int a[] = {6, 3, 77, 199, 222};
   int b[5];
   copy(a, a + 5, checked_array_iterator<int*>(b,5));

   checked_array_iterator<int*> checked_output_iterator(b,5);

   cout << *checked_output_iterator << endl;
   ++checked_output_iterator;
   cout << *checked_output_iterator << endl;
   checked_output_iterator++;
   cout << *checked_output_iterator << endl;
}
  

Requisitos

encabezado: <iterador>

espacio de nombres: stdext

Vea también

Referencia

checked_array_iterator Class

Biblioteca de plantillas estándar