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