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