container_hash icon indicating copy to clipboard operation
container_hash copied to clipboard

Generic hash function for STL style unordered containers

Results 7 container_hash issues
Sort by recently updated
recently updated
newest added

We need to keep with the times https://godbolt.org/z/1andznGhq

We are noticing regression with `boost::hash` when used with `std::u16string` in boost 1.81.0 version and compared to 1.78.0. As per the 1.81.0 documentation, it seems there are major changes in...

Consider https://godbolt.org/z/5W1x94aTh We see that: ```cpp static_assert(std::is_invocable_v); ``` correctly fails until ```cpp template struct std::hash { std::size_t operator()(rawr const&) const noexcept { return 0; } }; ``` is defined. This...

In [yuzu](https://github.com/yuzu-emu/yuzu), we are using `boost::hash_value` to compute the hash of a macro program (represented by a `std::vector`): https://github.com/yuzu-emu/yuzu/blob/09da9da6fb4428e8f305e967c9102dcf4030c5e9/src/video_core/macro/macro.cpp#L90-L108 These values, in turn, are used to determine the macro programs...

boost::hash_combine is very useful, however, it does require to implement a hash function twice in order to be used. `std::hash` and `boost::hash_value`. On stackoverflow, several 'workarounds' exist for making this...

Since most part of internal calculations are based on integer arithmetic and bitwise operations, I believe those three functions and all their variants can be marked `constexpr` today. Can someone...

This is part of the effort to make the Boost libraries "modular" for build and consumption. See https://lists.boost.org/Archives/boost/2024/01/255704.php and https://github.com/grafikrobot/boost-b2-modular/blob/b2-modular/README.adoc for more information. This PR depends on the following other...