libzypp 17.31.23
PoolQueryResult.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#include <iostream>
13#include <zypp/base/LogTools.h>
14
16
17using std::endl;
18
20namespace zypp
21{
22
23 /******************************************************************
24 **
25 ** FUNCTION NAME : operator<<
26 ** FUNCTION TYPE : std::ostream &
27 */
28 std::ostream & operator<<( std::ostream & str, const PoolQueryResult & obj )
29 {
30 return dumpRange( str, obj.begin(), obj.end() );
31 }
32
34} // namespace zypp
Helper class to collect (not only) PoolQuery results.
const_iterator end() const
const_iterator begin() const
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2
std::ostream & dumpRange(std::ostream &str, TIterator begin, TIterator end, const std::string &intro="{", const std::string &pfx="\n ", const std::string &sep="\n ", const std::string &sfx="\n", const std::string &extro="}")
Print range defined by iterators (multiline style).
Definition: LogTools.h:92
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
Definition: SerialNumber.cc:52