[libc++][NFC] Reorganize hash.h
authorLouis Dionne <ldionne.2@gmail.com>
Thu, 9 Feb 2023 18:52:20 +0000 (10:52 -0800)
committerLouis Dionne <ldionne.2@gmail.com>
Fri, 10 Feb 2023 17:47:10 +0000 (09:47 -0800)
commit91e38bc7601056d2b7e3ba80a935f6b9999dd78f
tree5a877cb72629cb5bb70a8fe53fc0c609d6a2f2b2
parentb296ddd91cb8e7676b3c38ca7f6d7bdbd84eb4af
[libc++][NFC] Reorganize hash.h

- Add missing _LIBCPP_HIDE_FROM_ABI
- Implement inline functions in the class to simplify the code
- Add missing `const` to `operator()`
- Move _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK to the usual location for function attributes

Differential Revision: https://reviews.llvm.org/D143668
libcxx/include/__functional/hash.h