Skip to content

Instantly share code, notes, and snippets.

@dcchambers
Created July 18, 2017 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcchambers/7fc9f1c4184cb9861f793b2d1fc1431f to your computer and use it in GitHub Desktop.
Save dcchambers/7fc9f1c4184cb9861f793b2d1fc1431f to your computer and use it in GitHub Desktop.
Simple C++ List
#include <iostream>
#include <list>
using namespace std;
int main() {
list<int> test_list = {1, 2, 3, 4};
for (int n : test_list) {
std::cout << n << '\n';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment