MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / VmaVectorInsertSorted

Function VmaVectorInsertSorted

3rdparty/vulkan/include/vk_mem_alloc.h:4457–4466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4455
4456template<typename CmpLess, typename VectorT>
4457size_t VmaVectorInsertSorted(VectorT& vector, const typename VectorT::value_type& value)
4458{
4459 const size_t indexToInsert = VmaBinaryFindFirstNotLess(
4460 vector.data(),
4461 vector.data() + vector.size(),
4462 value,
4463 CmpLess()) - vector.data();
4464 VmaVectorInsert(vector, indexToInsert, value);
4465 return indexToInsert;
4466}
4467
4468template<typename CmpLess, typename VectorT>
4469bool VmaVectorRemoveSorted(VectorT& vector, const typename VectorT::value_type& value)

Callers

nothing calls this directly

Calls 4

VmaVectorInsertFunction · 0.70
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected