library

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

View the Project on GitHub gyouzasushi/library

:heavy_check_mark: Monoid: Max
(algebra/monoid_max.hpp)

Verified with

Code

#pragma once
#include <algorithm>
#include <limits>
template <class T>
struct monoid_max {
    using S = T;
    static S op(S a, S b) {
        return std::max(a, b);
    }
    static S e() {
        return std::numeric_limits<T>::lowest();
    }
};
#line 2 "algebra/monoid_max.hpp"
#include <algorithm>
#include <limits>
template <class T>
struct monoid_max {
    using S = T;
    static S op(S a, S b) {
        return std::max(a, b);
    }
    static S e() {
        return std::numeric_limits<T>::lowest();
    }
};
Back to top page