cp-documentation

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

View the Project on GitHub zawa-tin/cp-documentation

:heavy_check_mark: Src/Algebra/Monoid/AdditionMonoid.hpp

Required by

Verified with

Code

#pragma once

namespace zawa {

template <class T>
struct AdditionMonoid {
    using Element = T;
    static T identity() noexcept {
        return T{};
    }
    static T operation(const T& a, const T& b) noexcept {
        return a + b;
    }
};

} // namespace zawa
#line 2 "Src/Algebra/Monoid/AdditionMonoid.hpp"

namespace zawa {

template <class T>
struct AdditionMonoid {
    using Element = T;
    static T identity() noexcept {
        return T{};
    }
    static T operation(const T& a, const T& b) noexcept {
        return a + b;
    }
};

} // namespace zawa
Back to top page