共用方式為


checked_iterator::checked_iterator

Constructs a default checked_iterator or a checked_iterator from an underlying iterator.

checked_iterator( );
checked_iterator(
   Container& _C,
   InputIterator _P
);
checked_iterator(
    const checked_iterator<Container, InputIterator> &_Right
);
template <class Iter2>
    checked_iterator(
        const checked_iterator<Container, Iter2> &_Right
);

Remarks

For more information, see Checked Iterators.

Example

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

int main() {
   std::vector<int> V1( 10 );
   stdext::checked_iterator< std::vector<int> > VChkIter1(V1, V1.begin());
   stdext::checked_iterator< std::vector<int> > VChkIter2;
}

Requirements

Header: <iterator>

Namespace: stdext

See Also

Concepts

checked_iterator Class

checked_iterator Members

Standard Template Library