Changeset 8f8f1d1e in mainline for uspace/lib/cpp/include/internal/functional/hash.hpp
- Timestamp:
- 2018-07-05T21:41:23Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f6f636f
- Parents:
- 0e5e8bf9
- git-author:
- Dzejrou <dzejrou@…> (2018-05-12 17:12:15)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/internal/functional/hash.hpp
r0e5e8bf9 r8f8f1d1e 30 30 #define LIBCPP_INTERNAL_FUNCTIONAL_HASH 31 31 32 #include <cstdlib> 33 32 34 namespace std 33 35 { 36 template<class> 37 struct is_arithmetic; 38 39 template<class> 40 struct is_pointer; 41 34 42 /** 35 43 * 20.9.13, hash function primary template: … … 64 72 size_t hash(T x) noexcept 65 73 { 66 static_assert(is_arithmetic _v<T> || is_pointer_v<T>,74 static_assert(is_arithmetic<T>::value || is_pointer<T>::value, 67 75 "invalid type passed to aux::hash"); 68 76
Note:
See TracChangeset
for help on using the changeset viewer.