Skip Navigation

noexcept affects libstdc++’s unordered_set

quuxplusone.github.io noexcept affects libstdc++’s unordered_set

The other day I learned a new place where adding or removing noexcept can change the performance of your program: GNU libstdc++’s hash-based associative containers change the struct layout of their nodes depending on the noexceptness of your hash function. This is laid out fairly clearly in the docs...

0
0 comments