Changeset e91a255


Ignore:
Timestamp:
Dec 5, 2020, 8:54:29 AM (3 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
58870e6b, f57faf6f
Parents:
ec5d599
Message:

fix code placement error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/bits/sequence.hfa

    rec5d599 re91a255  
    3131                        return (T *)Back( (Seqable *)&n );
    3232                }
    33 
    34                 T & head( Sequence(T) & s ) with( s ) {
    35                         return *(T *)head( (Collection &)s );
    36                 } // post: empty() & head() == 0 | !empty() & head() in *s
    3733        } // distribution
    3834} // distribution
     
    4440
    4541        inline {
     42                // wrappers to make Collection have T
     43                T & head( Sequence(T) & s ) with( s ) {
     44                        return *(T *)head( (Collection &)s );
     45                } // post: empty() & head() == 0 | !empty() & head() in *s
     46
    4647                void ?{}( Sequence(T) &, const Sequence(T) & ) = void; // no copy
    4748                Sequence(T) & ?=?( const Sequence(T) & ) = void; // no assignment
Note: See TracChangeset for help on using the changeset viewer.