Searched defs:UniqueVector (Results 1 – 2 of 2) sorted by relevance
31 struct UniqueVector { struct38 UniqueVector() = default; argument43 explicit UniqueVector(std::vector<T>&& v) { in UniqueVector() function53 bool add(const T& item) { in add()64 bool contains(const T& item) const { return set.count(item); } in contains()75 size_t empty() const { return vector.empty(); } in empty()78 size_t size() const { return vector.size(); } in size()81 ConstIterator begin() const { return vector.begin(); } in begin()84 ConstIterator end() const { return vector.end(); } in end()87 ConstReverseIterator rbegin() const { return vector.rbegin(); } in rbegin()[all …]
13 TEST(UniqueVector, PushBack) { in TEST() argument35 TEST(UniqueVector, PushBackMove) { in TEST() argument48 TEST(UniqueVector, EmplaceBack) { in TEST() argument64 TEST(UniqueVector, PushBackWithIndex) { in TEST() argument84 TEST(UniqueVector, PushBackMoveWithIndex) { in TEST() argument97 TEST(UniqueVector, EmplaceBackWithIndex) { in TEST() argument110 TEST(UniqueVector, Release) { in TEST() argument