Changes in libcfa/src/iterator.hfa [8a97248:fd54fef]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/iterator.hfa
r8a97248 rfd54fef 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 2 11:21:50 202313 // Update Count : 1 112 // Last Modified On : Fri Jul 7 08:37:25 2017 13 // Update Count : 10 14 14 // 15 15 … … 17 17 18 18 // An iterator can be used to traverse a data structure. 19 forall( iterator_type, elt_type ) 20 trait iterator { 19 trait iterator( iterator_type, elt_type ) { 21 20 // point to the next element 22 21 // iterator_type ?++( iterator_type & ); … … 32 31 }; 33 32 34 forall( iterator_type, collection_type, elt_type | iterator( iterator_type, elt_type ) ) 35 trait iterator_for { 33 trait iterator_for( iterator_type, collection_type, elt_type | iterator( iterator_type, elt_type ) ) { 36 34 // [ iterator_type begin, iterator_type end ] get_iterators( collection_type ); 37 35 iterator_type begin( collection_type );
Note:
See TracChangeset
for help on using the changeset viewer.