abstract class $CONTAINER{ETP} < $ELT{ETP},$STR
****
The basic abstract container type Does not have a create:SAME method, since this does not make sense for arrays and other indexible types, where the create should take SAME as an argument Inherits: elt!, str


Ancestors
$STR $ELT{_} $ELT

Descendants
$DISPENSER{_} $PQ{_} A_PQ{_} $RO_BAG{_}
$RO_MULTIMAP{_,_} $RO_MAP{_,_} $VMAP{_,_} VMAP{_,_}
$MAP{_,_} MAP{_,_} $VMULTIMAP{_,_} VMULTIMAP{_,_}
$RO_SET{_} $VSET{_} VSET{_} $VBAG{_}
VBAG{_} $BAG{_} BAG{_} $RO_ARR{_}
$ARR{_} FLIST{_} FSTR ARRAY{_}



Public


Features
copy: SAME;
**** Return a copy of the current container
elt!:ETP;
**** Yield all the elements of self. The order is not defined. From $ELT{ETP}
has(e: ETP): BOOL;
**** pre ~void(self) True if the container contains the element "e"
is_empty:BOOL;
**** Returns true if the size of the container = 0
size: INT;
**** Number of elements contained
str:STR;
**** Yield a string version of self From STR

The Sather Home Page