1: // Created by Frank M. Carrano and Timothy M. Henry. 2: // Copyright (c) 2017 Pearson Education, Hoboken, New Jersey. 4: // This method's return type is the type of the object returned. 5: auto changeBoxItem(std::unique_ptr<PlainBox<std::string>> theBox, 6: std::string theItem) 7: { 8: theBox –>setItem(theItem); 9: return theBox; // theBox surrenders ownership 10: } // end changeBoxItem