#pragma once #include #include /** * A simple list with additional stat data, such as the date of the latest modification * @tparam T the type of elements in the list */ template class StatList : public std::list { public: StatList(); void push_back(const T& value); void pop_back(); [[nodiscard]] std::chrono::time_point getModificationTime() const; private: void updateModificationTime(); std::chrono::time_point modificationTime; };