Home
last modified time | relevance | path

Searched defs:UniqueVector (Results 1 – 2 of 2) sorted by relevance

/third_party/skia/third_party/externals/tint/src/utils/
Dunique_vector.h31 struct UniqueVector { struct
38 UniqueVector() = default; argument
43 explicit UniqueVector(std::vector<T>&& v) { in UniqueVector() function
53 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 …]
/third_party/gn/src/gn/
Dunique_vector_unittest.cc13 TEST(UniqueVector, PushBack) { in TEST() argument
35 TEST(UniqueVector, PushBackMove) { in TEST() argument
48 TEST(UniqueVector, EmplaceBack) { in TEST() argument
64 TEST(UniqueVector, PushBackWithIndex) { in TEST() argument
84 TEST(UniqueVector, PushBackMoveWithIndex) { in TEST() argument
97 TEST(UniqueVector, EmplaceBackWithIndex) { in TEST() argument
110 TEST(UniqueVector, Release) { in TEST() argument