#include <SortedList.hpp>
Public Member Functions | |
SortedList (const std::list< T > &donor=std::list< T >()) | |
void | add (const T &item) |
unsigned int | getCountLT (const T &item) const |
unsigned int | getCountGT (const T &item) const |
unsigned int | removeLT (const T &item) |
Sorted list with fast trimming using less-than/greater-than comparison.
|
inline |
Initialize the object with a copy of the donor list, sorted.
|
inline |
Add item to the list while maintaining sorted order.
|
inline |
Return number of elements less than item.
|
inline |
Return number of elements greater than item.
|
inline |
Trim off any elements less than item. Return number of elements trimmed.