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.h:31
const type_t & current() const override
Gets the element in the collection at the current position of the enumerator.
Definition enumerator.h:55
enumerator(ptr< ienumerator< type_t > > enumerator)
Initializes a new instance of the xtd::collections::generic::enumerator <type_t> class with specified...
Definition enumerator.h: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.h:64
void reset() override
Sets the enumerator to its initial position, which is before the first element in the collection.
Definition enumerator.h:69
Supports a simple iteration over a generic collection.
Definition ienumerator.h:58
xtd::sptr< type_t > ptr
The xtd::ptr object is a shared pointer.
Definition ptr.h:27
Contains xtd::collections::ienumerator alias.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10