Ignore:
Timestamp:
Mar 29, 2026, 11:03:25 PM (3 days ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Parents:
81ab5eb
Message:

3rd attempt at harmonizing isOp functions, e.g., isListed, isFirst, isLast

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/collections/list2.hfa

    r81ab5eb re6e250d  
    1919// Created On       : Wed Apr 22 18:00:00 2020
    2020// Last Modified By : Peter A. Buhr
    21 // Last Modified On : Sun Mar 29 21:47:53 2026
    22 // Update Count     : 12
     21// Last Modified On : Sun Mar 29 22:59:31 2026
     22// Update Count     : 15
    2323//
    2424
     
    454454        }
    455455
    456         static inline bool isEmpty( dlist(tE, tLinks) & list ) __attribute__ ((deprecated));
    457         static inline bool isEmpty( dlist(tE, tLinks) & list ) {
    458                 return empty( list );
    459         }
    460 
    461         static inline bool isListed( tE & e ) {
     456        static inline bool listed( tE & e ) {
    462457          NOLOOSE(
    463458                verify (&e != 0p);
     
    469464          )
    470465          LOOSEONLY(
    471                 verify(false && "isListed is undefined");
     466                verify(false && "listed is undefined");
    472467                return true;
    473468          )
     
    516511        }
    517512
    518         bool isFirst( tE & node ) {
     513        bool first( tE & node ) {
    519514                // Probable bug copied from master
    520515                // should be `! recede(node)`
     
    524519        }
    525520
    526         bool isLast( tE & node ) {
     521        bool last( tE & node ) {
    527522                // ditto, vice versa
    528523                return advance( node );
Note: See TracChangeset for help on using the changeset viewer.