projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c7bab5
)
Easy: for_each_ macro to iterate container content
author
Michael Andres
<ma@suse.de>
Sat, 8 May 2010 18:57:04 +0000
(20:57 +0200)
committer
Michael Andres
<ma@suse.de>
Wed, 12 May 2010 17:05:13 +0000
(19:05 +0200)
zypp/base/Easy.h
patch
|
blob
|
history
diff --git
a/zypp/base/Easy.h
b/zypp/base/Easy.h
index
a7f1582
..
4a565ce
100644
(file)
--- a/
zypp/base/Easy.h
+++ b/
zypp/base/Easy.h
@@
-22,6
+22,7
@@
* \endcode
*/
#define for_(IT,BEG,END) for ( typeof(BEG) IT = BEG, _for_end = END; IT != _for_end; ++IT )
+#define for_each_(IT,CONT) for_( IT, CONT.begin(), CONT.end() )
/** Simple C-array iterator
* \code