| 3881 | |
| 3882 | template<typename CmpLess, typename IterT, typename KeyT> |
| 3883 | IterT 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 | /* |
| 3896 | Returns true if all pointers in the array are not-null and unique. |
no outgoing calls
no test coverage detected