#pragma once // Spec: Model Updates (Array.updatingVote / updatingReaction). Pure functions over comment forests. #include #include #include "model/Comment.hpp" namespace dp { class CommentTree { public: static std::vector updatingVote(const std::vector& comments, const std::string& commentId, Vote vote); static std::vector updatingReaction(const std::vector& comments, const std::string& commentId, const std::string& emoji); }; } // namespace dp