olymp-cpp-lib
olymp-cpp-lib copied to clipboard
- \+ and \- with no overflow 6ff5c40 - use unsigned int
to get rid of wrappers use c++20 constexpr lambdas to pass merge function as template parameter `aggregator` - old style must be supported (constructor is merge function) `aggregator` - pass...
`rmq`, `rmq_static`, `rmq_range_add`, `rmq_range_assign` make non-constexpr comparator like in `std::set` and `std::sort` examples for usage: `rmq f(vec)` `rmq f(vec, greater{})` or `rmq f(vec)` `rmq f(perm, [&](int i, int j) {...