This is where I store my C++ implementations of data structures and solutions to some algorithmic problems. Hopefully I'll get all of this right. 😳 😳 😳
- My aim is to code as generic as possible, so I'll utilize template and SFINAE in this. I'm pretty much interested in this so-called metaprogramming thing 😝 It often goes like "woaahhh!? Did I just write those awfully beautiful SFINAE???" 🤭
- I'll try to provide as much information as possible in a README file for each implementation here. It's a way that I revise things and might turn out useful in the future!? 🧐
- The code is intended to be as generic as possible, that is they can be used with all possible data types (except in some cases that my current knowledge doesn't allow me to).
- The code must be compatible the STL, that is you can call
sort
from<algorithm>
on my data structures that support random access, or you can call my sorting algorithms on the standardvector
orarray
class.
- Always include self-written libraries first before any other standard libraries.
- Consider adding constant version of any methods you're writing if it's possible. See my notes at Direct-addressing table - No Null Marking.
- My project organization and documentation skills are bad lol.
- I've just read about
placement new
that allows to me to decouple object storage and object lifetime - with this, I can extend myDynamicTable
class to supportNonTriviallyCopyableType
too! Before I could do that, I may prepare myself by digging into more stuffs about lower-level features of C++. I hope I wouldn't cause chaos and gain some experience in low-level management myself!!