Question: 5) Document getElementByID (10 points) Given a tree of elements, find an element by a given ID Complete the definition of Tag* getElementByID(Tag* const root,

5) Document getElementByID (10 points) Given a tree of elements, find an element by a given ID Complete the definition of Tag* getElementByID(Tag* const root, const std::string& id) where The Tag object inside the tree with the given ID is returned. If no Tag is found with the requested ID or ID is the empty string, nullptr is returned. You may assume each ID is unique
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
