libzed 1.9.9
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:
13 virtual ~iterable() noexcept {}
14
23 virtual ITER begin() const noexcept = 0;
24
34};
35} // namespace core
36} // namespace z
A wrapper for std::vector.
Definition array.hpp:72
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.
virtual ~iterable() noexcept
Virtual destructor.
Definition iterable.hpp:13