00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #ifndef _Qstl_h_
00032 #define _Qstl_h_ 1
00033
00034 #ifndef __cplusplus
00035 This header file should only ever be included by a C++ program!
00036 Better luck next time.
00037 #error 10
00038 #endif
00039
00040 #include <Q.h>
00041
00042
00043
00044
00045
00046
00047
00048 #define AO(name,container,predicate) \
00049 ({ \
00050 typedef typeof(container) _Qstl_type_; \
00051 A(_Qstl_type_::iterator name = container.begin(), \
00052 name != container.end(), \
00053 ++name, \
00054 predicate); \
00055 })
00056
00057 #define EO(name,container,predicate) \
00058 ({ \
00059 typedef typeof(container) _Qstl_type_; \
00060 E(_Qstl_type_::iterator name = container.begin(), \
00061 name != container.end(), \
00062 ++name, \
00063 predicate); \
00064 })
00065
00066 #define E1O(name,container,predicate) \
00067 ({ \
00068 typedef typeof(container) _Qstl_type_; \
00069 E1(_Qstl_type_::iterator name = container.begin(), \
00070 name != container.end(), \
00071 ++name, \
00072 predicate); \
00073 })
00074
00075 #define CO(name,container,predicate) \
00076 ({ \
00077 typedef typeof(container) _Qstl_type_; \
00078 C(_Qstl_type_::iterator name = container.begin(), \
00079 name != container.end(), \
00080 ++name, \
00081 predicate); \
00082 })
00083
00084 #define SO(name,container,exprn) \
00085 ({ \
00086 typedef typeof(container) _Qstl_type_; \
00087 S(_Qstl_type_::iterator name = container.begin(), \
00088 name != container.end(), \
00089 ++name, \
00090 exprn); \
00091 })
00092
00093 #define PO(name,container,exprn) \
00094 ({ \
00095 typedef typeof(container) _Qstl_type_; \
00096 P(_Qstl_type_::iterator name = container.begin(), \
00097 name != container.end(), \
00098 ++name, \
00099 exprn); \
00100 })
00101
00102 #endif