| Home | Libraries | People | FAQ | More

## Function template search

boost::parser::search

## Synopsis

    // In header: <boost/parser/search.hpp>

    template<parsable_iter I, std::sentinel_for< I > S, typename Parser,
             typename SkipParser, typename GlobalState,
             error_handler< I, S, GlobalState > ErrorHandler>
      auto search(I first, S last,
                  parser_interface< Parser, GlobalState, ErrorHandler > const & parser,
                  parser_interface< SkipParser > const & skip,
                  trace trace_mode = trace::off);

## Description

Returns a subrange to the first match for parser `parser` in `[first, last)`, using skip-parser `skip`. This function has a similar interface and semantics to `std::ranges::search()`.