File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,16 @@ void symbol_table_baset::show(std::ostream &out) const
60
60
out << symbols.at (name);
61
61
}
62
62
63
+ symbol_table_baset::const_iteratort symbol_table_baset::end () const
64
+ {
65
+ return symbols.end ();
66
+ }
67
+
68
+ symbol_table_baset::const_iteratort symbol_table_baset::begin () const
69
+ {
70
+ return symbols.begin ();
71
+ }
72
+
63
73
// / Print the contents of the symbol table.
64
74
// / \param out: The ostream to direct output to
65
75
// / \param symbol_table: The symbol table to print out
Original file line number Diff line number Diff line change @@ -234,6 +234,11 @@ class symbol_table_baset
234
234
235
235
virtual iteratort begin () = 0;
236
236
virtual iteratort end () = 0;
237
+
238
+ using const_iteratort = symbolst::const_iterator;
239
+
240
+ const_iteratort begin () const ;
241
+ const_iteratort end () const ;
237
242
};
238
243
239
244
std::ostream &
You can’t perform that action at this time.
0 commit comments