Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class optional_last_value<>

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

Synopsis

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


class optional_last_value<> {
public:
  // types
  typedef  ;

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

Description

This specialization of signals2::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. This specialization instead sets the result_type to be void.

optional_last_value invocation

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

    Effects:

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


PrevUpHomeNext