Advertisement
Guest User

Zad2

a guest
Jan 23rd, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. void addBackToList(std::unique_ptr<List>& list, int value)
  2. {
  3. if (list) {
  4. addBackToList(list->next, value);
  5. }
  6. else {
  7. list = std::make_unique<List>(value);
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement