Klib alternatives1/20/2024 T2: Insert sequential keys, then remove them in same order: There's a balance to be had for sure, and I think the balance varies from person to person, which is why no library has emerged as the de facto standard for containers in C. I think if people are using C, it's not just the C++ language complexity they want to get away from, but also the implementation complexity of libraries and such. These sorts of simpler libraries like the one linked here definitely seem to be more popular among C programmers. The containers can handle non-bitwise-movable types with full C++-style lifecycle functions and such, and the sort algorithms can handle dynamic and non-contiguous arrays (they are powerful enough to implement qsort(), which is more than I can say for any other C sort templates I've seen.) My reasoning for the complexity at the time was that any powerful container library is going to be reasonably complex in implementation (as anyone who's looked at STL source code knows), so it just needs to be encapsulated behind a good interface. I went pretty deep into composable C templates to build mine so it's more powerful than most. I think it's common for C programmers to roll their own.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |