Changes in libcfa/src/bits/stack.hfa [19de7864:7d4ce2a]
- File:
-
- 1 edited
-
libcfa/src/bits/stack.hfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/bits/stack.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 Stack { 7 7 inline Collection; // Plan 9 inheritance … … 44 44 T & t = head( s ); 45 45 if ( root ) { 46 root = ( T *)Next( (T *)root );46 root = ( T *)Next( root ); 47 47 if ( &head( s ) == &t ) root = 0p; // only one element ? 48 48 Next( &t ) = 0p; … … 58 58 59 59 60 forall( dtype T | { T *& Next ( T * ); }) {60 forall( dtype T ) { 61 61 struct StackIter { 62 62 inline ColIter; // Plan 9 inheritance
Note:
See TracChangeset
for help on using the changeset viewer.