Searched refs:container (Results 1 – 2 of 2) sorted by relevance
/art/runtime/base/ |
D | stl_util.h | 59 void STLDeleteElements(T *container) { in STLDeleteElements() argument 60 if (container != nullptr) { in STLDeleteElements() 61 STLDeleteContainerPointers(container->begin(), container->end()); in STLDeleteElements() 62 container->clear(); in STLDeleteElements() 93 size_t IndexOfElement(const Container& container, const T& value) { in IndexOfElement() argument 94 auto it = std::find(container.begin(), container.end(), value); in IndexOfElement() 95 DCHECK(it != container.end()); // Must exist. in IndexOfElement() 96 return std::distance(container.begin(), it); in IndexOfElement() 101 void RemoveElement(Container& container, const T& value) { in RemoveElement() argument 102 auto it = std::find(container.begin(), container.end(), value); in RemoveElement() [all …]
|
D | transform_array_ref.h | 176 ArrayRef<ValueType> container, Function f) { in MakeTransformArrayRef() argument 177 return TransformArrayRef<ValueType, Function>(container, f); in MakeTransformArrayRef() 182 Container& container, Function f) { in MakeTransformArrayRef() argument 184 ArrayRef<typename Container::value_type>(container.data(), container.size()), f); in MakeTransformArrayRef() 189 const Container& container, Function f) { in MakeTransformArrayRef() argument 191 ArrayRef<const typename Container::value_type>(container.data(), container.size()), f); in MakeTransformArrayRef()
|