Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template transform_replace_view

boost::parser::transform_replace_view

Synopsis

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

template< V,  F, 
         typename Parser, typename GlobalState, typename ErrorHandler, 
         typename SkipParser> 
struct transform_replace_view {
  // member classes/structs/unions
  template< Const> 
  struct iterator {
    // types
    typedef                          ;             
    typedef                          ;             
    typedef                          ;    
    typedef  ;
    typedef                          ;     

    // public member functions
    () = ;
    ();
    constexpr  iterator & ();
    constexpr   () ;
  };
  template< Const> 
  struct sentinel {
  };

  // public member functions
  () = ;
  (, 
                         parser_interface< Parser, GlobalState, ErrorHandler > const &, 
                         parser_interface< SkipParser > const &, ,  = );
  (, 
                         parser_interface< Parser, GlobalState, ErrorHandler > const &, 
                         ,  = );
  constexpr  () ;
  constexpr  ();
  constexpr const & () ;
  constexpr  auto ();
  constexpr  auto ();
  constexpr  auto () ;
  constexpr  auto () ;
};

Description

Produces a range of subranges of a given range base. Each subrange is either a subrange of base that does not match the given parser parser, or is f(*boost::parser::parse(match, parser)), where f is the given invocable and match is the matching subrange.

In addition to the template parameter constraints, F must be invocable with the attribute type of Parser; V and the range type produced by F, "`Rf`" must be ranges of char, or must have the same UTF format; and V and Rf must meet the same compatibility requirements as described in std::ranges::join_view.

transform_replace_view public member functions

  1. () = ;
  2. ( base, 
                           parser_interface< Parser, GlobalState, ErrorHandler > const & parser, 
                           parser_interface< SkipParser > const & skip,  f, 
                            trace_mode = );
  3. ( base, 
                           parser_interface< Parser, GlobalState, ErrorHandler > const & parser, 
                            f,  trace_mode = );
  4. constexpr  () ;
  5. constexpr  ();
  6. constexpr const & () ;
  7. constexpr  auto ();
  8. constexpr  auto ();
  9. constexpr  auto () ;
  10. constexpr  auto () ;

PrevUpHomeNext