Advertisement
Guest User

Untitled

a guest
Jun 14th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. LinkedList<int> list;
  2. /*for (size_t i = 0; i < 10; i++)
  3. {
  4. list.add_last(i);
  5. }
  6. show(list);
  7. list.add_after(list.begin(), 11);
  8. show(list);
  9. list.remove(list.begin());
  10. show(list);
  11.  
  12. LinkedList<int> list2{ list };
  13. std::cout << !(list2 == list) << std::endl;
  14. std::cout << (list2 == list) << std::endl;
  15.  
  16. LinkedList<int> list3{ std::move(list2) };
  17. show(list2);
  18. show(list3);
  19.  
  20. list2 = std::move(list3);
  21. show(list2);
  22. show(list3);
  23.  
  24. std::cout << *list.begin() << std::endl;
  25. std::cout << *(--list.begin()) << std::endl;*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement