Skip to content

Instantly share code, notes, and snippets.

@danielgospodinow
Created September 22, 2019 19:59
Show Gist options
  • Save danielgospodinow/dc3c18ae82a1d6895448d76078618fc9 to your computer and use it in GitHub Desktop.
Save danielgospodinow/dc3c18ae82a1d6895448d76078618fc9 to your computer and use it in GitHub Desktop.
Linked List Node implementation
template<typename T>
struct Node {
explicit Node(T elem) {
this->elem = elem;
this->next = nullptr;
}
T elem;
Node *next;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment