STD::__IS_FAST_HASH(3cxx)
β¨ NAME β¨
std::__is_fast_hash< _Hash > β bestie, welcome to the 3cxx manual page for this libstdc++ trait π
π¦ SYNOPSIS π¦
#include <functional>
It inherits std::true_type. Periodt π
π Detailed Description π
template<typename _Hash>
struct std::__is_fast_hash< _Hash >
Okay so this whole thing is a hint about performance of hash functions πΈ
If a given hash function object is not fast, the hash-based containers will cache the hash code. The default behavior is to consider that hashers are fast unless specified otherwise. No cap β¨
Users can specialize this for their own hash functions in order to force caching of hash codes in unordered containers. Thatβs the main-character move if you need it π
β οΈ Specializing this trait affects the ABI of the unordered containers, so use it carefully. For real, be careful with this one π«Ά
πΈ Author πΈ
Generated automatically by Doxygen for libstdc++ from the source code. The robots wrote this one, and they ate π€β¨
mwah π β source/version: libstdc++; date: not listed in the footer, so Iβm not inventing one, bestie ππ
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms