| 4272 | |
| 4273 | template<typename CmpLess, typename VectorT> |
| 4274 | bool VmaVectorRemoveSorted(VectorT& vector, const typename VectorT::value_type& value) |
| 4275 | { |
| 4276 | CmpLess comparator; |
| 4277 | typename VectorT::iterator it = VmaBinaryFindFirstNotLess( |
| 4278 | vector.begin(), |
| 4279 | vector.end(), |
| 4280 | value, |
| 4281 | comparator); |
| 4282 | if ((it != vector.end()) && !comparator(*it, value) && !comparator(value, *it)) |
| 4283 | { |
| 4284 | size_t indexToRemove = it - vector.begin(); |
| 4285 | VmaVectorRemove(vector, indexToRemove); |
| 4286 | return true; |
| 4287 | } |
| 4288 | return false; |
| 4289 | } |
| 4290 | #endif // _VMA_FUNCTIONS |
| 4291 | |
| 4292 | #ifndef _VMA_STATISTICS_FUNCTIONS |
nothing calls this directly
no test coverage detected