Easy.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00012 #ifndef ZYPP_BASE_EASY_H
00013 #define ZYPP_BASE_EASY_H
00014
00024 #define for_(IT,BEG,END) for ( typeof(BEG) IT = BEG, _for_end = END; IT != _for_end; ++IT )
00025 #define for_each_(IT,CONT) for_( IT, CONT.begin(), CONT.end() )
00026
00034 #define arrayBegin(A) (&A[0])
00035 #define arraySize(A) (sizeof(A)/sizeof(*A))
00036 #define arrayEnd(A) (&A[0] + arraySize(A))
00037
00039 namespace zypp
00040 {
00041
00042 }
00044 #endif // ZYPP_BASE_EASY_H