File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 1414
1515// / \brief A symbol table that records which entries have been updated/removed
1616// / \ingroup gr_symbol_table
17+ // / A caller can pass a `recording_symbol_tablet` into a callee that is
18+ // / expected to mutate it somehow, then after it has run inspect the recording
19+ // / table's journal to determine what has changed more cheaply than examining
20+ // / every symbol.
21+ // /
22+ // / Example of usage:
23+ // / ```
24+ // / concrete_symbol_tablet actual_table;
25+ // / init_table(actual_table);
26+ // /
27+ // / recording_symbol_tablet journal(actual_table); // Wraps actual_table
28+ // / alter_table(journal);
29+
30+ // / for(const auto &added : journal.added())
31+ // / {
32+ // / printf("%s was added\n", added.name);
33+ // / }
1734class recording_symbol_tablet :public symbol_tablet
1835{
1936public:
You can’t perform that action at this time.
0 commit comments