System::Collections::Generic::SimpleEnumerator 클래스
SimpleEnumerator class
rbegin() 및 rend() 함수를 사용하여 요소를 직접 보유하는 단순 컨테이너용 반복자 클래스입니다. 이 클래스의 객체는 System::MakeObject() 함수를 사용하여 할당해야 합니다. 스택에 직접 생성하거나 operator new를 사용해 인스턴스를 만들면 런타임 오류 및/또는 어설션 오류가 발생합니다. 항상 이 클래스를 System::SmartPtr 포인터로 감싸고, 해당 포인터를 함수 인자로 전달하십시오.
template<typename Container,typename Element>class SimpleEnumerator : public System::Collections::Generic::BaseEnumerator<Container, typename Container::value_type>
| 매개변수 | 설명 |
|---|
| 컨테이너 | 반복할 컨테이너 유형. |
| Element | 요소 타입. |
메서드
또 보기