Home
last modified time | relevance | path

Searched refs:vector_ (Results 1 – 1 of 1) sorted by relevance

/frameworks/native/include/ftl/
Dsmall_vector.h106 : vector_(std::in_place_type<Static>, std::forward<Arg>(arg), std::forward<Args>(args)...) {} in SmallVector()
113 void swap(SmallVector& other) { vector_.swap(other.vector_); } in swap()
116 bool dynamic() const { return std::holds_alternative<Dynamic>(vector_); } in dynamic()
121 return dynamic() ? std::get<Dynamic>(vector_).F() : std::get<Static>(vector_).F(); \
157 return dynamic() ? std::get<Dynamic>(vector_)[i] : std::get<Static>(vector_)[i]; in DISPATCH()
175 return std::get<Dynamic>(vector_).replace(it, std::forward<Args>(args)...); in replace()
177 return std::get<Static>(vector_).replace(it, std::forward<Args>(args)...); in replace()
219 std::get<Dynamic>(vector_).pop_back(); in pop_back()
221 std::get<Static>(vector_).pop_back(); in pop_back()
232 std::get<Dynamic>(vector_).unstable_erase(it); in unstable_erase()
[all …]