#include </home/casse/Dev/elm/src/concepts.h>
template<class T>
class elm::concept::Collection< T >
This concepts provides methods to handle collection. A collection is an unordered list of items.
- Parameters
-
T | Type of items stored in the collection. |
- Implemented by:
-
◆ self_t
Type of values in the collection.
◆ begin()
Get an iterator on the collection.
- Returns
- Iterator.
◆ contains()
bool contains |
( |
const T & |
item | ) |
|
Test if the item is containted in the collection.
- Parameters
-
- Returns
- True if the item is in the collection, false else.
◆ containsAll()
bool containsAll |
( |
const C< T > & |
collection | ) |
|
Test if the given collection is contained in the current one.
- Parameters
-
- Returns
- True if it is contained, false else.
- Parameters
-
C | Type of the collection to test. |
◆ count()
Get the number of elements in the collection.
- Returns
- Number of items.
◆ end()
Get an iterator on the end of the collection.
- Returns
- End iterator.
◆ equals()
Test if both collections are equal.
- Parameters
-
coll | Collection to compare with the current one. |
True | if both collections are equal, false. |
◆ isEmpty()
Test if the collection si empty.
- Returns
- True if the collection is empty, false else.
◆ operator bool()
◆ operator!=()
◆ operator==()
◆ null [1/2]
Empty collection constant.
◆ null [2/2]
Empty instance of the collection.
The documentation for this class was generated from the following file: