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 a snapshot of the master branch, built from commit c6a8213e9b.
PrevUpHomeNext

Struct template const_entry_type

boost::process::basic_environment::const_entry_type

Synopsis

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


template<typename Char, typename Environment> 
struct const_entry_type {
  // types
  typedef Char                             value_type;   
  typedef const value_type *               pointer;      
  typedef std::basic_string< value_type >  string_type;  
  typedef boost::iterator_range< pointer > range;        
  typedef Environment                      environment_t;

  // construct/copy/destruct
  const_entry & operator=(const const_entry &) = default;

  // public member functions
  std::vector< string_type > to_vector() const;
   const_entry(const const_entry &) = default;
  bool empty() const;
};

Description

Proxy class used for read access to members by [] or .at()

[Note] Note

Holds a reference to the environment it was created from.

const_entry_type public construct/copy/destruct

  1. const_entry & operator=(const const_entry &) = default;
    Move Constructor.

const_entry_type public member functions

  1. std::vector< string_type > to_vector() const;
    Split the entry by ";" or ":" and return it as a vector. Used by PATH.

    Get the value as string. Get the name of this entry.

  2.  const_entry(const const_entry &) = default;
    Copy Constructor.
  3. bool empty() const;
    Check if the entry is empty.

PrevUpHomeNext