Post #2633020
2025-04-05 13:00 UTC
@mre@mastodon.social @mnf@mastodon.social I mean, if I understand the task correctly, your answer would be the only fully correct one (by industry C++ standards). Because otherwise you're going to have to argue with C++ fanboys about completely irrelevant performance issues. ๐
Replies (1)
-
@mre@mastodon.social 2025-04-05 20:13
@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!?" ๐