checked_array_iterator::operator>=
연산자의 좌변에 있는 checked_array_iterator 가 우변에 있는 checked_array_iterator 보다 크거나 같습니다.
bool operator>=(
const checked_array_iterator<_Iterator>& _Right
) const;
매개 변수
- _Right
비교할 대상인 checked_array_iterator입니다.
설명
자세한 내용은 Checked Iterators을 참조하십시오.
예제
// checked_array_iterators_opgteq.cpp
// compile with: /EHsc
#include <iterator>
#include <iostream>
using namespace std;
using namespace stdext;
int main() {
int a[] = {0, 1, 2, 3, 4};
int b[5];
copy(a, a + 5, checked_array_iterator<int*>(b,5));
copy(a, a + 5, checked_array_iterator<int*>(b,5));
checked_array_iterator<int*> checked_output_iterator(b,5);
checked_array_iterator<int*> checked_output_iterator2(b,5);
if (checked_output_iterator2 >= checked_output_iterator)
cout << "checked_output_iterator2 is greater than or equal to checked_output_iterator" << endl;
else
cout << "checked_output_iterator2 is less than checked_output_iterator" << endl;
copy (a, a + 5, checked_output_iterator);
checked_output_iterator++;
if (checked_output_iterator2 >= checked_output_iterator)
cout << "checked_output_iterator2 is greater than or equal to checked_output_iterator" << endl;
else
cout << "checked_output_iterator2 is less than checked_output_iterator" << endl;
}
요구 사항
헤더: <iterator>
네임스페이스: stdext