library

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

View the Project on GitHub maspypy/library

:warning: alg/monoid/and.hpp

Code

// Source: https://github.com/maspypy/library/blob/main/alg/monoid/and.hpp

template <typename X>
struct Monoid_And {
  using value_type = X;
  static X op(X x, X y) { return x & y; }
  static constexpr X id() { return X(-1); };
  static constexpr bool commute = true;
};
#line 1 "alg/monoid/and.hpp"
// Source: https://github.com/maspypy/library/blob/main/alg/monoid/and.hpp

template <typename X>
struct Monoid_And {
  using value_type = X;
  static X op(X x, X y) { return x & y; }
  static constexpr X id() { return X(-1); };
  static constexpr bool commute = true;
};
Back to top page