boost::process::v2::environment::key_value_pair_view — A view for a key value pair in an environment.
// In header: <boost/process/v2/environment.hpp> struct key_value_pair_view { // types typedef char_type value_type; typedef std::basic_string< char_type > string_type; typedef basic_cstring_ref< char_type > string_view_type; typedef std::char_traits< char_type > traits_type; // construct/copy/destruct key_value_pair_view(); key_value_pair_view(const key_value_pair_view &) = default; key_value_pair_view(key_value_pair_view &&); template<typename Source, typename = typename std::enable_if<is_constructible<string_view_type, Source>::value>::type> key_value_pair_view(const Source &); key_value_pair_view(const char_type *); key_value_pair_view(char_type *); key_value_pair_view & operator=(const key_value_pair_view &) = default; key_value_pair_view & operator=(key_value_pair_view &&); ~key_value_pair_view(); // public member functions void swap(key_value_pair_view &) noexcept; string_view_type native() const noexcept; operator string_view_type() const; operator typename string_view_type::string_view_type() const; int compare(key_value_pair_view) const noexcept; int compare(const string_type &) const; int compare(string_view_type) const; int compare(const value_type *) const; template<typename CharT, typename Traits = std::char_traits<CharT>, typename Alloc = std::allocator<CharT> > std::basic_string< CharT, Traits, Alloc > basic_string(const Alloc & = Alloc()) const; std::string string() const; std::wstring wstring() const; string_type native_string() const; bool empty() const; key_view key() const; value_view value() const; template<std::size_t Idx> virtual auto get() const = 0; const value_type * c_str() const noexcept; const value_type * data() const; std::size_t size() const; template<> key_view get() const; template<> value_view get() const; };
key_value_pair_view
public
construct/copy/destructkey_value_pair_view();
key_value_pair_view(const key_value_pair_view & p) = default;
key_value_pair_view(key_value_pair_view && p);
template<typename Source, typename = typename std::enable_if<is_constructible<string_view_type, Source>::value>::type> key_value_pair_view(const Source & source);
key_value_pair_view(const char_type * p);
key_value_pair_view(char_type * p);
key_value_pair_view & operator=(const key_value_pair_view & p) = default;
key_value_pair_view & operator=(key_value_pair_view && p);
~key_value_pair_view();
key_value_pair_view
public member functionsvoid swap(key_value_pair_view & other) noexcept;
string_view_type native() const noexcept;
operator string_view_type() const;
operator typename string_view_type::string_view_type() const;
int compare(key_value_pair_view p) const noexcept;
int compare(const string_type & str) const;
int compare(string_view_type str) const;
int compare(const value_type * s) const;
template<typename CharT, typename Traits = std::char_traits<CharT>, typename Alloc = std::allocator<CharT> > std::basic_string< CharT, Traits, Alloc > basic_string(const Alloc & alloc = Alloc()) const;
std::string string() const;
std::wstring wstring() const;
string_type native_string() const;
bool empty() const;
key_view key() const;
value_view value() const;
template<std::size_t Idx> virtual auto get() const = 0;
const value_type * c_str() const noexcept;
const value_type * data() const;
std::size_t size() const;
template<> key_view get() const;
template<> value_view get() const;