MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / VmaVectorRemoveSorted

Function VmaVectorRemoveSorted

include/vk_mem_alloc.h:4274–4289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4272
4273template<typename CmpLess, typename VectorT>
4274bool VmaVectorRemoveSorted(VectorT& vector, const typename VectorT::value_type& value)
4275{
4276 CmpLess comparator;
4277 typename VectorT::iterator it = VmaBinaryFindFirstNotLess(
4278 vector.begin(),
4279 vector.end(),
4280 value,
4281 comparator);
4282 if ((it != vector.end()) && !comparator(*it, value) && !comparator(value, *it))
4283 {
4284 size_t indexToRemove = it - vector.begin();
4285 VmaVectorRemove(vector, indexToRemove);
4286 return true;
4287 }
4288 return false;
4289}
4290#endif // _VMA_FUNCTIONS
4291
4292#ifndef _VMA_STATISTICS_FUNCTIONS

Callers

nothing calls this directly

Calls 4

VmaVectorRemoveFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected