MCPcopy Create free account
hub / github.com/boostorg/parser / erase_for_next_parse

Method erase_for_next_parse

include/boost/parser/parser.hpp:5314–5322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5312 matched in the current top-level parse. */
5313 template<typename Context>
5314 void erase_for_next_parse(Context const & context, std::string_view str)
5315 {
5316 auto & pending_ops =
5317 detail::get_pending_symtab_ops(context, ref());
5318 pending_ops.push_back(detail::symbol_table_operation<T>{
5319 std::string(str),
5320 std::nullopt,
5321 detail::symbol_table_op::erase});
5322 }
5323
5324 /** Erases all the entries from the copy of the symbol table inside
5325 the parse context `context`. */

Callers

nothing calls this directly

Calls 2

get_pending_symtab_opsFunction · 0.85
stringFunction · 0.70

Tested by

no test coverage detected