Post #2633021
2025-04-05 20:13 UTC
@loke@functional.cafe @mnf@mastodon.social yeah, maybe, but mostly for compatibility reasons. An STL container needs to follow quite a few conventions.
https://en.cppreference.com/w/cpp/named_req/Container
Here is the vector implementation:
https://github.com/gcc-mirror/gcc/blob/master/libstdc++-v3/include/bits/stl_vector.h
Mine wasn't nearly as complicated, but it had the most important parts
It's always fun to work on that low level. I constantly think "wow, I can understand this!?" 😅
Replies (0)
No replies.