Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LinkedList<int> list;
- /*for (size_t i = 0; i < 10; i++)
- {
- list.add_last(i);
- }
- show(list);
- list.add_after(list.begin(), 11);
- show(list);
- list.remove(list.begin());
- show(list);
- LinkedList<int> list2{ list };
- std::cout << !(list2 == list) << std::endl;
- std::cout << (list2 == list) << std::endl;
- LinkedList<int> list3{ std::move(list2) };
- show(list2);
- show(list3);
- list2 = std::move(list3);
- show(list2);
- show(list3);
- std::cout << *list.begin() << std::endl;
- std::cout << *(--list.begin()) << std::endl;*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement