 |
Sayonara Player
|
40 Set() : std::set<T>() {}
45 Set(
const T& one_element) :
48 this->insert(one_element);
59 for(
auto it=this->cbegin(); it!=this->cend(); it++){
72 return (this->size() == 0);
82 return *(this->begin());
92 auto it = this->find(value);
93 return (it != this->end());
102 auto it = this->find(value);
103 if(it != this->end()){
113 template<
template <
typename>
class A>
116 for(
const T& t : container)
126 return int(this->size());
Set(const T &one_element)
Constructs a set with a single element.
Definition: Set.h:45
bool contains(const T &value) const
check, if set contains a specific value
Definition: Set.h:90
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: Set.h:35
Definition: EngineUtils.h:33
void remove(const T &value)
removes every item that matches value
Definition: Set.h:100
Helper functions.
Definition: GenreView.h:35
T first() const
get copy of first element
Definition: Set.h:80
QList< T > toList() const
converts the set to a list. The order is random
Definition: Set.h:56
bool isEmpty() const
Definition: Set.h:70