Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template split_view

boost::parser::split_view

Synopsis

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

template<std::ranges::viewable_range V, typename Parser, typename GlobalState, 
         typename ErrorHandler, typename SkipParser> 
struct split_view {
  // member classes/structs/unions
  template<bool Const> 
  struct iterator {
    // types
    typedef unspecified I;        
    typedef unspecified S;        
    typedef unspecified base_type;

    // public member functions
    iterator() = default;
    iterator(unspecified);
    constexpr iterator & operator++();
    constexpr BOOST_PARSER_SUBRANGE< I > operator*() const;
  };
  template<bool Const> 
  struct sentinel {
  };

  // public member functions
  split_view() = default;
  split_view(V, parser_interface< Parser, GlobalState, ErrorHandler > const &, 
             parser_interface< SkipParser > const &, trace = trace::off);
  split_view(V, parser_interface< Parser, GlobalState, ErrorHandler > const &, 
             trace = trace::off);
  constexpr V base() const;
  constexpr V base();
  constexpr auto begin();
  constexpr auto end();
  constexpr auto begin() const;
  constexpr auto end() const;
};

Description

Produces a sequence of subranges of the underlying sequence of type V. the underlying sequence is split into subranges delimited by matches of the given parser, possibly using a given skip-parser.

split_view public member functions

  1. split_view() = default;
  2. split_view(V base, 
               parser_interface< Parser, GlobalState, ErrorHandler > const & parser, 
               parser_interface< SkipParser > const & skip, 
               trace trace_mode = trace::off);
  3. split_view(V base, 
               parser_interface< Parser, GlobalState, ErrorHandler > const & parser, 
               trace trace_mode = trace::off);
  4. constexpr V base() const;
  5. constexpr V base();
  6. constexpr auto begin();
  7. constexpr auto end();
  8. constexpr auto begin() const;
  9. constexpr auto end() const;

PrevUpHomeNext