|
sparrow 1.3.0
|
Iterator for null arrays where all elements are null. More...
#include <null_array.hpp>
Public Types | |
| using | self_type = empty_iterator<T> |
| using | base_type = iterator_base<self_type, T, std::contiguous_iterator_tag, T> |
| using | reference = typename base_type::reference |
| using | difference_type = typename base_type::difference_type |
Public Member Functions | |
| empty_iterator (difference_type index=difference_type()) noexcept | |
| Constructs an empty iterator at the specified position. | |
Friends | |
| class | iterator_access |
Iterator for null arrays where all elements are null.
This iterator provides a memory-efficient way to iterate over null arrays without storing actual data. It generates null values on-demand and maintains position information to support all iterator operations.
The iterator satisfies the contiguous iterator concept despite not pointing to actual memory, as it represents a conceptually contiguous sequence of identical null values.
| T | The value type of the iterator (typically nullable<null_type>) |
Definition at line 58 of file null_array.hpp.
| using sparrow::empty_iterator< T >::base_type = iterator_base<self_type, T, std::contiguous_iterator_tag, T> |
Definition at line 63 of file null_array.hpp.
| using sparrow::empty_iterator< T >::difference_type = typename base_type::difference_type |
Definition at line 65 of file null_array.hpp.
| using sparrow::empty_iterator< T >::reference = typename base_type::reference |
Definition at line 64 of file null_array.hpp.
| using sparrow::empty_iterator< T >::self_type = empty_iterator<T> |
Definition at line 62 of file null_array.hpp.
|
explicitnoexcept |
Constructs an empty iterator at the specified position.
| index | Position index for the iterator (defaults to 0) |
Definition at line 608 of file null_array.hpp.
|
friend |
Definition at line 148 of file null_array.hpp.