Changeset 8ebbfc4


Ignore:
Timestamp:
May 29, 2018, 4:17:06 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
Children:
09800e9
Parents:
1134b80
Message:

queue_t now have a boolean operator to check if the queue is non-empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/bits/containers.h

    r1134b80 r8ebbfc4  
    183183                verify( *tail == NULL );
    184184                return val;
     185        }
     186
     187        forall(dtype T | is_node(T))
     188        static inline bool ?!=?( __queue(T) & this, zero_t zero ) with( this ) {
     189                return head != 0;
    185190        }
    186191#endif
Note: See TracChangeset for help on using the changeset viewer.