Re:Uthash – C macros for hash tables and more
by codr7 on Sunday March 27, 2022 @01:33PM
(#30822141)
Some of that is limitations in the medium, he pushed C++ pretty hard outside its comfort zone implementing the STL.
Some of it is conventions of the medium, like the iterators; it's just the C++ way.
You copy (or move, there's a need for the distinction in C++) from ranges to iterators, it's just a more flexible perspective.
C++ has a string library, you may not like it but I'm pretty sure it exists.
also he could have designed proper sets and usets. nobody really needs red-black trees when you have b- trees. likewise nobody needs linked-list usets, when you have open addressing or even swisstables.
you cannot copy from one container to another type. even the simpliest self-respecting libs support that.
you still have no string library, only memory buffers. many, many misdesigns in C++. just look at it, you'll get eyeblead