libzed 1.12.3
A general-purpose library for quick and simple data manipulation.
Loading...
Searching...
No Matches
iterable.hpp
1#pragma once
2
3namespace z {
4namespace core {
9template <typename ITER>
10class iterable {
11public:
20 virtual ITER begin() const noexcept = 0;
21
30 virtual ITER end() const noexcept = 0;
31};
32} // namespace core
33} // namespace z
A base interface for all objects that can be iterated over.
Definition iterable.hpp:10
virtual ITER begin() const noexcept=0
Get an iterator for the first element in this object.
virtual ITER end() const noexcept=0
Get an iterator after the last element of this object.
Section containing core functions and classes.