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

Function VmaVectorInsertSorted

include/vk_mem_alloc.h:4262–4271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4260
4261template<typename CmpLess, typename VectorT>
4262size_t VmaVectorInsertSorted(VectorT& vector, const typename VectorT::value_type& value)
4263{
4264 const size_t indexToInsert = VmaBinaryFindFirstNotLess(
4265 vector.data(),
4266 vector.data() + vector.size(),
4267 value,
4268 CmpLess()) - vector.data();
4269 VmaVectorInsert(vector, indexToInsert, value);
4270 return indexToInsert;
4271}
4272
4273template<typename CmpLess, typename VectorT>
4274bool VmaVectorRemoveSorted(VectorT& vector, const typename VectorT::value_type& value)

Callers

nothing calls this directly

Calls 4

VmaVectorInsertFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected