X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gcc%2Fhash-map-traits.h;h=3b16be35f7ddec871fc88d0790a9675428817b39;hb=7ca50de02cf12c759f4f8daf60913704782b7d45;hp=4764380b364ecf7f6e431aa7def26e5d9e68248a;hpb=8982b5535c2762f566fd15e5862acf4702a78690;p=gcc.git diff --git a/gcc/hash-map-traits.h b/gcc/hash-map-traits.h index 4764380b364..3b16be35f7d 100644 --- a/gcc/hash-map-traits.h +++ b/gcc/hash-map-traits.h @@ -36,6 +36,7 @@ struct simple_hashmap_traits static inline hashval_t hash (const key_type &); static inline bool equal_keys (const key_type &, const key_type &); template static inline void remove (T &); + static const bool empty_zero_p = H::empty_zero_p; template static inline bool is_empty (const T &); template static inline bool is_deleted (const T &); template static inline void mark_empty (T &); @@ -113,6 +114,7 @@ template struct unbounded_hashmap_traits { template static inline void remove (T &); + static const bool empty_zero_p = default_hash_traits ::empty_zero_p; template static inline bool is_empty (const T &); template static inline bool is_deleted (const T &); template static inline void mark_empty (T &);