checked_iterator::operator*
Returns the element that a checked_iterator addresses.
reference operator*( ) const;
Return Value
The value of the element addressed by the checked_iterator.
Remarks
For more information, see Checked Iterators.
Example
// checked_iterators_op_pointer.cpp
// compile with: /EHsc
#include <vector>
#include <iostream>
int main() {
using namespace std;
vector<int> V1;
for (int i = 0 ; i < 10 ; i+)
V1.push_back(i);
stdext::checked_iterator< vector<int> > VChkIter1(V1, V1.begin());
cout << *VChkIter1 << endl;
VChkIter1++;
cout << *VChkIter1 << endl;
}
0 1
Requirements
Header: <iterator>
Namespace: stdext