Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Struct value_iterator

boost::process::v2::environment::value_iterator — The iterator used by a value or value_view to iterator through environments that are lists.

Synopsis

// In header: <boost/process/v2/environment.hpp>


struct value_iterator {
  // types
  typedef basic_string_view< char_type, value_char_traits< char_type > > string_view_type; 
  typedef int                                                            difference_type;  
  typedef string_view_type                                               reference;        
  typedef std::forward_iterator_tag                                      iterator_category;

  // construct/copy/destruct
  value_iterator() = default;
  value_iterator(const value_iterator &) = default;
  value_iterator(string_view_type, std::size_t = 0u);

  // public member functions
  value_iterator & operator++();
  value_iterator operator++(int);
  string_view_type operator *() const;
};

Description

value_iterator public construct/copy/destruct

  1. value_iterator() = default;
  2. value_iterator(const value_iterator &) = default;
  3. value_iterator(string_view_type view, std::size_t offset = 0u);

value_iterator public member functions

  1. value_iterator & operator++();
  2. value_iterator operator++(int);
  3. string_view_type operator *() const;

PrevUpHomeNext