Skip to content

Build-X-From-Scratch/forward_list_sratch

Repository files navigation

Forward List(Standar Template Library)

C++ Build License

Introductions

Maybe I Not Sure for this introduction,i am not smart for write this stupid Introduction,i just focus to get best result

Requirements

  • Compiler: g++ 10+/clang++ 12+
  • OS: Linux(recomended),MacOS,Mikocok

Instalation

Clone this repo

git clone https://github.com/Build-X-From-Scratch/forward_list_sratch.git

copy header to your project,if your in directory your project

cp -r forward_list_sratch/header/forward_lists.hpp

if you not on directory project

cp -r forward_list_sratch/header/forward_lists.hpp your directory

example

#include <iostream>
#include <vector>
#include "../header/forward_list.hpp" //->this header
int main(){
    std::cout << "Testing" << std::endl;
    forward_lists<int>flst = {1,2,3};
    flst.pop_front();
    flst.pop_front();
    flst.print_all(flst.begin(),flst.end()); //3
    return 0;
}   

📌 TODO (Next Features)

Feature Status
insert_after ✅ Done
erase_after ✅ Done
push_front ✅ Todo
pop_front ✅ Todo
reverse ⬜ Todo
unique ⬜ Todo
Unit Testing ✅ Todo
Sort ⬜ Todo
Swap ⬜ Todo
emplace_back ⬜ Todo
emplace_front ⬜ Todo
Assign ⬜ Todo

License

https://github.com/Build-X-From-Scratch/forward_list_sratch/blob/main/LICENSE