Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void addBackToList(std::unique_ptr<List>& list, int value)
- {
- if (list) {
- addBackToList(list->next, value);
- }
- else {
- list = std::make_unique<List>(value);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement