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 template proxy_arrow_result

boost::stl_interfaces::proxy_arrow_result

Synopsis

// In header: <boost/stl_interfaces/iterator_interface.hpp>

template<typename T> 
struct proxy_arrow_result {
  // construct/copy/destruct
  proxy_arrow_result(T const &) noexcept(noexcept(T(value))));
  proxy_arrow_result(T &&) noexcept(noexcept(T(std::move(value)))));

  // public member functions
  constexpr T const  * operator->() const noexcept;
  constexpr T * operator->() noexcept;
};

Description

The return type of operator->() in a proxy iterator.

This template is used as the default Pointer template parameter in the proxy_iterator_interface template alias. Note that the use of this template implies a copy or move of the underlying object of type T.

proxy_arrow_result public construct/copy/destruct

  1. proxy_arrow_result(T const & value) noexcept(noexcept(T(value))));
  2. proxy_arrow_result(T && value) noexcept(noexcept(T(std::move(value)))));

proxy_arrow_result public member functions

  1. constexpr T const  * operator->() const noexcept;
  2. constexpr T * operator->() noexcept;

PrevUpHomeNext