I'm new to learning C++ and wanted some clarification on what typedef
is doing in the block of code below.
typedef struct strNode Node;
struct strNode
{
int number;
int weight;
list<Node> edges;
};
I understand that struct strNode
is creating a new datatype but what is typedef struct strNode Node
doing exactly?