| 2996 | */ |
| 2997 | template <class DataType> |
| 2998 | void QCPDataContainer<DataType>::remove(double sortKeyFrom, double sortKeyTo) |
| 2999 | { |
| 3000 | if (sortKeyFrom >= sortKeyTo || isEmpty()) |
| 3001 | return; |
| 3002 | |
| 3003 | QCPDataContainer<DataType>::iterator it = std::lower_bound(begin(), end(), DataType::fromSortKey(sortKeyFrom), qcpLessThanSortKey<DataType>); |
| 3004 | QCPDataContainer<DataType>::iterator itEnd = std::upper_bound(it, end(), DataType::fromSortKey(sortKeyTo), qcpLessThanSortKey<DataType>); |
| 3005 | mData.erase(it, itEnd); |
| 3006 | if (mAutoSqueeze) |
| 3007 | performAutoSqueeze(); |
| 3008 | } |
| 3009 | |
| 3010 | /*! \overload |
| 3011 |
nothing calls this directly
no test coverage detected