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

Method call

include/boost/parser/parser.hpp:8669–8691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8667 typename Context,
8668 typename SkipParser>
8669 auto call(
8670 Iter & first,
8671 Sentinel last,
8672 Context const & context,
8673 SkipParser const & skip,
8674 detail::flags flags,
8675 bool & success) const
8676 {
8677 BOOST_PARSER_ASSERT(
8678 (!detail::is_nope_v<OrParser> &&
8679 "It looks like you tried to write switch_(val). You need at "
8680 "least one alternative, like: switch_(val)(value_1, "
8681 "parser_1)(value_2, parser_2)..."));
8682 using attr_t = decltype(or_parser_.call(
8683 first, last, context, skip, flags, success));
8684 attr_t attr{};
8685#if BOOST_PARSER_DO_TRACE
8686 [[maybe_unused]] auto _ =
8687 detail::scoped_trace(*this, first, last, context, flags, attr);
8688#endif
8689 attr = or_parser_.call(first, last, context, skip, flags, success);
8690 return attr;
8691 }
8692
8693 template<
8694 typename Iter,

Callers

nothing calls this directly

Calls 2

scoped_traceFunction · 0.85
callMethod · 0.45

Tested by

no test coverage detected