Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template search

boost::parser::search

Synopsis

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


template<parsable_range R, typename Parser, typename GlobalState, 
         typename ErrorHandler> 
  auto search(R && r, 
              parser_interface< Parser, GlobalState, ErrorHandler > const & parser, 
              trace trace_mode = trace::off);

Description

Returns a subrange to the first match for parser parser in r. This function has a similar interface and semantics to std::ranges::search(). Returns std::ranges::dangling in C++20 and later if r is a non-borrowable rvalue.


PrevUpHomeNext