Brief Overview on Linked List
This documentation is written in a way to introduce the idea of a linked list
 
Loading...
Searching...
No Matches
linked_list.cpp File Reference

Defining all the methods for the Linked_list class. More...

#include "../header_files/linked_list.hpp"
#include <stdexcept>
#include <cassert>

Functions

std::ostream & operator<< (std::ostream &out, Linked_list const &lst)
 Operator Overloading to be able to format the memebers of a linked list in a personalized view.
 

Detailed Description

Defining all the methods for the Linked_list class.

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream & out,
Linked_list const & lst )

Operator Overloading to be able to format the memebers of a linked list in a personalized view.

Parameters
outThe output data
lstThe Linked list object

Example

Linked_list lst = Linked_list( std::vector<int>( 4, 5 ) );
std::cout << lst << std::endl;
Linked List Class with Methods and Properties.
Definition linked_list.hpp:15

Output:

HEAD -> 5 -> 5 -> 5 -> 5 -> NULLPTR