compro_library

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

View the Project on GitHub siro53/compro_library

:heavy_check_mark: data-structure/monoid/add.hpp

Verified with

Code

#pragma once

template <typename T> struct MonoidAdd {
    using value_type = T;
    inline static T op(const T &l, const T &r) { return (l + r); }
    inline static T e() { return T(0); }
};
#line 2 "data-structure/monoid/add.hpp"

template <typename T> struct MonoidAdd {
    using value_type = T;
    inline static T op(const T &l, const T &r) { return (l + r); }
    inline static T e() { return T(0); }
};
Back to top page