src/cx/iterator.h

changeset 1193
cfa44f3f5e3b
parent 1192
1f69336faa63
equal deleted inserted replaced
1192:1f69336faa63 1193:cfa44f3f5e3b
145 typedef struct cx_iterator_s CxIterator; 145 typedef struct cx_iterator_s CxIterator;
146 146
147 /** 147 /**
148 * Checks if the iterator points to valid data. 148 * Checks if the iterator points to valid data.
149 * 149 *
150 * This is especially false for past-the-end iterators.
151 *
152 * @param iter the iterator 150 * @param iter the iterator
153 * @retval true if the iterator points to valid data 151 * @retval true if the iterator points to valid data
154 * @retval false if the iterator already moved past the end 152 * @retval false if the iterator already moved past the end
155 */ 153 */
156 #define cxIteratorValid(iter) (iter).base.valid(&(iter)) 154 #define cxIteratorValid(iter) (iter).base.valid(&(iter))

mercurial