diff options
| author | Mistivia <i@mistivia.com> | 2025-06-09 14:18:20 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-06-09 14:18:20 +0800 |
| commit | a690e564d82a46c4e729d88fcc660e4e2f1e6ceb (patch) | |
| tree | c40c404eb61a73168050d7b57fd5bbd5709084dd /src/basic_traits.h | |
| parent | 17690b812b7d59a7f37c858a55b25be91a02ff4c (diff) | |
add show trait
Diffstat (limited to 'src/basic_traits.h')
| -rw-r--r-- | src/basic_traits.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/basic_traits.h b/src/basic_traits.h index 700a49a..45aaba9 100644 --- a/src/basic_traits.h +++ b/src/basic_traits.h @@ -1,13 +1,16 @@ #ifndef ALGDS_BAISC_TRAITS_H_ #define ALGDS_BAISC_TRAITS_H_ +#include <stdio.h> + #include "type_alias.h" // basic traits #define BASIC_TRAITS_DEF(T) \ Bool T##_eq(T lhs, T rhs); \ Int T##_cmp(T lhs, T rhs); \ - ULong T##_hash(T x); + uint64_t T##_hash(T x); \ + void T##_show(T x, FILE* fp); \ BASIC_TRAITS_DEF(Int); BASIC_TRAITS_DEF(Bool); |
