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

Functor feeding values to an output_iterator. More...

#include <Collector.h>

Public Member Functions

 Collector (TOutputIterator iter_r)
 
template<class Tp >
bool operator() (const Tp &value_r) const
 

Private Attributes

TOutputIterator _iter
 

Related Functions

(Note that these are not member functions.)

template<class TOutputIterator >
Collector< TOutputIterator > collector (TOutputIterator iter_r)
 

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() ) ) );
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.

Friends And Related Function Documentation

◆ collector()

template<class TOutputIterator >
Collector< TOutputIterator > collector ( TOutputIterator  iter_r)
related

Convenience constructor.

Definition at line 55 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: