#pragma once #include <numeric> namespace haar_lib { template <typename T> struct gcd_monoid { using value_type = T; value_type operator()() const { return 0; } value_type operator()(value_type a, value_type b) const { return std::gcd(a, b); } }; } // namespace haar_lib
#line 2 "Mylib/AlgebraicStructure/Monoid/gcd.cpp" #include <numeric> namespace haar_lib { template <typename T> struct gcd_monoid { using value_type = T; value_type operator()() const { return 0; } value_type operator()(value_type a, value_type b) const { return std::gcd(a, b); } }; } // namespace haar_lib