libzed 1.9.9
A general-purpose library for quick and simple data manipulation.
 
Loading...
Searching...
No Matches
arrayLike.hpp
1#pragma once
2
3#include "indexable.hpp"
4#include "iterable.hpp"
5
6namespace z {
7namespace core {
12template <typename T, typename ITER>
13class arrayLike : public indexable<T>, public iterable<ITER> {
14public:
19 virtual int length() const noexcept = 0;
20};
21} // namespace core
22} // namespace z
An interface for all objects that can be both iterated over and directly indexed.
Definition arrayLike.hpp:13
virtual int length() const noexcept=0
Get the length of the array.
A wrapper for std::vector.
Definition array.hpp:72
A base interface for all objects whose elements can be directly indexed.
Definition indexable.hpp:10
A base interface for all objects that can be iterated over.
Definition iterable.hpp:10