Class template last_value
boost::last_value — Evaluate an InputIterator sequence and return the
last value in the sequence.
Synopsis
template<typename T>
class last_value {
public:
typedef T result_type;
template<typename InputIterator>
result_type operator()(InputIterator, InputIterator) const;
};
Description
last_value invocation
- <
template<typenameInputIterator>
result_typeoperator()(InputIteratorfirst,InputIteratorlast)const;
>Требуется:
<first != last>
|
Эффекты: | Отклоняет каждый итератор в последовательности<[first, last)>. |
Возвращение: | <last-1> |