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

Function with_globals

include/boost/parser/parser.hpp:6090–6096  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6088 for the `parser` argument is undefined. */
6089 template<typename Parser, typename GlobalState, typename ErrorHandler>
6090 auto with_globals(
6091 parser_interface<Parser, detail::nope, ErrorHandler> const & parser,
6092 GlobalState & globals)
6093 {
6094 return parser_interface<Parser, GlobalState &, ErrorHandler>{
6095 parser.parser_, globals, parser.error_handler_};
6096 }
6097
6098 /** Returns a `parser_interface` with the same parser and globals, with
6099 `error_handler` added. The result of passing any non-top-level parser

Callers 3

parseFunction · 0.85
parseFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected