/
Baryshev
/
algos
Обзор
Документация
Войти
/
Baryshev
/
algos
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataStructures/include/iterator.h
34 строки
558 B
Vollane
-
15 май 2024, 08:52
15 май 2024, 08:52
ac79d0b
Код
Авторство
О чём код?
template <class T> class Iterator { private: T* current; T* previous; T* next; public: Iterator(); Iterator(T* current, T* previous, T* next); T& operator*(); T& operator++(); }; template<class T> inline Iterator<T>::Iterator() { current = nullptr; previous = nullptr; next = nullptr; } template<class T> inline Iterator<T>::Iterator(T* current, T* previous, T* next) { this->current = current; this->previous = previous; this->next = next; } template<class T> inline T& Iterator<T>::operator++() { // TODO: �������� ����� �������� return }