Re-did the constructors for the vector class

This commit is contained in:
Phuntsok Drak-pa
2017-10-22 01:17:55 +02:00
parent f8efc21ff6
commit 2edac15430
4 changed files with 293 additions and 210 deletions

View File

@@ -2,15 +2,17 @@
* Pundraks STL
This is my very own partial, sketchy, weird and ineffective STL implementation, mainly focused around the containers of the actual Standard Template Library. You have absolutely no other reason to look at this source code than being a student like myself seeking for hints on how to do things. Spoiler: what you will see here is probably not the right way to do it, but hey, it works!
This is my very own partial, sketchy, weird and ineffective STL implementation, mainly focused on the containers of the actual Standard Template Library. You have absolutely no other reason to look at this source code than being a student like myself seeking for hints on how to do things. Spoiler: what you will see here is probably not the right way to do it, but hey, it works!... sometimes. I also try to stay as close as possible to the C++17 standard. I might not always follow it though.
Developped under Spacemacs, compiled with Clang++, debugged with GDB and DDD, and drinking milk. Yeah, I dont like coffee. Milk though...
Developped under Spacemacs, compiled with Clang++, debugged with GDB, drinking milk. Yeah, I dont like coffee. Milk though...
Also, dont pay any attention to [[https://github.com/Phundrak/PhundrakSTL/blob/master/src/test.cc][src/test.cc]], it is just me testing my STL and fooling around with it.
* Installation
Haha, good joke.
Haha, good joke!
Seriously, if you want to use it, just download the header files, place them in your include directory in your project, and add them with ~#include "vector.hh"~ or something like that. But honestly, use it only for testing purposes, not for actual work. That would be a terrible idea.
Seriously, if you want to use it, just download the header files, place them in your include directory in your project, and add them with ~#include "vector.hh"~ or something like that. But honestly, use it only for testing purposes, or looking at how I did things, but not for actual work. That would be a terrible idea.
* Licence
@@ -19,3 +21,5 @@ See the LICENCE.md file, basically you are free to do whatever you want with my
* Bugs
Yep, there are bugs. I may or may not fix them, its up to me.
Also, Github doesnt seem to fully recognize org-modes syntax. Well...