Created
June 15, 2021 15:16
-
-
Save BogdanAriton/a692415e53de3347579f99eea0492756 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Node | |
{ | |
using node_ptr = std::unique_ptr<Node>; | |
Data data{}; // what we store | |
node_ptr next = nullptr; // link to the next element | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment