Skip to content

Instantly share code, notes, and snippets.

@GiangHoGoVap
Created October 24, 2020 16:25
Show Gist options
  • Select an option

  • Save GiangHoGoVap/d679e31fd588108d3487a6becb76e603 to your computer and use it in GitHub Desktop.

Select an option

Save GiangHoGoVap/d679e31fd588108d3487a6becb76e603 to your computer and use it in GitHub Desktop.
int main(){
FragmentLinkedList<int> List;
List.add(0);
List.add(100);
List.removeAt(0);
List.removeAt(0);
cout << List.toString() << "\n";
List.clear();
List.add(0);
List.add(100);
List.removeItem(0);
List.removeItem(100);
cout << List.toString() << "\n";
List.clear();
List.add(0);
List.add(100);
List.clear();
cout << List.toString() << "\n";
List.add(0);
List.add(100);
auto it = List.begin();
it.remove();
it++;
it.remove();
cout << List.toString() << "\n";
return 0;
}
@GiangHoGoVap

Copy link
Copy Markdown
Author

Screenshot (671)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment