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

Function VmaBinaryFindSorted

include/vk_mem_alloc.h:3883–3893  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3881
3882template<typename CmpLess, typename IterT, typename KeyT>
3883IterT VmaBinaryFindSorted(const IterT& beg, const IterT& end, const KeyT& value, const CmpLess& cmp)
3884{
3885 IterT it = VmaBinaryFindFirstNotLess<CmpLess, IterT, KeyT>(
3886 beg, end, value, cmp);
3887 if (it == end ||
3888 (!cmp(*it, value) && !cmp(value, *it)))
3889 {
3890 return it;
3891 }
3892 return end;
3893}
3894
3895/*
3896Returns true if all pointers in the array are not-null and unique.

Callers 2

FreeMethod · 0.85
vk_mem_alloc.hFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected