1 #ifndef SIGNALS_OPTIONAL_LAST_VALUE_HPP
2 #define SIGNALS_OPTIONAL_LAST_VALUE_HPP
23 template <
typename InputIterator>
24 auto operator()(InputIterator first, InputIterator last)
const
28 return {std::nullopt};
30 while (first != last) {
34 return {std::move(temp)};
49 template <
typename InputIterator>
50 auto operator()(InputIterator first, InputIterator last)
const
53 while (first != last) {
61 #endif // SIGNALS_OPTIONAL_LAST_VALUE_HPP
auto operator()(InputIterator first, InputIterator last) const -> Result_type
Definition: optional_last_value.hpp:50
auto operator()(InputIterator first, InputIterator last) const -> Result_type
Definition: optional_last_value.hpp:24
Definition: connection.hpp:8
void Result_type
Type of object the iterator range points to.
Definition: optional_last_value.hpp:44
A functor class that returns the last value in an iterator range.
Definition: optional_last_value.hpp:13
std::optional< T > Result_type
Type of object the iterator range points to.
Definition: optional_last_value.hpp:16