Changes in libcfa/src/bits/queue.hfa [19de7864:7d4ce2a]
- File:
-
- 1 edited
-
libcfa/src/bits/queue.hfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/bits/queue.hfa
r19de7864 r7d4ce2a 3 3 #include "bits/collection.hfa" 4 4 5 forall( dtype T | { T *& Next ( T * ); }) {5 forall( dtype T ) { 6 6 struct Queue { 7 7 inline Collection; // Plan 9 inheritance … … 64 64 T & t = head( q ); 65 65 if ( root ) { 66 root = Next( (T *)root );66 root = Next( root ); 67 67 if ( &head( q ) == &t ) { 68 68 root = last = 0p; // only one element … … 142 142 } // distribution 143 143 144 forall( dtype T | { T *& Next ( T * ); }) {144 forall( dtype T ) { 145 145 struct QueueIter { 146 146 inline ColIter; // Plan 9 inheritance
Note:
See TracChangeset
for help on using the changeset viewer.