Algorithms_in_C++ 1.0.0
Set of algorithms implemented in C++.
Loading...
Searching...
No Matches
ListNode Struct Reference

for IO operations More...

Collaboration diagram for ListNode:
[legend]

Public Member Functions

 ListNode ()=default
 default constructor
 
 ListNode (int x)
 constructor with value for node->val provided
 
 ListNode (int x, ListNode *next)
 constructor with values provided for node->val and node->next
 

Public Attributes

int val {0}
 the value stored in the node
 
ListNodenext {nullptr}
 pointer to the next node
 

Detailed Description

for IO operations

for assert Definition for singly-linked list.

Member Data Documentation

◆ next

ListNode* ListNode::next {nullptr}

pointer to the next node

33{nullptr}; ///< pointer to the next node

◆ val

int ListNode::val {0}

the value stored in the node

32{0}; ///< the value stored in the node

The documentation for this struct was generated from the following file: