18 auto lower = std::lower_bound(range.begin(), range.end(), value);
19 range.emplace(lower, std::forward<T>(value));
30 void SortedInsert(std::vector<T> &range, T &&value, std::function<
bool(T
const &, T
const &)>
const &comparator)
32 auto lower = std::lower_bound(range.begin(), range.end(), value, comparator);
33 range.emplace(lower, std::forward<T>(value));
44 auto t = std::equal_range(range.begin(), range.end(), value);
45 range.erase(t.first, t.second);
56 void SortedErase(std::vector<T> &range, T &&value, std::function<
bool(T
const &, T
const &)>
const &comparator)
58 auto t = std::equal_range(range.begin(), range.end(), value, comparator);
59 range.erase(t.first, t.second);
70 seed ^= std::hash<T>{}(hash) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
Precompiled header (PCH) file for common headers used across the library.