library

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub maspypy/library

:heavy_check_mark: alg/monoid/max.hpp

Required by

Verified with

Code

// require: all values x satisfy x >= -infty<E>
template <typename E>
struct Monoid_Max {
  using X = E;
  using value_type = X;
  static constexpr X op(const X &x, const X &y) noexcept { return max(x, y); }
  static constexpr X id() { return -infty<E>; }
  static constexpr bool commute = true;
};
#line 1 "alg/monoid/max.hpp"
// require: all values x satisfy x >= -infty<E>
template <typename E>
struct Monoid_Max {
  using X = E;
  using value_type = X;
  static constexpr X op(const X &x, const X &y) noexcept { return max(x, y); }
  static constexpr X id() { return -infty<E>; }
  static constexpr bool commute = true;
};
Back to top page