checked_array_iterator::operator--
이전 요소의 checked_array_iterator 을 감소합니다.
checked_array_iterator<_Iterator>& operator--( );
checked_array_iterator<_Iterator> operator--( int );
반환 값
The first operator returns the predecremented checked_array_iterator and the second, the postdecrement operator, returns a copy of the decremented checked_array_iterator.
설명
자세한 내용은 Checked Iterators을 참조하십시오.
예제
// checked_array_iterators_op_minus_minus.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;
}
요구 사항
헤더: <iterator>
네임스페이스: stdext