STL Based Linked List Collection

Understand the usage of linked list collection for storing user-defined Point class objects.

We'll cover the following

Problem

Write a program using STL to maintain a linked list of Point objects.

Sample run

Here’s what you should see when you run the program.

List li: 
x, y = 1, 1
x, y = 2, 2
x, y = 3, 3
x, y = 4, 4
x, y = 5, 5

Coding solution

The following code widget has the solution for the challenge explained above.

Get hands-on with 1200+ tech skills courses.