## BaseEnumerator class


[Enumerator](../baseset/) definition to wrap STL-styled types for C#-styled usage. Makes no assertions on container structure except for existance of sequental iterator. Uses begin() and end() functions. Objects of this class should only be allocated using [System::MakeObject()](../../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../../system/smartptr/) pointer and use this pointer to pass it to functions as argument.

```cpp
template<typename Container,typename Element>class BaseEnumerator : public System::Collections::Generic::IEnumerator<Element>
```


| पैरामीटर | विवरण |
| --- | --- |
| कंटेनर | STL-शैली का कंटेनर प्रकार। |
| Element | तत्व प्रकार। |
## विधियाँ

| विधि | विवरण |
| --- | --- |
| [BaseEnumerator](./baseenumerator/)(const Object::ptr\&, Container\&) | इटररेटर को प्रारंभ करता है। |
| [IsValid](./isvalid/)() const | जाँचता है कि क्या [MoveNext()](./movenext/) को कॉल किया गया था और अंत तक नहीं पहुँचा गया। |
| [MoveNext](./movenext/)() override | एन्यूमरेटर-शैली वृद्धि। |
| [Reset](./reset/)() override | तत्वों को पुनः-एन्यूमरेट करने की अनुमति देने के लिए एन्यूमरेटर को रीसेट करता है। |

## संबंधित देखें

* Class [IEnumerator](../ienumerator/)
* Namespace [System::Collections::Generic](../)
* Library [Aspose.Page for C++](../../)
