libzypp: zypp::functor::Collector< TOutputIterator > Struct Template Reference

libzypp 17.38.6

zypp::functor::Collector< TOutputIterator > Struct Template Reference

Functor feeding values to an output_iterator. More...

`#include <zypp/base/Collector.h>`

## Public Member Functions
| Collector (TOutputIterator iter_r)
template<class Tp>
bool | operator() (const Tp &value_r) const

## Private Attributes
TOutputIterator | _iter

## Detailed Description

template<class TOutputIterator>
struct zypp::functor::Collector< TOutputIterator >

Functor feeding values to an output_iterator.

LocaleSet locales;
for_each( begin(), end(),
collector( std::inserter( locales_r, locales_r.begin() ) ) );
zypp::functor::collector
Collector< TOutputIterator > collector(TOutputIterator iter_r)
relates: Collector Convenience constructor.
Definition Collector.h:55
zypp::LocaleSet
std::unordered_set< Locale > LocaleSet
Definition Locale.h:29

See also
  Convenience constructor collector.

Definition at line 37 of file Collector.h.

## Constructor & Destructor Documentation

## ◆ Collector()

template<class TOutputIterator>

zypp::functor::Collector< TOutputIterator >::Collector | ( | TOutputIterator | iter_r | ) |
| inline

Definition at line 39 of file Collector.h.

## Member Function Documentation

## ◆ operator()()

template<class TOutputIterator>
template<class Tp>

bool zypp::functor::Collector< TOutputIterator >::operator() | ( | const Tp & | value_r | ) | const
| inline

Definition at line 42 of file Collector.h.

## Member Data Documentation

## ◆ _iter

template<class TOutputIterator>

TOutputIterator zypp::functor::Collector< TOutputIterator >::_iter
| mutableprivate

Definition at line 49 of file Collector.h.

The documentation for this struct was generated from the following file:

- zypp/base/Collector.h