kyopro-lib

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

View on GitHub

:heavy_check_mark: Product monoid
(Mylib/AlgebraicStructure/Monoid/product.cpp)

Operations

Requirements

Notes

Problems

References

Verified with

Code

#pragma once

namespace haar_lib {
  template <typename T>
  struct product_monoid {
    using value_type = T;
    value_type operator()() const { return 1; }
    value_type operator()(value_type a, value_type b) const { return a * b; }
  };
}  // namespace haar_lib
#line 2 "Mylib/AlgebraicStructure/Monoid/product.cpp"

namespace haar_lib {
  template <typename T>
  struct product_monoid {
    using value_type = T;
    value_type operator()() const { return 1; }
    value_type operator()(value_type a, value_type b) const { return a * b; }
  };
}  // namespace haar_lib
Back to top page