| 2979 | */ |
| 2980 | template <class DataType> |
| 2981 | void QCPDataContainer<DataType>::removeAfter(double sortKey) |
| 2982 | { |
| 2983 | QCPDataContainer<DataType>::iterator it = std::upper_bound(begin(), end(), DataType::fromSortKey(sortKey), qcpLessThanSortKey<DataType>); |
| 2984 | QCPDataContainer<DataType>::iterator itEnd = end(); |
| 2985 | mData.erase(it, itEnd); // typically adds it to the postallocated block |
| 2986 | if (mAutoSqueeze) |
| 2987 | performAutoSqueeze(); |
| 2988 | } |
| 2989 | |
| 2990 | /*! |
| 2991 | Removes all data points with (sort-)keys between \a sortKeyFrom and \a sortKeyTo. if \a |
nothing calls this directly
no test coverage detected