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

#pragma once

template <typename X>
struct Monoid_And {
  using value_type = X;
  static X op(X x, X y) { return x & y; }
  static constexpr X unit() { return X(-1); };
  static constexpr bool commute = true;
};
#line 2 "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 unit() { return X(-1); };
  static constexpr bool commute = true;
};
Back to top page