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

Method insert_for_next_parse

include/boost/parser/parser.hpp:6148–6152  ·  view source on GitHub ↗

Inserts an entry consisting of a UTF-8 string `str` to match, and an associated attribute `x`, to `*this`. The entry is added for use in all subsequent top-level parses. Subsequent lookups during the current top-level parse will not necessarily match `str`. */

Source from the content-addressed store, hash-verified

6146 use in all subsequent top-level parses. Subsequent lookups during
6147 the current top-level parse will not necessarily match `str`. */
6148 void insert_for_next_parse(std::string_view str, T x)
6149 {
6150 this->parser_.initial_elements_.push_back(
6151 std::pair(std::string(str), std::move(x)));
6152 }
6153
6154 /** Erases the entry whose UTF-8 match string is `str`, from `*this`.
6155 The entry will no longer be available for use in all subsequent

Callers 2

mainFunction · 0.45
mainFunction · 0.45

Calls 1

stringFunction · 0.70

Tested by

no test coverage detected