Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template search

boost::parser::search

Synopsis

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


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

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