6#include "../../ptr.hpp"
11 namespace collections {
30 template<
typename type_t>
55 const type_t&
current()
const override {
return enumerator_->current();}
64 bool move_next()
override {
return enumerator_->move_next();}
69 void reset()
override {enumerator_->reset();}
Supports a simple iteration over a generic collection.
Definition enumerator.hpp:31
const type_t & current() const override
Gets the element in the collection at the current position of the enumerator.
Definition enumerator.hpp:55
enumerator(ptr< ienumerator< type_t > > enumerator)
Initializes a new instance of the xtd::collections::generic::enumerator <type_t> class with specified...
Definition enumerator.hpp:40
enumerator()=default
Initializes a new instance of the xtd::collections::generic::enumerator <type_t> class.
bool move_next() override
Advances the enumerator to the next element of the collection.
Definition enumerator.hpp:64
void reset() override
Sets the enumerator to its initial position, which is before the first element in the collection.
Definition enumerator.hpp:69
Supports a simple iteration over a generic collection.
Definition ienumerator.hpp:58
xtd::sptr< type_t > ptr
The xtd::ptr object is a shared pointer.
Definition ptr.hpp:27
Contains xtd::collections::ienumerator alias.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10