MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / Node

Method Node

Examples/NoModules/Chapter 17/Ex17_04B/Stack.h:37–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 {
36 public:
37 Node(const T& item) : m_item{ item } {} // Create a node from an object
38
39 T m_item; // The object stored in this node
40 std::unique_ptr<Node> m_next{}; // Pointer to next node

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected