libzypp  17.23.0
Functors for building compex queries.

Some logical functors to build more complex queries:

As it's no fun to get and write the correct template arguments, convenience functions creating the correct functor are provided.

struct Print; // functor printing elements
struct Count; // functor counting number of elements
std::for_each( c.begin(), c.end(),
chain( Print(), Count() ) );
zypp::functor::chain
Chain< TACondition, TBCondition > chain(TACondition conda_r, TBCondition condb_r)
Convenience function for creating a Chain from two conditions conda_r and condb_r.
Definition: Functional.h:346