You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
379 B
C++
15 lines
379 B
C++
#pragma once
|
|
|
|
/// \brief Интерфейс для классов-итераторов.
|
|
/// \tparam T Тип итерируемого элемента.
|
|
template <typename T>
|
|
class IIterator {
|
|
public:
|
|
virtual T* operator->() const = 0;
|
|
virtual operator const T*() const = 0;
|
|
|
|
virtual bool operator!=(const IIterator& other) const = 0;
|
|
|
|
virtual IIterator& operator++() = 0;
|
|
};
|