Skip to content
/ hList Public

hList is useful linked list c++ library created by HUME.

Notifications You must be signed in to change notification settings

nar789/hList

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

HList

THIS IS CUSTOMED LINKED LIST CONTAINER LIBRARY FOR HUME SYSTEM

USAGE

1. Insert data

source

hList list;
D data(1,1);
list+data+data+data+D(3,3);
cout<<list<<endl;

output

[1,1] [1,1] [1,1] [3,3]

2. Remove Data

1) FIFO

source

cout<<list<<endl;
list--;
cout<<list<<endl;

output

[1,1] [2,2] [3,3] [4,4]
[1,1] [2,2] [3,3] 

2) LIFO

source

cout<<list<<endl;
--list;
cout<<list<<endl;

output

[1,1] [2,2] [3,3] [4,4]
[2,2] [3,3] [4,4]

3. For each

source

hList list;
list+D(1,1)+D(2,2)+D(3,3)+D(4,4);
for(E itr : list){
	cout<<itr;
}

output

[1,1] [2,2] [3,3] [4,4]

4. At, Size, Clear

source

hList list;
list+D(1,1)+D(2,2)+D(3,3)+D(4,4);
cout<<list.Size();
cout<<list[3];
list.Clear();
cout<<list.Size();

output

4
[4,4]
0

About

hList is useful linked list c++ library created by HUME.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages