File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -414,6 +414,12 @@ class sharing_mapt
414
414
// /
415
415
// / \param [out] view: Empty view
416
416
void get_view (viewt &view) const ;
417
+ viewt get_view () const
418
+ {
419
+ viewt result;
420
+ get_view (result);
421
+ return result;
422
+ }
417
423
418
424
// / Get a delta view of the elements in the map
419
425
// /
Original file line number Diff line number Diff line change @@ -114,6 +114,16 @@ class symbol_exprt : public nullary_exprt
114
114
}
115
115
};
116
116
117
+ namespace std {
118
+ template <> struct hash <::symbol_exprt>
119
+ {
120
+ size_t operator ()(const ::symbol_exprt& sym)
121
+ {
122
+ return irep_id_hash ()(sym.get_identifier ());
123
+ }
124
+ };
125
+ }
126
+
117
127
// / Expression to hold a symbol (variable) with extra accessors to
118
128
// / ID_c_static_lifetime and ID_C_thread_local
119
129
class decorated_symbol_exprt :public symbol_exprt
You can’t perform that action at this time.
0 commit comments