xtd 0.2.0
Loading...
Searching...
No Matches
ienumerator.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../../interface.hpp"
6#include <iterator>
7
9namespace xtd {
11 namespace collections {
13 namespace generic {
57 template<class type_t>
59 public:
61
103 virtual auto current() const -> const type_t& = 0;
105
107
146 virtual auto move_next() -> bool = 0;
147
186 virtual auto reset() -> void = 0;
188 };
189 }
190 }
191}
Supports a simple iteration over a generic collection.
Definition ienumerator.hpp:58
virtual auto current() const -> const type_t &=0
Gets the element in the collection at the current position of the enumerator.
#define interface_
This keyword is use to represent an interface.
Definition interface.hpp:58
Contains xtd::interface interface.
The xtd::collections::generic namespace contains interfaces and classes that define generic collectio...
Definition comparer.hpp:16
The xtd::collections namespace contains interfaces and classes that define various collections of obj...
Definition any_pair.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8