| 4455 | |
| 4456 | template<typename CmpLess, typename VectorT> |
| 4457 | size_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 | |
| 4468 | template<typename CmpLess, typename VectorT> |
| 4469 | bool VmaVectorRemoveSorted(VectorT& vector, const typename VectorT::value_type& value) |
nothing calls this directly
no test coverage detected