Skip to content

Implementation of bidirectional list with some unusual features

Notifications You must be signed in to change notification settings

JWZ1996/Indexed_list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Indexed_list

Implementation of bidirectional list with some unusual features

  1. Indexed access

Usual list has a O(n) access time. My remembers the last accessed element, and checks in which direction (From start, from end, from beginning) access will be optimal. Sequential access (each element from start/end), will result in O(1) access time.

  1. Iterator initialization

For easy expansibility, I provided the all types of fundamental iterators. Almost every constructor use the same template function initializing the whole container.

Iterator classes can be used for every numerical indexed containers.

  1. Modern C++ semantics

Container has the move semantics implemented. Also it is possible to move other STL containers to it. Thanks to method overloading, new list elements can be automatically copied or moved into the my container.

List can be also initialized with std::initializer_list.

About

Implementation of bidirectional list with some unusual features

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages