4 ms·
Obligatory Sean Barrett reference: http://nothings.org/stb/stretchy_buffer.txt http://nothings.org/stb/stretchy_buffer.txt - (though, see the warning on http://
by beagle3 13y ago
Obligatory Sean Barrett reference: http://nothings.org/stb/stretchy_buffer.txt http://nothings.org/stb/stretchy_buffer.txt - (though, see the warning on http://nothings.org/ http://nothings.org/ about strict aliasing optimizations)
- norswap 13y agoWhy does this code have to be so ugly :'( I'm sure it's useful, but I could never bring myself to use "that".
- beagle3 13y agoHave you ever looked at the STL internal implementation of <vector>? Different strokes for different folks, but ... I think stb arrays are beautiful in comparison.
- nly 13y agoMost of the ugliness in stdlibc++ comes from the ugly ass naming conventions that are (or were) inherited to prevent conflicts. The quality of implementation in the STL is fairly high, if a bit old.