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 an old version of boost. Click here for the latest version's documentation home page.
PrevUpHomeNext

Class optional_last_value<void>

boost::signals2::optional_last_value<void> — Evaluate an InputIterator sequence.

Synopsis

// In header: <boost/signals2/optional_last_value.hpp>


class optional_last_value<void> {
public:
  // types
  typedef unspecified result_type;

  // invocation
  template<typename InputIterator> 
    result_type operator()(InputIterator, InputIterator) const;
};

Description

This specialization of optional_last_value is provided to cope with the fact that there is no such thing as an optional<void>, which optional_last_value would otherwise try to use as its result_type. Therefore, this specialization leaves the result_type unspecified.

optional_last_value invocation

  1. template<typename InputIterator> 
      result_type operator()(InputIterator first, InputIterator last) const;

    Effects:

    Attempts to dereference every iterator in the sequence [first, last).


PrevUpHomeNext