Represents the iterator of enumarable value type.
Static Public Member Functions | |
static iterator | begin (const enumerable_t *enumerable) |
Create begin xtd::collections::generic::iterator with specified enumerator. | |
static iterator | end (const enumerable_t *enumerable) |
Create end xtd::collections::generic::iterator with specified enumerator. | |
Public Aliases | |
using | iterator_category = std::forward_iterator_tag |
Represents the iterator category type. | |
using | value_type = type_t |
Represents the value type. | |
using | difference_type = xtd::ptrdiff |
Represents the value type. | |
using | pointer = value_type * |
Represents the pointer of the value type. | |
using | const_pointer = const value_type * |
Represents the const pointer of the value type. | |
using | reference = value_type & |
Represents the reference of the value type. | |
using | const_reference = const value_type & |
Represents the const reference of the value type. | |
Public Constructors | |
iterator ()=default | |
Initializes a new instance of the xtd::collections::generic::iterator class. | |
Public Operators | |
const_reference | operator* () const |
Returns reference to the current element, or a proxy holding it. | |
reference | operator* () |
Returns reference to the current element, or a proxy holding it. | |
const_pointer | operator-> () const |
Returns pointer to the current element, or a proxy holding it. | |
pointer | operator-> () |
Returns pointer to the current element, or a proxy holding it. | |
iterator & | operator++ () noexcept |
Pre increments the underlying iterator. | |
iterator | operator++ (int) noexcept |
Post increments the underlying iterator. | |
template<typename value_t > | |
iterator | operator+ (value_t value) const noexcept |
Add operator with specified value. | |
difference_type | operator- (iterator value) const noexcept |
Subtract The specified iterator from the current iterator. | |
using xtd::collections::generic::enumerable_iterators< type_t, enumerable_t >::iterator::iterator_category = std::forward_iterator_tag |
Represents the iterator category type.
using xtd::collections::generic::enumerable_iterators< type_t, enumerable_t >::iterator::value_type = type_t |
Represents the value type.
using xtd::collections::generic::enumerable_iterators< type_t, enumerable_t >::iterator::difference_type = xtd::ptrdiff |
Represents the value type.
using xtd::collections::generic::enumerable_iterators< type_t, enumerable_t >::iterator::pointer = value_type* |
Represents the pointer of the value type.
using xtd::collections::generic::enumerable_iterators< type_t, enumerable_t >::iterator::const_pointer = const value_type* |
Represents the const pointer of the value type.
using xtd::collections::generic::enumerable_iterators< type_t, enumerable_t >::iterator::reference = value_type& |
Represents the reference of the value type.
using xtd::collections::generic::enumerable_iterators< type_t, enumerable_t >::iterator::const_reference = const value_type& |
Represents the const reference of the value type.
|
default |
Initializes a new instance of the xtd::collections::generic::iterator class.
|
inlinestatic |
Create begin xtd::collections::generic::iterator with specified enumerator.
enumerator | The enumerator to iterate with. |
|
inlinestatic |
Create end xtd::collections::generic::iterator with specified enumerator.
enumerator | The enumerator to iterate with. |
|
inline |
Returns reference to the current element, or a proxy holding it.
|
inline |
Returns reference to the current element, or a proxy holding it.
|
inline |
Returns pointer to the current element, or a proxy holding it.
|
inline |
Returns pointer to the current element, or a proxy holding it.
|
inlinenoexcept |
Pre increments the underlying iterator.
|
inlinenoexcept |
Post increments the underlying iterator.
|
inlinenoexcept |
Add operator with specified value.
value | The number to add to the underlying iterator. |
|
inlinenoexcept |
Subtract The specified iterator from the current iterator.
value | The iterator to subtract from the current iterator. |