library

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

View the Project on GitHub maspypy/library

:question: alg/monoid/max.hpp

Required by

Verified with

Code

// Source: https://github.com/maspypy/library/blob/main/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;
};
#line 1 "alg/monoid/max.hpp"
// Source: https://github.com/maspypy/library/blob/main/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