|
| template<typename A , typename B , typename Less = std::less<>> |
| static constexpr bool | equivalent (const A &a, const B &b, Less less={}) |
| | Returns true if neither value compares less than the other.
|
| |
| template<typename OrderedContainer , typename ValueType , typename Less = std::less<>> |
| static void | insertOrAssign (OrderedContainer &container, const ValueType &valueToInsert, Less less={}) |
| | If the container already contains a value equivalent to the valueToInsert, assigns the new value over the old one; otherwise, if no equivalent tag exists, inserts the new value preserving the sorted property of the container.
|
| |
| template<typename OrderedContainer , typename ValueType , typename Less = std::less<>> |
| static bool | remove (OrderedContainer &container, const ValueType &valueToRemove, Less less={}) |
| | Removes a specific element from a sorted array, preserving order.
|
| |
A helper struct providing functions for managing sorted containers.
These helper functions simplify common operations on containers that are kept in a sorted order.