Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template replace_view

boost::parser::replace_view

Synopsis

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

template< V, 
          ReplacementV, typename Parser, 
         typename GlobalState, typename ErrorHandler, typename SkipParser> 
struct replace_view {
  // member classes/structs/unions
  template< Const> 
  struct sentinel {
  };
  template< Const> 
  struct iterator {
    // types
    typedef                          ;             
    typedef                          ;             
    typedef                          ;    
    typedef  ;
    typedef                          ;     

    // public member functions
    () = ;
    ();
     ();
     () ;
  };

  // public member functions
  () = ;
  (, 
               parser_interface< , 
               parser_interface< , , 
                = );
  (, 
               parser_interface< , 
               ,  = );
   () ;
   ();
   () ;
   ();
   ();
   ();
   () ;
   () ;
};

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 the given replacement for a match, replacement.

In addition to the template parameter constraints, V and ReplacementV must be ranges of char, or must have the same UTF format, and V and ReplacementV must meet the same compatibility requirements as described in std::ranges::join_view.

replace_view public member functions

  1. () = ;
  2. ( base, 
                 parser_interface<  parser, 
                 parser_interface<  skip, 
                  replacement,  trace_mode = );
  3. ( base, 
                 parser_interface<  parser, 
                  replacement,  trace_mode = );
  4.  () ;
  5.  ();
  6.  () ;
  7.  ();
  8.  ();
  9.  ();
  10.  () ;
  11.  () ;

PrevUpHomeNext